![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
*If you are using FM7, there are now functions to control style i text. [b]TextStyleAdd* would do the trick here. A calculation like: Let ( startSub = Position( txt; "<sub>"; 1; 1 ); __If ( startSub = 0; txt; ____Let ( endSub = Position( txt; "</sub>"; startSub+5; 1 ); _______Left( txt; startSub-1 ) _______& TextStyleAdd( Middle( txt; startSub+5; endSub - startSub - ); Subscript ) _______& Right( txt; Length(txt) - endSub - 5 ) ____) __) ) will replace a single <sub>...</sub> pair with a subscripted piece o text. You could apply this repeatedly in a script, or if you hav Dev7 make a custom function that loops over all of them. If you're using FM6, I don't think its possible without obtaining plug-in to manipulate style information. [/B - |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |