🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8414

Re: Changing text to superscript

#8414
From: Robert Tkaczyk
Date: Thu, 12 Oct 2006 18:06
18 lines
1407 bytes
> app.findPreferences = null;
> app.changePreferences = null;
> app.changePreferences.position = Position.superscript;
> myFinds = objTextFrame.search("m2", false, false, undefined);
> app.findPreferences.position = Position.superscript;
> app.changePreferences.position = Position.normal;
> myFinds = objTextFrame.search("m", false, false, undefined);
> 
> But this makes the assumption you don't have any other "m" characters superscripted for some other reason.

why don't replace "m2" to "m<00B2>" ?? ;)

where <00B2> is UNICODE of "Superscript Two"

robin

-- 
www.adobescripts.com
Technical Details
Message-ID: <FBA897AE09936D70676702592E9738A0@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1f2e5.-1@webcrossing.la2eafNXanI> <3bc1f2e5.2@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,593b5349935074b7
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Newsgroups: adobe.scripting.indesign
Subject: Re: Changing text to superscript
Message-ID: <FBA897AE09936D70676702592E9738A0@in.webcrossing.la2eafNXanI>
Date: Thu, 12 Oct 2006 11:06:14 -0700
References: <3bc1f2e5.-1@webcrossing.la2eafNXanI> <3bc1f2e5.2@webcrossing.la2eafNXanI>
Lines: 19
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
X-Antivirus: avast! (VPS 0641-3, 2006-10-12), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing