Gregory Pittman wrote:
>> > What I'd like is to be able to have the text marked in some
>> > way so that when I bring it in from the text file, the Latin
>> > part is presented in italic. 
>> 
>> You might try this: 
>> setFont(...)
>> setFont("font", ["name"])
>> combined with: 
>> selectText(...)
>> selectText(start, count, ["name"])

Since the metadata for a given collection of photographs (the file with titles) 
doesn't really chance except for new additions, this might be worth the effort. 
I could add a series of number pairs for the italicized words or phrases (most 
titles only have one but a few have two). Then I could use those for the 
selectText() start and count values.

An alternative would be to mark up the titles with some character or character 
string that never appears in the content (hey, I could use <em> and </em>, that 
would be original). Then, examine the text for those strings, pull them out 
noting where they were in the text, and selectText() with those noted values. 
Trickier to code but easier to mark up my text file and less prone to error, 
once it's done.

For now, since I was in a hurry, I modified my document manually, but I can see 
this saving me time over the long haul.

Thanks.

-- 
Henry


Reply via email to