[haiku-development] Re: GSoC 2017: RTL Support

  • From: Richie Nyhus-Smith <richienyhus@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 12 Mar 2017 17:08:47 +1300

Hi,

You will need to deal with advanced (line) breaking for both Arabic and
Hindi.

Haiku uses a basic homebrew/bespoke line breaking implementation that only
really works with languages that use the Latin script, but also completely
fails for those languages that have no gaps between words (like Thai, Lao
and other languages in the Tai family) but who rather use gaps as commas or
full stops. ICU has a solution we can use.

See this ticket for more info: https://dev.haiku-os.org/ticket/12803

There is also the matter of bidirectional text support, say if someone
writing in Arabic (RTL) wants to quote something written in English (LTR).
Without its support the English quote would be written backwards (that is,
also using RTL). ICU also has a solution we can use for this as well.

See this ticket for more info: https://dev.haiku-os.org/ticket/12802

Also see this page on how to combine ICU with harfbuzz:
http://userguide.icu-project.org/layoutengine/paragraph

Regards,
Richard.

Other related posts: