Re: Importing Unicode text to a field .. How?

2011-05-28 Thread Richmond Mathewson
On 05/28/2011 08:16 AM, J. Landman Gay wrote: On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... BTW, I think Richmond doesn't have any trouble with unicode lines because he's working on a Linux machine, so his line endings are already ascii 10.

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread Web Admin Himalayan Academy
Sweet Mangos! It works (smile) I was very close.. in fact I thought I had tried that before. Interesting that you cannot do the replacement in the field itself, you have to do it to the data in the variable *before* you pass it to the field. because replace numtochar(13) with

RE: Importing Unicode text to a field .. How?

2011-05-28 Thread Slava Paperno
... Gratefully, Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Web Admin Himalayan Academy Sent: Saturday, May 28, 2011 4:56 PM To: How to use LiveCode Subject: Re: Importing Unicode text to a field .. How

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread J. Landman Gay
On 5/28/11 4:25 PM, Slava Paperno wrote: Cool, jacque! I am impressed. Just for my edification, how did you know that the original text was in UTF16? I'm afraid it won't help with your scripting. I just opened the file in BBEdit, it tells you what the encoding is. Then I had it show

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread Sivakatirswami
replace uniencode(numtochar(13)) with uniencode(numtochar(10)) That doesn't work either, it does nothing Richmond... these are pure unicode text files. not RTF or HTML... They open fine in Pages or text edit, I get Tamil as expected and proper endlines as expected. I can also copy and

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread Richmond Mathewson
On 05/27/2011 10:34 PM, Sivakatirswami wrote: replace uniencode(numtochar(13)) with uniencode(numtochar(10)) That doesn't work either, it does nothing Richmond... these are pure unicode text files. not RTF or HTML... They open fine in Pages or text edit, I get Tamil as expected and

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread stephen barncard
FYI The Tamil text renders perfectly in Google Mail and Safari. On 27 May 2011 13:04, Richmond Mathewson richmondmathew...@gmail.comwrote: Something just occurred to me . . . # THE FOLLOWING IS A SINGLE LINE IN THE LC FIELD: Converted from மயிலை text in

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread Bob Sneidar
Looks good in Apple Mail too. Bit smallish tho. Bob On May 27, 2011, at 1:49 PM, stephen barncard wrote: FYI The Tamil text renders perfectly in Google Mail and Safari. On 27 May 2011 13:04, Richmond Mathewson richmondmathew...@gmail.comwrote: Something just occurred to me . . . #

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread Web Admin Himalayan Academy
nope... that replacement does nothing... on mouseup answer file Choose the Unicode for this song with OK if the result =cancel then exit mouseup set the useUnicode to true set the unicodetext of fld Unicode_Script to url (binfile:/ it) # result: Tamil appears fine, but all

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread J. Landman Gay
On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... on mouseup answer file Choose the Unicode for this song with OK if the result =cancel then exit mouseup set the useUnicode to true set the unicodetext of fld Unicode_Script to url (binfile:/ it) #

Re: Importing Unicode text to a field .. How?

2011-05-27 Thread J. Landman Gay
On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... BTW, I think Richmond doesn't have any trouble with unicode lines because he's working on a Linux machine, so his line endings are already ascii 10. It would take a Windows or Mac user to notice.

Re: Importing Unicode text to a field .. How?

2011-05-26 Thread Richmond Mathewson
Sorry; overlooked this thread until now. - on mouseUp answer file Choose an RTF file to import if the result = cancel then exit mouseUp else set the useUnicode to true set the RTFText of fld fRESULT to URL (file:

Importing Unicode text to a field .. How?

2011-05-24 Thread Sivakatirswami
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

RE: Importing Unicode text to a field .. How?

2011-05-24 Thread Slava Paperno
Use binfile instead of file. Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@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