globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

Break Iteration for CTL (Thai, Khmer, Lao, Burmese) #871

Open rcampbellbassac opened 5 years ago

rcampbellbassac commented 5 years ago

I'm not sure if this is something Globalize.js wants to tackle, but it would be great to have Break Iteration support for text boundary analysis based off ICU's break iterator. Particularly useful would be the ability for Globalize.js to give developers the ability to detect word boundaries or manage layout problems with complex text layout languages (Southeast Asia: Burmese, Khmer, Lao, Thai).

By being able to iterate through the content, developers can then provide support for platforms that lack that support (Firefox for instance). I worked with the team that helped supply the data for Lao break iteration and helped support the person who helped with Burmese. I am also somewhat familiar with both Thai and Khmer. Let me know if I can help in any way if you all decide to take this on.

rxaviers commented 5 years ago

Hi! It's a welcome feature. Please, check https://github.com/globalizejs/globalize/issues/728#issuecomment-303659796 for my input on this matter. Thanks