[JW Lua] CreateEnigmaComponents doesn't like brackets in font names

Jan Angermüller jan at angermueller.com
Mon Dec 21 13:21:23 CET 2015


Jari,

if a font name holds a bracket, CreateEnigmaComponents doesn't work.
See code snippet below. The tuplet name comes from Matthew Hindson's 
free tuplet number font
(see http://hindson.com.au/info/free/free-fonts-available-for-download/).

Jan

local str=finale.FCString()
str.LuaString="^font(Maestro)2"
print(str:CreateEnigmaComponents()) --prints correct table pointer

str.LuaString="^font(Tuplet Numbers (Petrucci))2"
print(str:CreateEnigmaComponents()) --prints nil value




More information about the JWLua mailing list