Article View: adobe.scripting.indesign
Article #16184Re: Inserting special character (hard space) in TextContents
From: Olav_Kvern
Date: Tue, 07 Oct 2003 20:54
Date: Tue, 07 Oct 2003 20:54
16 lines
1388 bytes
1388 bytes
Gang-- You can't concatenate the special characters constants with normal strings--you have to use them one character at a time, as in: Rem Given a character "myCharacter" myCharacter.TextContents = idNonBreakingSpace To add the special character to a string in InDesign 2.x, use a Unicode string. Unicode strings are in the form <nnnn>, where "nnnn" is the Unicode value. In this case, I think you want: "<00A0>" for a nonbreaking space. The find/change metacharacters (e.g., "^s", "^n", "^t") don't work outside of a find/change operation. Thanks, Ole
Technical Details
Message-ID:
<2ccdc7f1.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdc7f1.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4c31c0a10b2c334c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-07 14:08:02 PST From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Inserting special character (hard space) in TextContents Message-ID: <2ccdc7f1.2@webx.la2eafNXanI> Date: Tue, 7 Oct 2003 13:54:28 -0700 References: <2ccdc7f1.-1@webx.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit