Author Topic: Korean Word Wrapping  (Read 1548 times)

StephanS

  • Newbie
  • *
  • Posts: 3
Korean Word Wrapping
« on: December 13, 2017, 08:00:19 AM »
In general line breaks are allowed in the middle of words in the Korean language. And that's how TMPro currently handles it. However, to improve readability, in some cases it is better to avoid such line breaks. In fact this is what Google just required us to do for a mobile game that's going to get released soon (Bridge Constructor Portal). So we added that feature to the most recent version of TMPro (v1.0.56.56). There is now a "Korean Word Wrapping" option int the TMPro Settings. Find the changed files attached. Maybe you can consider adding this feature for the general version too.
This is where we took the unicode specification from to determine if it is a Koren character: http://www.programminginkorean.com/programming/hangul-in-unicode/
Thanks!

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
Re: Korean Word Wrapping
« Reply #1 on: December 13, 2017, 12:02:16 PM »
I'll take a look and provide feedback once I have had a chance to do so.

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
Re: Korean Word Wrapping
« Reply #2 on: December 13, 2017, 02:49:30 PM »
Looking at the changes, this appears to override special line breaking rules for Korean and line break on words like Latin languages. Correct?

StephanS

  • Newbie
  • *
  • Posts: 3
Re: Korean Word Wrapping
« Reply #3 on: December 14, 2017, 02:09:35 AM »
It should only effect line breaks in Korean. It prohibits that line breaks happen in the middle of words. So if the option in enabled, line breaks should be the same as in Latin languages where words do not get seperated.