Home

Awesome

ThaiText

Unity Text UI for Thai language<br> I combined all useful tools (Thai lexeme tokenizer & Thai font adjuster) and support Rich Text.<br> Thai Text is inherited from Unity UI.Text and some features are also come from these packages.

Rich Text<br> The text for UI elements and text meshes can incorporate multiple font styles and sizes.<br> More information: StyledText

How it work?

1. LexTo

Lexto is Thai lexeme tokenizer. It's helpful for Thai text wrapping; automatic line-breaks. It requires lexitron.txt as Thai dictionary to work.

2. lexitron.txt

lexitron.txt is text file to contain Thai words for tokenization. This file must be in Resources folder, so it can be loaded. Normally, it should be at [Assets/DGN/ThaiText/Resources].

Note: lexitron.txt must be encoded that supports Thai characters. Default encoding is UTF-16LE

You can edit lexitron.txt file by

3. Lexitron Watcher

Lexitron Watcher is a file system watcher for lexitron.txt file.

4. Thai Font Adjuster

Thai Font Adjuster will adjust Thai fonts to be rendered almost correctly. Position of tone mark, upper vowel and lower vowel would be adjusted by surrounding characters.

Limitation

5. Tag String Parser

Tag String Parser is used to separate markup tags for support Rich Text feature.

Special Thanks