[JW Lua] FCString:CreateEnigmaComponents does not separate font changes
Jan Angermüller
jan at angermueller.com
Wed Mar 25 17:16:04 CET 2015
Jari,
FCString:CreateEnigmaComponents does not split font changes within a
string correctly (for example "sub. p").
See script and output below.
All the best,
Jan
local text=finale.FCString()
text.LuaString="^fontTxt(Times New Roman,4096)^size(12)^nfx(2)sub.
^fontMus(Font0,0)^size(24)^nfx(0)p"
local splittext=text:CreateEnigmaComponents()
for i in each(splittext) do
print(i.LuaString)
end
Output:
Running [Unnamed Script] ======>
fontTxt
Times New Roman
4096
^size
12
^nfx
2
sub. ^fontMus *-- new font tag *detected, but not split correctly to a
new string
Font0
0
^size
24
^nfx
0
p
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150325/51718e0c/attachment.htm>
More information about the JWLua
mailing list