[JW Lua] Text/String stuff
Charles O. Lawrence
charlesolawrence at bellsouth.net
Thu Oct 17 04:05:08 CEST 2013
Jari,
You ask, For what specifically do you need FCTextBlock?
Only for completeness in understanding this Text/String stuff. If you think
it is best to hide it and expose some of its functionality in other classes,
I would say you know best.
In particular, if I print the "raw EnigmaString" and the TextID of all page
attached text like this:
for pageText in loadall(finale.FCPageTexts()) do -- >>>>> another question,
does this collection include all text on all pages in score and all parts?
<<<<<
local thisText = pageText:CreateTextString()
print(thisText.LuaString,pageText.TextID)
end
and then try to correlate the TextID with the ID's I see when I use Finale
"Text->Edit Text..." and scroll through the "text blocks" in the "Edit Text"
dialog, there is no correlation that I see, even though I am fairly certain
I am looking at the data for the "Title" text insert, for instance. In fact
there are more ID's than TextID's, so obviously I am off track somewhere in
my understanding of the terminology in play here. Clearly, I have more to
learn about this stuff! Hopefully the new Wiki page on enigma text will
clear some of this up.
Charles Lawrence
-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jari Williamsson
Sent: Wednesday, October 16, 2013 6:20 PM
To: The JW Lua script plug-in.
Subject: Re: [JW Lua] Text/String stuff
On 2013-10-16 22:34, Charles O. Lawrence wrote:
> In experimenting with Dave Foster's sample script, I must ask, where
> is the EnigmaString and its associated tags and usage documented? I
> must have missed it.
In the distant dark ages of Finale, the Enigma text syntax was used directly
in Finale. There was no WYSIWYG editor. I think I started using Finale in
one of the last versions that included the direct Enigma text syntax
editing.
Anyhow, I have mostly used trial-and-error regarding the Enigma string
syntax in plug-ins, by printing out the existing text strings.
I'll create a Wiki page regarding Enigma text.
> It would be nice for hooks to the FCMeasureText(s) classes and
> associated properties/methods to be added to the next beta.
I'll add that.
> Also include the FCTextBlock class.
For what specifically do you need FCTextBlock? I try to hide FCTextBlock
from use as much as possible. For example, in FCPageText I put the text
justification directly in FCPageText (although it belongs to the connected
FCTextBlock object).
Best regards,
Jari Williamsson
_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
More information about the JWLua
mailing list