🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2030

FindChangeByList - alternative words not accepted?

#2030
From: Jan_Celuch
Date: Wed, 14 Jan 2009 08:58
14 lines
1159 bytes
Hi there,

I am hawing som trouble to make findchangebylist scrip to add a nonbreaking space after a certain short words... - it shoul look for: space/nonbreakingspace+short word from list+space and it should be casesensitive...

{findWhat:"(?i)(\\s|~S)(a|i|v|vo|o|s|so|z|zo|k|ku|u)(\\s)"}	{changeTo:"$1$2~S"}

Strange thing is, that it is working when I use "(.|..)" instead of list of alternative words, but this changes also the other one/twocharacter words, that I do not want to be changed...

{findWhat:"(?i)(\\s|~S)(.|..)(\\s)"}

Does anyone know, what am I doing wrong?
Thanx a lot

Jan
Technical Details
Message-ID: <59b78295.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,304d6df902082c11,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jan_Celuch@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: FindChangeByList - alternative words not accepted?
Message-ID: <59b78295.-1@webcrossing.la2eafNXanI>
Date: Wed, 14 Jan 2009 00:58:54 -0800
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit