Article View: adobe.scripting.indesign
Article #1428Re: Print notes from InDesign CS4
From: Peter Kahrel
Date: Sat, 07 Feb 2009 10:05
Date: Sat, 07 Feb 2009 10:05
11 lines
2037 bytes
2037 bytes
Jay,
Some passages were rephrased to make them clearer. For instance, the difference between lazy operators and negative classes could do with some clarification. I also added some examples here and there, and described a new feature in CS4, GREP styles. Finally, I added a short section on how you can chain saved queries using very simple scripts. I didn't know that one when I wrote the CS3 edition -- jongware spotted it and mentioned it in this forum a while ago.
Something that didn't make it into the CS4 edition is that CS4 supports Unicode properties and sub-properties (of the form \p{..}, see Friedl, "Mastering Regurlar Expressions", pp. 122, 123). For example, there is a property \p{P} that matches punctuation. This one has several subproperties (\p{Pd} matches all kinds of dashes, \p{Po} captures opening punctuation, there are several others). All in all there are 37 Unicode properties.
They didn't make it into the CS4 edition because Adobe is sometimes a bit shy about telling us what new features they implement -- Unicode properties was one of them. I tried these in CS3, but forgot to do that in CS4. A correspondent in France pointed it out to me.
I've now put together an overview of these new properties at <http://www.kahrel.plus.com/indesign/grep_mapper.html> There's a script there that generates selected Unicode ranges and lets you map any GREP wildcard on the selected range.
Peter
Technical Details
Message-ID:
<59b7c954.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7c954.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,29e95913da73922b X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Print notes from InDesign CS4 Message-ID: <59b7c954.5@webcrossing.la2eafNXanI> Date: Sat, 7 Feb 2009 02:05:10 -0800 References: <59b7c954.-1@webcrossing.la2eafNXanI> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit