<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Jari, <br>
<br>
I just noticed, it's not only font changes, but any Enigma tag
that appears after a text part that is missed as a new string:<br>
<br>
text.LuaString="^fontTxt(Times New Roman,0)^size(1)^nfx(2)abc
^composer() def"<br>
-> composer is detected, but not put as a separate string<br>
<br>
text.LuaString="^fontTxt(Times New Roman,0)^size(1)^nfx(2)abc
^size(36)^arranger() def"<br>
-> size is detected, but not put as a separate string<br>
-> arranger is detected correctly<br>
<br>
text.LuaString="^fontTxt(Times New Roman,0)^size(1)^nfx(2)abc
^size(36) def ^arranger() ghi"<br>
-> size is detected, but not put as a separate string<br>
-> arranger is not detected correctly, probably because there
is another text part in between<br>
<br>
text.LuaString="^fontTxt(Times New Roman,0)^size(1)^nfx(2)abc
^size(36) def ^size(48) ghi"<br>
-> both sizes are detected, but not put as separate strings
(same as before with size/arranger)<br>
<br>
Jan<br>
<br>
<br>
Am 25.03.2015 um 17:16 schrieb Jan Angermüller:<br>
</div>
<blockquote cite="mid:5512DF44.5040506@angermueller.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
<a class="moz-txt-link-abbreviated" href="http://www.angermueller.com">www.angermueller.com</a>
</pre>
</body>
</html>