Article View: adobe.scripting.indesign
Article #2328Grep find change
From: sorour
Date: Fri, 26 Dec 2008 17:09
Date: Fri, 26 Dec 2008 17:09
17 lines
1424 bytes
1424 bytes
in This script i need to replace single word لا with the same + Hair Space: ~|. app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = '\bلا\b' app.changeGrepPreferences.changeTo = 'لا~|' app.activeDocument.changeGrep(); While nothing happens with the first with the metacharacter \b, the second work good but changes both on single words that other words with the two fianle letters (es: i need to replace be, and no in "be" and "no" word not "be" or "no" in adobe, and in casino, milano, ...) app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = 'لا ' app.changeGrepPreferences.changeTo = 'لا~|' app.activeDocument.changeGrep(); لا is an arabic word = No Does anyone know the proper syntax to get this to work? Thanks!
Technical Details
Message-ID:
<59b75c1c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,e907651d4e0319ff,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: sorour@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Grep find change Message-ID: <59b75c1c.-1@webcrossing.la2eafNXanI> Date: Fri, 26 Dec 2008 09:09:41 -0800 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit