Article View: adobe.scripting.indesign
Article #8603Changing text to superscript
From: Lars_Ibsen
Date: Thu, 12 Oct 2006 13:16
Date: Thu, 12 Oct 2006 13:16
7 lines
1103 bytes
1103 bytes
Hi.
I am quite new in InDesign Scripting and need some help. I have a textFrame where I want to make som characters superscript characters. It is when I have the text (squaremeter) "m2", I want to make the "2" to superscipt. The problem for me is not where in the text "m2" occurs but the problem is how do I tell the textFrame to make the "2" a superscript?
An example of a text could be "My house is 80 m2 I think." How do I make the "2" to superscript?
I can get the text with "objTextFrame.contents" and find "m2" with indexOf("m2").
Technical Details
Message-ID:
<3bc1f2e5.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,593b5349935074b7,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Lars_Ibsen@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Changing text to superscript Message-ID: <3bc1f2e5.-1@webcrossing.la2eafNXanI> Date: Thu, 12 Oct 2006 06:16:08 -0700 Lines: 13 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!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing