Thanks to Kjeti, Chris and Ken.

Chris, your script works great with English, but I can't get it to work with Unicode text. I tried to unidecode both the text field and thePhrases and thus deal with two one-byte chars per one Unicode two-byte character, preform the matchChunk function with one-byte chars, and then use the startChars and endChars in the unicode field, but the results are weirdly off.

I don't know if this is a bug or if I am doing something wrong. Has anybody successfully used matchChunk with Unicode text? Any hints would be greatly appreciated.

All best,
Toma


Am Donnerstag, 11.09.03 um 16:17 Uhr schrieb Chris Sheffield:


Toma,

Here's a bit of code I use to do just that.

repeat for each line tPhrase in thePhrases]
if matchChunk(fld "MyText", "(" & tPhrase & ")", tStartChar, tEndChar)
then
set the textStyle of char tStartChar to tEndChar of fld "MyText" to
link
end if
end repeat

_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to