#12802: Integrate ICU's bidirectional text handling into BView
----------------------------------+----------------------------
Reporter: richienyhus | Owner: axeld
Type: enhancement | Status: new
Priority: normal | Milestone: R2
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: 6950 | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Description changed by pulkomandy:
Old description:
We need to support people whose language writes text Right-to-Left, but
who might want to mention/write something in English or another language
that writes text Left-to-Right, therefore creating
[https://en.wikipedia.org/wiki/Bi-directional_text bidirectional text].
As the Locale Kit already uses ICU, we should integrate ICU's [http
://icu-project.org/apiref/icu4c/ubidi_8h.html ubidi] class into BView for
system wide [http://userguide.icu-project.org/transforms/bidi BiDi] text
support.
This has previously been brought up by Adrian in a
[//www.freelists.org/post/haiku-development/RighttoLeft-text-and-
BiDi,1 past mailing list post].
Ubidi can calculate if a text run (chuck of text to be rendered) is Left-
to-Right; Right-to-Left; 'Direction Mixed' or 'Direction Neutral' (i.e.
an emoji).