[JW Lua] FCFileInfoText and ... more info

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Fri Mar 27 22:22:25 CET 2015


Jan,

A follow-up on this. I've decided to filter out the Finale-added tags 
from these info fields (after loading), starting in the next beta release.


Best regards,

Jari Williamsson



On 2015-03-26 17:14, Jari Williamsson wrote:
> Jagn,
>
> This is an issue in recent versions of Finale, where it started to add
> font info to those fields. I've chosen to not filter that data, but to
> leave it as it's retrieved by Finale.
>
>
> Best regards,
>
> Jari Williamsson
>
>
> On 2015-03-26 15:52, Jan Angermüller wrote:
>> Jari,
>>
>> just as I assumed in my first email, FCFileInfoText must not add the
>> Enigma font tags to the string.
>> This short code snippet shows what happens if you have a text block that
>> includes the title tag:
>>
>>      local fileinfo=finale.FCFileInfoText()
>>      fileinfo:LoadTitle()
>>      fileinfo:SaveAsTitle()
>>
>> Although nothing is actually changed - it's only resaved -, the text
>> block displays the Enigma tags on the score (!) after running the
>> script. See screenshot from the score view.
>>
>> All the best,
>> Jan
>>
>> Am 20.03.2015 um 13:03 schrieb Jan Angermüller:
>>> Jari,
>>>
>>> when I create the strings from FCFileInfoText, for example
>>> LoadTitle(), I get a string like
>>>
>>> ^font(Times New Roman,4096)^size(12)^nfx(0)Song Title
>>>
>>> Are you sure that this is what Finale produces internally from the
>>> ^title() tag ?
>>> Because this would mean that Finale uses the default text font / font
>>> size which in this case is Times/12.
>>>
>>> For example, if I create the text string of a large score title in
>>> font size *24 with *FCPageText:CreateTextString() I get:
>>>
>>> ^font(Times New Roman,4096)^size(*24*)^nfx(0)^title()
>>>
>>> If I substitute the ^title() with what FCFileInfoText():LoadTitle()
>>> produces, it would lead to:
>>>
>>> ^font(Times New Roman,4096)^size(*24*)^nfx(0)^font(Times New
>>> Roman,4096)^size(*12*)^nfx(0)Song Title
>>>
>>> which would print as a title in font size *12*.
>>> Could it be that the font information is not necessary in the
>>> FCFileInfoText strings,
>>> I.e. that LoadTitle() should only return a string "Song Title" with no
>>> Enigma tags ?
>>>
>>> Best regards,
>>> Jan
>>>
>>>
>>> _______________________________________________
>>> JWLua mailing list
>>> JWLua at jwmusic.nu
>>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>>
>>
>> --
>> Jan Angermüller
>> Jevenstedter Str. 80
>> 22547 Hamburg
>> Tel. 040 - 28 94 84 82
>> www.angermueller.com
>>
>>
>>
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>>
>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list