Workaround for adding Unicode text to a field

Kjetil Rå Hauge k.r.hauge at east.uio.no
Thu Sep 4 04:08:01 EDT 2003


>At 16:00 +0900 04-09-03, Ron wrote:
>>

>Hi Kjetil
>
>I do a similar thing with Japanese text, viz add words to a list to build
>vocabularies, etc.
>
>[...]
>
>Have you tried simply 'copy' instead of 'put the selectedtext into stuff'
>and then 'set the clipboarddata["unicode"]'?

Never thought of that simple solution - but it works, no Japanese 
intrusion! Thanks a lot!

>  > This works fine with single words, but if you have a multiword
>>  selection, every second word gets turned into CJK - fun to look at
>>  but not very useful.
>
>what does the htmltext of the resulting text look like? this might help
>diagnose the problem.
>

This is how a group of the three first letters of the Cyrillic 
alphabet, repeated four times ("abv abv abv abv") comes out:

<p><font face="Lucida Grande" 
lang="ru">абв</font><font face="Lucida Grande" 
lang="ja"> 〄㄄㈠</font><font face="Lucida 
Grande" lang="ru">абв</font><font face="Lucida 
Grande" lang="ja"> 〄㄄㈠</font><font 
face="Lucida Grande" lang="ru">абв</font></p>

-- 
--- Kjetil Rå Hauge, U. of Oslo. Tel. +47/22856710, fax +47/22854140
--- (this msg sent from home, +47/67148424, fax +1/5084372444)



More information about the use-livecode mailing list