Author Topic: Reverse line wrapping  (Read 174 times)

Cyndor

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Reverse line wrapping
« on: May 15, 2017, 01:46:25 AM »
I'm trying to add Arabic as a language in our app. The problem I'm facing now is line wrapping. Something I did already have to change in the NGUIText script is to exclude Arabic characters from being flagged as "eastern". Flagging Arabic as eastern seem to line-break Arabic in the middle of words.

A remaining problem I have now is line wrapping. As you probably already know, Arabic is a Right-to-Left language. For Arabic to show correctly the line wrapping should get the last word from the left side (instead of the right side) of the sentence and place it on a new line. Is this easy to change and if yes, can anyone point me in the right direction to make this work?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 277
  • -Receive: 1133
  • Posts: 21,893
  • Toronto, Canada
    • View Profile
Re: Reverse line wrapping
« Reply #1 on: May 19, 2017, 05:00:13 AM »
I'm pretty sure there was another tool that handled RTL languages for NGUI. This one: http://www.inter-illusion.com/tools/i2-localization

I'd say save yourself some trouble and grab it -- it's quite good!