thai-language.comInternet resource
for the Thai language
Page 1 of 2

Need Script Conversion Help

PostPosted: Thu Nov 12, 2009 6:25 pm
by Josh
I'm using the free Thai Typing Tutor tool to improve my Thai typing. One of the things you can do is import your own .txt files and use them as lessons. However, it seems that the .txt files are in ASCII format, and I cannot figure out how to convert my Thai script files to ASCII. I basically need to turn it into something like this:

Code: Select all
¤ÇÒÁÃÑ¡·ÓãË餹µÒºÍ´
©Ñ¹àÅèÒÁÒ¡è͹à¡ÕèÂǡѺ¤ÇÒÁÊØ¢·Õè©Ñ¹ÁաѺΌ¤¹áá¢Í§©Ñ¹
µÍ¹¹Õé©Ñ¹¨ÐàÅèÒà¡ÕèÂǡѺ´éҹź ã¹¢³Ð·Õè©Ñ¹Í͡仢éÒ§¹Í¡¡ÑºÁÒÅÕ
(äÁèãªèª×èͨÃÔ§¢Í§à¸Í)


Anyone have any suggestions?

Re: Need Script Conversion Help

PostPosted: Thu Nov 12, 2009 8:18 pm
by Glenn Slayden
You're referring to TIS-620 format, in which the text you demonstrated appears as Thai when used with the DBTT.TTF ("DB ThaiText") font .

To convert unicode Thai text to this format, use my XTIS620 program which is available here: http://www.thai-language.com/ref/thai-text-utilities

Press the --> TIS-620 button to get text in that format.

Re: Need Script Conversion Help

PostPosted: Thu Nov 12, 2009 8:24 pm
by Glenn Slayden
p.s. it also converts back to Unicode. Thus the text you pasted above is:

Code: Select all
ความรักทำให้คนตาบอด
ฉันเล่ามาก่อนเกี่ยวกับความสุขที่ฉันมีกับแฟนคนแรกของฉัน
ตอนนี้ฉันจะเล่าเกี่ยวกับด้านลบ ในขณะที่ฉันออกไปข้างนอกกับมาลี
(ไม่ใช่ชื่อจริงของเธอ)

Re: Need Script Conversion Help

PostPosted: Fri Nov 13, 2009 1:26 pm
by Josh
Thanks, Glenn, exactly what I needed. I should note that your link had dev.thai-language.com, but I think you meant www.thai-language.com instead; the former gave me a timeout error.

Re: Need Script Conversion Help

PostPosted: Fri Nov 13, 2009 5:49 pm
by Glenn Slayden
Oops, yeah sorry; fixed it in the original post now. The ...dev... site would only work for you if you were in my house and I don't think I've seen you lurking around... :P

Re: Need Script Conversion Help

PostPosted: Fri Nov 13, 2009 8:10 pm
by Josh
Doesn't mean I'm not there...

Image

Re: Need Script Conversion Help

PostPosted: Thu Mar 18, 2010 11:16 pm
by Josh
So I have another question. I'm on an XP machine here. I have a bunch of files that have the Thai titles in Unicode format. I use the program Glenn posted and the text shows up in Thai text. However, when I then copy that text and try to paste it to the file as the new file name, nothing happens - the Unicode remains. I'm not sure if it's a file permission issue or something else. Does anyone have any suggestions?

Re: Need Script Conversion Help

PostPosted: Sat Mar 20, 2010 7:48 pm
by Glenn Slayden
As you describe it, those filenames are *not* in unicode format. If you just pasted text into my converter program, then copied it back, you did not convert it from TIS-620 (which is what it actually is there, apparently) to Unicode. You need to press the [--> Unicode] button first, then copy it. Then you can give the files proper Unicode names, which will be visible throughout the operating system (except in the DOS box).

You might have been confused by the fact that the converter program displays TIS-620 by using the DBTT font, so the Thai is visible (but this is not Unicode). When a file's name is encoded in this way, there's no way for Windows XP to know that it's Thai versus some other (language) encoding.

Re: Need Script Conversion Help

PostPosted: Sun Mar 21, 2010 9:34 am
by Rick Bradford
It's also worth having a Unicode-friendly text editor in your box of Thai-language tools.

I use BabelPad, and it never puts a foot wrong whether it is pasting Thai text from a web site or Word doc or sending it in the other direction.

Free, always armed with the latest Unicode standard, and only a couple of megabytes download.

Re: Need Script Conversion Help

PostPosted: Mon Mar 22, 2010 3:18 pm
by Josh
I can't figure out how to use it. It's very confusing. I just want to paste in the unicode and get an answer. Glenn's program does this perfectly; I just can't seem to get Windows to change it for some reason.

Copyright © 2024 thai-language.com. Portions copyright © by original authors, rights reserved, used by permission; Portions 17 USC §107.