Importing Unicode text to a field .. How?

Slava Paperno slava at lexiconbridge.com
Wed May 25 00:04:26 EDT 2011


Use binfile instead of file.

Slava

> -----Original Message-----
> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] On Behalf Of Sivakatirswami
> Sent: Tuesday, May 24, 2011 11:59 PM
> To: How to use LiveCode
> Subject: Importing Unicode text to a field .. How?
> 
>   I converted some Mylai-Sri (Tamil) Type 1 fonts to unicode. I can
> open
> these in Pages, select the text, choose the native Mac OS X Tamil
> unicode font: Inaimathi New and I get Tamil glyphs... if I copy and
> paste to a field in Livecode it appears as expected.
> 
> But, now, I want to import the same unicode raw text files that I am
> opening in Pages into Livecode fields by script.
> 
> I cannot get it to work:
> 
> on mouseup
>     answer file "Choose the Unicode for this song" with "OK"
>     put url ("file:/" & it) into tUnicode
>     set the unicodetext of  fld "Unicode_Script_Title" to line 3 of
> tUnicode
> 
> # though the above should do it ,but I get garble in the field,
> 
> 
> #this does not help either:
> 
> set the textfont of char 1 to -1 of fld "Unicode_Script_Title" to
> "Inaimathi New"
> 
> 
> # still garble
> 
> 
> 
> end mouseup
> 
> clues?
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list