Korean line break in TextMesh Pro

Hello, I recently made a change to TextMesh Pro 1.4.1 to avoid splitting Korean words in a line break.

The character ranges where a line break can happen went from this:

charCode > 0x2E80 && charCode < 0x9FFF || /* CJK */
charCode > 0xA960 && charCode < 0xA97F || /* Hangul Jame Extended-A */
charCode > 0xAC00 && charCode < 0xD7FF || /* Hangul Syllables */
charCode > 0xF900 && charCode < 0xFAFF || /* CJK Compatibility Ideographs */
charCode > 0xFE30 && charCode < 0xFE4F || /* CJK Compatibility Forms */
charCode > 0xFF00 && charCode < 0xFFEF) /* CJK Halfwidth */
&& !m_isNonBreakingSpace)```
to this:

```else if (( charCode > 0x2E80 && charCode < 0x9FFF || /* CJK */
charCode > 0xF900 && charCode < 0xFAFF || /* CJK Compatibility Ideographs */
charCode > 0xFE30 && charCode < 0xFE4F || /* CJK Compatibility Forms */
charCode > 0xFF00 && charCode < 0xFFA0 || /* CJK Halfwidth before Hangul */
charCode > 0xFFDC && charCode < 0xFFEF) /* CJK Halfwidth after Hangul */
&& !m_isNonBreakingSpace)```

Any ranges I may be missing?

Also, it would be nice if this was the default behavior.

The latest release of TMP version 1.5.0-preview.2 and 2.1.0-preview.2 already include an option in the TMP Settings to use Modern Line Breaking for Korean text which is the functionality you seek.

Thanks for the answer! I’ll check it out.