]> git.donarmstrong.com Git - lilypond.git/commit
Pango: Do not assume markup is only LTR or RTL.
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 13 Dec 2009 09:17:22 +0000 (01:17 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Sun, 13 Dec 2009 09:56:55 +0000 (01:56 -0800)
commit6225b96c34d642bab59cf9282e240d0e7d6542f2
tree6bd93f49a3ed2b4118d156d236fa9596e164ff39
parentae15e0fb7444c542b0b41a82f273e3aa5b6d492b
Pango: Do not assume markup is only LTR or RTL.

The current code assumes that markup is either LTR or RTL.  But it could
be both.  For example

  \markup { "h א" }

should be displayed as written, but LilyPond displays this string as

  "אh"

This patch fixes that issue.

With pango_itemize(), Pango automatically (and correctly) divides the
markup into sections that are intended to be processed by the Unicode
Bidirectional Algorithm.  Pango also handles the RTL character
reordering, within each of these sections, if necessary.

For now, until we implement the Unicode Bidirectional Algorithm, or
another solution is found, simply place each section in order from left
to right.
lily/pango-font.cc