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

Thai speaker needed to confirm correct display in Flash

PostPosted: Tue May 24, 2011 6:23 pm
by vpower
Hello,
I'm working on an actionscript that will display Thai dynamic text correctly. It uses the unicode zero-width space between words in the dynamic text to wrap the ends of lines without breaking up words.
I'm wondering if someone who knows Thai can confirm for me whether it's working. I've attached a screenshot. On the left side is the correct (hopefully!) version and on the right is a version that will just wrap wherever, even in the middle of a word.
I'm hoping to get the answer in the next 12 hours or so, so thanks in advance for your help! :D
VP

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Tue May 24, 2011 6:28 pm
by simonbournemouth
It works. :)

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Tue May 24, 2011 6:29 pm
by vpower
wow, I couldn't ask for a quicker answer! Thanks!!

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Thu May 26, 2011 1:30 am
by pensive
To prove it, though, I think you should see how it splits words with preposed vowels. For example, does it know not to split แสดง?

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Thu May 26, 2011 4:02 pm
by vpower
This solution actually requires the person writing the text to insert a zero-width space, it doesn't use a dictionary to recognize words. As long as the person translating the text inserts the character between words, it should work, unless there are some complications I'm not aware of...in your example, maybe the person preparing the text would know not to put a zero-width space in that word.
Unfortunately, I'm a programmer, not a Thai speaker, so I'm relying on others to help me understand the issues.
Thanks!

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Fri May 27, 2011 2:36 am
by pensive
เข้าใจขอบคุณครับ. Then you really didn't need a Thai person to examine your pagination? :)

Re: Thai speaker needed to confirm correct display in Flash

PostPosted: Sun Sep 04, 2011 3:28 pm
by Richard Wordingham
vpower wrote:...in your example, maybe the person preparing the text would know not to put a zero-width space in that word.

You have to train the users to use ZWSP. The Thai 8-bit code (TIS-620) has no support for user-input, and many applications find the word breaks themselves. On Windows, Thai language-sensitive line-breaking is built into Uniscribe. In the rest of the World, I think you will find that ICU also has dictionary-based line breaking for Thai. The original Unicode Khmer keyboard has support for ZWSP, but it's somewhere between degraded and totally missing in Windows.

Richard.

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