Article View: adobe.scripting.indesign
Article #1981Re: Adding Bookmarks
From: jongware
Date: Thu, 22 Jan 2009 16:54
Date: Thu, 22 Jan 2009 16:54
21 lines
1523 bytes
1523 bytes
Oh blast. The [Untested] gave it away, didn't it?
In InDesign and its immediate surroundings there are several different syntaxes to refer to a Unicode character.
* Inside InDesign (its Search & Replace box, for example) it is "<FEFF>".
* In GREP Find it is "\x{feff}" (although you can use "\xAB" if the higher byte is zeros).
However, you cannot try these methods, because .. in the InDesign document, the tag is not recoded to FEFF (yet).
* In JavaScript it should've been "\ufeff" -- this inserts the actual character into the javascript stream, so your JS parser should've read "\", "s", "<FEFF>".
* I'm probably missing a few ways.
Ehm -- and it tries to replace the tag with a space, which is quite possibly not what you want. Does this
s = s.replace (/\ufeff/g, "");
replace it with nothing? If it doesn't, you'll have to find an alternative way of specifying the blasted character.
Technical Details
Message-ID:
<59b62a0f.10@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b62a0f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,97acec63daa2400b X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Adding Bookmarks Message-ID: <59b62a0f.10@webcrossing.la2eafNXanI> Date: Thu, 22 Jan 2009 08:54:01 -0800 References: <59b62a0f.-1@webcrossing.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit