• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Skip TOC when searching in Skim
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip TOC when searching in Skim


  • Subject: Re: Skip TOC when searching in Skim
  • From: Hans van den Broek <email@hidden>
  • Date: Thu, 02 Jul 2015 08:45:59 +0700


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.


Cheers,

Hans

-- 

Hans van den Broek
Schrijf-, vertaal- en redigeerwerk
Yogyakarta
Indonesia
http://cafetran4mac.blogspot.com




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Skip TOC when searching in Skim (From: Hans List <email@hidden>)
 >Re: Skip TOC when searching in Skim (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Skip TOC when searching in Skim
  • Next by Date: Re: applescript code completion in Xcode 6.4
  • Previous by thread: Re: Skip TOC when searching in Skim
  • Next by thread: Keystroking a Text Field
  • Index(es):
    • Date
    • Thread