Finale SmartMusic
  Home | Log In | Register | Search | Help
   
MakeMusic Forum > Public Forums > FinaleScript - FORUM HAS MOVED! > Superscript script  Forum Quick Jump
 
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
[ << Previous Thread | Next Thread >> | Show Newest Post First ]

Jon Senge
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Jon SengeAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2010
Total Posts : 67
 
   Posted 10/18/2012 11:53 AM (GMT -6)    Quote This PostAlert An Admin About This Post.
I need to find and replace ordinals with superscript ordinals (1st, 2nd, etc.) in text blocks. Is this scriptable, and if so, how would I write it to select specific characters in the text block and then run a series of menu commands to get to superscript? The Finalescript's font swapping abilities do not allow for any of these more specific font settings.

Any help would be greatly appreciated!


Twitter: @jonsenge
2.3 GHz rMBP, 8GB RAM, OS 10.8.0 | 2.8 GHz Intel Core 2 Duo iMac, 2 GB RAM, OS 10.6.7,
Finale 2004-12b, Sibelius 4-7

Back to Top

Kelby
MakeMusic, Inc. Employee

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to KelbyAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2008
Total Posts : 69
 
   Posted 10/25/2012 12:16 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
I have come up with a solution using Times New Roman. There are a few defined superscript characters that work really well and this script works. You may need to tweak it to work with your font. Furthermore you will need Finale 2012 to get access to the Unicode field of characters.

Hopefully the font set you are using is Unicode compliant.
NOTE: There is one issue. Because I used a differently defined 'n' character, the baseline will be off kilter depending upon the font.

-K

//search and replace st, nd, rd, th with unicode superscript characters
// ˢ character U+02E2 (738) MODIFIER LETTER SMALL
// ᵗ character U+1D57 (1721) MODIFIER LETTER SMALL
// ⁿ character U+207F (2374) SUPERscript LATIN SMALL LETTER
// ᵈ character U+1D48 (1706) MODIFIER LETTER SMALL
// ʳ character U+02B3 (691) MODIFIER LETTER SMALL
// ʰ character U+02B0 (688) MODIFIER LETTER SMALL


search expressions "1st" and replace with "1ˢᵗ"
search expressions "ˢᵗ" and replace with "ˢᵗ" [Times New Roman] 13

search expressions "2nd" and replace with "2ⁿᵈ"
search expressions "ⁿᵈ" and replace with "ⁿᵈ" [Times New Roman] 13

search expressions "3rd" and replace with "3ʳᵈ"
search expressions "ʳᵈ" and replace with "ʳᵈ" [Times New Roman] 13

search expressions "4th" and replace with "4ᵗʰ"
search expressions "ᵗʰ" and replace with "ᵗʰ" [Times New Roman] 13
________________________________________
Kelby


Kelby
 
"Talent Borrows, Genius Steals" Igor Stravinsky
Mac and PC Finale user since version 3.5+

Back to Top
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
   
Forum Information
Currently it is Tuesday, December 19, 2023 6:23 PM (GMT -6)
There are a total of 403,820 posts in 58,165 threads.
In the last 3 days there were 0 new threads and 0 reply posts. View Active Threads