Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS][CS3] Superscript

Participant ,
Mar 21, 2010 Mar 21, 2010

I have seen other posts on here sort of relating to my question, but have not managed to solve my problem.

I simply neeed to change all instances of ® to superscript within mystory.

This is what I have:

app.findTextPreferences.findWhat = "®";

app.changeTextPreferences.changeTo = "®",{position:Position.SUPERSCRIPT};

myRSearch = myStory.changeText();

but no change is made to the ® signs.
Any ideas?
Cheers
Roy

TOPICS
Scripting
376
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Mar 21, 2010 Mar 21, 2010

Hi Roy,

In findWhat replace "®" with "^r".

Checkout below working code:

app.findTextPreferences.findWhat = "^r";

app.changeTextPreferences.changeTo = "®";

app.changeTextPreferences.position = Position.SUPERSCRIPT;

myRSearch = myStory.changeText();

Shonky

Translate
Engaged ,
Mar 21, 2010 Mar 21, 2010

Hi Roy,

In findWhat replace "®" with "^r".

Checkout below working code:

app.findTextPreferences.findWhat = "^r";

app.changeTextPreferences.changeTo = "®";

app.changeTextPreferences.position = Position.SUPERSCRIPT;

myRSearch = myStory.changeText();

Shonky

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 22, 2010 Mar 22, 2010
LATEST

Thanks Shonky.  Just the job. Perfect.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines