On 1 Jul 2015, at 23:22, Christopher Stone <email@hidden> wrote:
I don't see any reasonable method of doing that
Neither do I, but I do think HansL’s problem can be solved (though not by me).
The app he’s talking about, CafeTran (see my sig), is a CAT tool - Computer Assisted/Aided Translation. It splits a document in segments, usually sentences, using rules (a.o. punctuation, the period is the most common trigger for a split, of course). After finishing the translation of one segment, you go to the next one.
The script one of you “Chrises" provided is based on CafeTran sending the source part of the finished segment to the clipboard, and paste it into the script to search Skim to mark the spot in the original PDF to show where you are in the document. This usually works, but not in case of a TOC, and it’s also causing problems in case of, for example numbered lists, where the number causes a segmentation split: “1.” The script will search for the first occurrence of “1.” which is not necessarily the one you’re looking for (to make things worse, in German, the period is also used to mark ordinals, like “1. April”).
Setting the search to Next, would be better, including the previous segment in the search would be almost perfect (perfect, apart from the very first segment, and when you resume your translation, or use the clipboard for other things). I think the scriptable ClipMenu could be useful. CafeTran sends a segment to the clipboard untrimmed, but a regex between the two segments to allow for returns and things may be necessary. |