XTM - how to copy tags to the clipboard
Thread poster: Samuel Murray

Samuel Murray  Identity Verified
Netherlands
Local time: 00:19
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 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


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 00:19
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.


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 00:19
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.


Direct link Reply with quote
 


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

Advanced search







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 »
SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search