Clusters are reversed based on the direction, not script
authorSimon Sapin <simon.sapin@exyr.org>
Fri, 5 Jul 2019 17:05:11 +0000 (19:05 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jul 2019 17:07:07 +0000 (10:07 -0700)
Fixes https://github.com/harfbuzz/harfbuzz/issues/1818

docs/usermanual-clusters.xml

index a7b1658..9147ff0 100644 (file)
       order.
     </para>
     <para>
-      For left-to-right scripts (LTR) and top-to-bottom scripts (TTB),
+      For buffers in the left-to-right (LTR)
+      or top-to-bottom (TTB) text flow direction,
       HarfBuzz will preserve the monotonic property: client programs
       are guaranteed that monotonically increasing initial cluster
       values will be returned as monotonically increasing final
       cluster values.
     </para>
     <para>
-      For right-to-left scripts (RTL) and bottom-to-top scripts (BTT),
+      For buffers in the right-to-left (RTL)
+      or bottom-to-top (BTT) text flow direction,
       the directionality of the buffer itself is reversed for final
       output as a matter of design. Therefore, HarfBuzz inverts the
       monotonic property: client programs are guaranteed that