XTM - how to copy tags to the clipboard
Thread poster: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 11:23
Member (2006)
English to Afrikaans
+ ...
Sep 17, 2014

Hello everyone using XTM

It's been a while since I've used XTM, but last time I used it I was able to click in a segment, press Ctrl+A and then press Ctrl+C, and then press Ctrl+V in e.g. Notepad, and if the segment contained tags, the tags would be present in the pasted text. However, when I tried it today, the tags are omitted from the pasted text. In other words, copying content from XTM to the clipboard does not result in the tags being copied to the clipboard along with the o
... See more
Hello everyone using XTM

It's been a while since I've used XTM, but last time I used it I was able to click in a segment, press Ctrl+A and then press Ctrl+C, and then press Ctrl+V in e.g. Notepad, and if the segment contained tags, the tags would be present in the pasted text. However, when I tried it today, the tags are omitted from the pasted text. In other words, copying content from XTM to the clipboard does not result in the tags being copied to the clipboard along with the other text. Is there a magic setting in XTM that would enable that to happen again?

The two-column HTML preview doesn't show the tags either. There are green tags and blue tags. I could really use those tags on the clipboard...

Thanks
Samuel
Collapse


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 11:23
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
Partial answer Sep 17, 2014

Samuel Murray wrote:
I was able to click in a segment, press Ctrl+A and then press Ctrl+C, and then press Ctrl+V in e.g. Notepad, and if the segment contained tags, the tags would be present in the pasted text.


I've discovered why this no longer works. The tags are represented in XTM not by coloured text, but by inline images. If you copy text and paste it into e.g. MS Word, the images are visible, but since Notepad can't display images, Notepad doesn't display the tags.

One can send the clipboard to a text file using AutoHotKey:
FileAppend, %ClipboardAll%, filename.clp
...which produces a binary file that can be opened in a text editor.


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 11:23
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
Updated my paster script Sep 18, 2014

Samuel Murray wrote:
The tags are represented in XTM not by coloured text, but by inline images. If you copy text and paste it into e.g. MS Word, the images are visible, but since Notepad can't display images, Notepad doesn't display the tags.


I updated my XTM extractor and paster scripts to solve this problem. The scripts are still a work in progress (i.e. they stop pasting quite a bit, so you'll have to baby sit the computer while the script is running, but they mostly don't mispaste anything).

http://leuce.com/autoit/xtm%20paster%20v2.zip

After pasting all segments, create a two-column HTML export version, open it in MS Word, and spell-check the target column to make sure no segments were skipped.

It would seem to me that XTM regards matches that have identical text and all the same tags (but not tags in the identical places) as 100% matches, which it inserts, which may cause the paster script to regard the paste action as a mismatch, which will cause it to stop and warn you. Annoying, but safer.


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

XTM - how to copy tags to the clipboard







Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »