I have my RichViewEdit component set to wrap on ClientWidth. I import some Thai text. Now if I change the client width the text wraps according to the number of characters it can fit on the line. For Thai this can result is split words.
Can the RichViewEdit component be aware of Thai Word Breaks and wrap the text accordingly. There is a Uniscribe API "ScriptBreak" or the good old "FindThaiWordBreakW" which is in FTLX041E.DLL. I think either of these could solve the problem depending on how this edit component works.
TRichViewEdit + Thai Language Support
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I think the FTLX041E.DLL originated with XP and before Uniscribe was created. But I still use it on later operating systems. If you like I can send you the DLL and a quick example of how to use it. Basically you pass it a string of Thai characters and it will return the positions of the word boundaries.
I note your point about updating to Uniscribe. I have written an editor in the past and converted it to Uniscribe. Not for the faint hearted, but worth the effort.
I note your point about updating to Uniscribe. I have written an editor in the past and converted it to Uniscribe. Not for the faint hearted, but worth the effort.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: