<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jari,<br>
<br>
FCString:CreateEnigmaComponents does not split font changes within a
string correctly (for example "sub. p").<br>
See script and output below.<br>
<br>
All the best,<br>
Jan<br>
<br>
<br>
local text=finale.FCString()<br>
text.LuaString="^fontTxt(Times New Roman,4096)^size(12)^nfx(2)sub.
^fontMus(Font0,0)^size(24)^nfx(0)p"<br>
local splittext=text:CreateEnigmaComponents()<br>
for i in each(splittext) do<br>
print(i.LuaString)<br>
end<br>
<br>
<br>
Output:<br>
<br>
Running [Unnamed Script] ======><br>
fontTxt <br>
Times New Roman<br>
4096<br>
^size<br>
12<br>
^nfx<br>
2<br>
sub. ^fontMus <b>-- new font tag </b>detected, but not split
correctly to a new string <br>
Font0<br>
0<br>
^size<br>
24<br>
^nfx<br>
0<br>
p<br>
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).<br>
<br>
</body>
</html>