thai-language.comInternet resource
for the Thai language
Lookup:
» more options here
Browse

F.A.Q. Check out the list of frequently asked questions for a quick answer to your inquiry

e-mail the author
guestbook
site settings
site news
bulk lookup
Bangkok
Thanks for your

recent donations!

Narisa N. $+++!
John A. $+++!
Paul S. $100!
Mike A. $100!
Eric B. $100!
John Karl L. $100!
Don S. $100!
John S. $100!
Peter B. $100!
Ingo B $50
Peter d C $50
Hans G $50
Alan M. $50
Rod S. $50
Wolfgang W. $50
Bill O. $70
Ravinder S. $20
Chris S. $15
Jose D-C $20
Steven P. $20
Daniel W. $75
Rudolf M. $30
David R. $50
Judith W. $50
Roger C. $50
Steve D. $50
Sean F. $50
Paul G. B. $50
xsinventory $20
Nigel A. $15
Michael B. $20
Otto S. $20
Damien G. $12
Simon G. $5
Lindsay D. $25
David S. $25
Laurent L. $40
Peter van G. $10
Graham S. $10
Peter N. $30
James A. $10
Dmitry I. $10
Edward R. $50
Roderick S. $30
Mason S. $5
Henning E. $20
John F. $20
Daniel F. $10
Armand H. $20
Daniel S. $20
James McD. $20
Shane McC. $10
Roberto P. $50
Derrell P. $20
Trevor O. $30
Patrick H. $25
Rick @SS $15
Gene H. $10
Aye A. M. $33
S. Cummings $25
Will F. $20
Get e-mail

Sign-up to join our mail­ing list. You'll receive e­mail notification when this site is updated. Your privacy is guaran­teed; this list is not sold, shared, or used for any other purpose. Click here for more infor­mation.

To unsubscribe, click here.

Need Script Conversion Help

Typing, encoding, and display of Thai characters

Moderator: acloudmovingby

Need Script Conversion Help

Postby Josh » Thu Nov 12, 2009 6:25 pm

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?
Josh
จอร์ช
http://blog.joshsager.com/
User avatar
Josh
 
Posts: 246
Joined: Sun Dec 28, 2008 12:00 am
Location: New Jersey, USA & ขนอมประเทศไทย

Re: Need Script Conversion Help

Postby Glenn Slayden » Thu Nov 12, 2009 8:18 pm

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.
Image
User avatar
Glenn Slayden
Site Admin
 
Posts: 988
Joined: Mon Jul 09, 2001 12:00 am

Re: Need Script Conversion Help

Postby Glenn Slayden » Thu Nov 12, 2009 8:24 pm

p.s. it also converts back to Unicode. Thus the text you pasted above is:

Code: Select all
ความรักทำให้คนตาบอด
ฉันเล่ามาก่อนเกี่ยวกับความสุขที่ฉันมีกับแฟนคนแรกของฉัน
ตอนนี้ฉันจะเล่าเกี่ยวกับด้านลบ ในขณะที่ฉันออกไปข้างนอกกับมาลี
(ไม่ใช่ชื่อจริงของเธอ)
Image
User avatar
Glenn Slayden
Site Admin
 
Posts: 988
Joined: Mon Jul 09, 2001 12:00 am

Re: Need Script Conversion Help

Postby Josh » Fri Nov 13, 2009 1:26 pm

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.
Josh
จอร์ช
http://blog.joshsager.com/
User avatar
Josh
 
Posts: 246
Joined: Sun Dec 28, 2008 12:00 am
Location: New Jersey, USA & ขนอมประเทศไทย

Re: Need Script Conversion Help

Postby Glenn Slayden » Fri Nov 13, 2009 5:49 pm

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
Image
User avatar
Glenn Slayden
Site Admin
 
Posts: 988
Joined: Mon Jul 09, 2001 12:00 am

Re: Need Script Conversion Help

Postby Josh » Fri Nov 13, 2009 8:10 pm

Doesn't mean I'm not there...

Image
Josh
จอร์ช
http://blog.joshsager.com/
User avatar
Josh
 
Posts: 246
Joined: Sun Dec 28, 2008 12:00 am
Location: New Jersey, USA & ขนอมประเทศไทย

Re: Need Script Conversion Help

Postby Josh » Thu Mar 18, 2010 11:16 pm

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?
Josh
จอร์ช
http://blog.joshsager.com/
User avatar
Josh
 
Posts: 246
Joined: Sun Dec 28, 2008 12:00 am
Location: New Jersey, USA & ขนอมประเทศไทย

Re: Need Script Conversion Help

Postby Glenn Slayden » Sat Mar 20, 2010 7:48 pm

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.
Image
User avatar
Glenn Slayden
Site Admin
 
Posts: 988
Joined: Mon Jul 09, 2001 12:00 am

Re: Need Script Conversion Help

Postby Rick Bradford » Sun Mar 21, 2010 9:34 am

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.
User avatar
Rick Bradford
 
Posts: 1164
Joined: Tue Sep 30, 2008 12:00 am
Location: Bangkok

Re: Need Script Conversion Help

Postby Josh » Mon Mar 22, 2010 3:18 pm

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.
Josh
จอร์ช
http://blog.joshsager.com/
User avatar
Josh
 
Posts: 246
Joined: Sun Dec 28, 2008 12:00 am
Location: New Jersey, USA & ขนอมประเทศไทย

Next

Return to Fonts, Keyboards, Character Encodings

Who is online

Users browsing this forum: No registered users and 7 guests

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