Article View: adobe.scripting.indesign
Article #16744Re: A thought about bypassing InDesign's spellcheck
From: Iain McLeod
Date: Wed, 06 Aug 2003 03:18
Date: Wed, 06 Aug 2003 03:18
5 lines
1748 bytes
1748 bytes
Not a bad idea... particularly if you build the spellchecker in such a way that you can run it before you even flow the text into InDesign (thus avoiding not only spelling errors but layout adjustments arising from corrections). Wherever you check the text (OS or TextEdit), you could apply the changes to formatted text in InDesign if you use the find and replace method, omitting any formatting preferences. Keep the original and corrected text separate, log (or find) any differences in the text and swap them out. You might need to search for word triplets (a word before and after the correction) to avoid global changes (but if you do this you'll want to ensure that the triplet doesn't cross a paragraph break). Or you could correct the text a paragraph at a time (presuming you're not using character stylesheets) - that way you can just have your script remember the stylesheet (or paragraph formatting properties) and re-apply them to the corrected paragraph.
Technical Details
Message-ID:
<1dea2ae8.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2ae8.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,609a12baa8384676 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-05 20:38:04 PST From: "Iain McLeod" <iain@haines.co.nz> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: A thought about bypassing InDesign's spellcheck Message-ID: <1dea2ae8.0@WebX.la2eafNXanI> Date: Tue, 5 Aug 2003 20:18:04 -0700 References: <1dea2ae8.-1@WebX.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit