Start a new topic

Nice feature for files with colours

Hi Igor,


I don't know if it's possible in CT, but there is a nice (and free) software that locks xliff files segments based on font or background colour.


This freeware works only in Windows and with sdlxliff files, but if CT had something similar for imported Word and Excel files, it would be great. (Quite often my clients ask me to translate only cells or sentences of a certain colour. I guess I'm not the only one.)


1 person likes this idea

Similar concept: http://www.translatortools.net/word-hideunhide.html


Instead of locking segments based on font or background colour, this tool allows you to hide text in Word documents based on font or background colour.


Michael

Michael, what I like with the above freeware is that you can keep all the segments, not only the unhidden ones, so you have the context (surrounding segments) right into Studio.


The problem with this software is that it's only for Windows (same thing for the one you mentioned).

That's why I wish there were a similar function (or filter) in CT, for Mac and Linux users. I spend a lot of time "presegmenting" sdlxliff files in Parallels/Windows/Studio. It would be great to treat "coloured" Word and Excel files directly from Mac/Linux and CT.

I thought that would be easy, but it isn't, thanks to a very useful tag-limiting feature in CT: The CT tag placeholders treat every segment with formatting in the whole segment the same (no tags visible). Those tags are there, of course, but since they're only placeholders, they are the same for (in the example below) a coloured segment, and an underlined segment. Bad luck.



So that leaves us with the option to change things in the original file format. There must be a way to mark coloured segments in a Word file so you can filter on it in CT. Like (first primitive thought) add QQQ at the beginning of all coloured segments, filter on QQQ in CT, set the resulting segments to locked/translated/whatever.


H.

you can keep all the segments, not only the unhidden ones, so you have the context (surrounding segments) right into Studio.


This would make no sense in CT, as the surrounding texts would somehow interfere with the segments that need to be translated. They would populate the TM with source=target-segments, as there is neither a "set status as checked, but do not add to TM"-command nor a "set status as checked and lock segment, and do not add to TM"-command in CT. If I am mistaken, pls correct me.


With my (limited) knowledge, I would do the changes in the source doc (as Hans suggested) and add the word doc (saved as PDF) in the internal PDF viewer to have the context.

off-topic:


instead of:


"With my (limited) knowledge, I would do the changes in the source doc (as Hans suggested) and add the word doc (saved as PDF) in the internal PDF viewer to have the context. "


... you could use my AHK script, which copies selected text in current segment in CafeTran and runs search in source document (works with both PDFs and Word documents):


; Copies selected text in current segment in CafeTran and runs search in source document (works with both PDFs and Word documents)

; Written by Michael Beijer

; http://beijer.uk/

; Note1: Specify name of the .pdf or .docx prior to use by right-clicking on AHK script icon in taskbar

; Note2: Make sure to enable "Edit > Copy source segments to clipboard" (which ensures the current source segment text is always copied to the clipboard, without tags)

 !p:: ; Shortcut: Alt+P

{

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 WinActivate, 25808714208150111textforfiling (highlighting).docx ; Change focus to source .pdf or .docx; enter exact name of doc here, and make sure said doc is open

; WinActivate, ahk_class OpusApp ; Change focus to any open Word doc.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 Send, ^f ; Open Find dialogue in source document (Ctrl+F)

 Send, ^a ; Select any previous text in the Ctrl+F field (Ctrl+A)

 Send, ^v ; Paste selected text over previous selection (Ctrl+V)

 Send, {Enter} ; Press "Next" in the Ctrl+F dialogue

return

}


ahk
(1.35 KB)

Or my AppleScript/Automator app (that's the original anyway, and it'll work better on a Mac). It works with Preview (should be open), and can therefore handle all file formats PreView can handle, including PDF, Word, Excel, you name it.


H.



Login to post a comment