diff options
author | John Tapsell <john.tapsell.ext@basyskom.com> | 2012-02-08 10:12:13 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-10 08:50:00 (GMT) |
commit | f1b994a14001ac50cacf111d2c3551ece7c406fd (patch) | |
tree | a97e0cebdb6d28054b3e7d67ab30abb8b7e57ed0 /qmake/generators/projectgenerator.cpp | |
parent | 7495f2c7c55917a98c903547858be923028b7827 (diff) | |
download | Qt-f1b994a14001ac50cacf111d2c3551ece7c406fd.zip Qt-f1b994a14001ac50cacf111d2c3551ece7c406fd.tar.gz Qt-f1b994a14001ac50cacf111d2c3551ece7c406fd.tar.bz2 |
Harfbuzz-thai: Hide ZWJ and ZWNJ characters and show Inherited characters
Thai is not supposed to have ZWJ and ZWNJ characters or any other of the
Inherited Unicode Scripts
(http://www.verisigninc.com/assets/idn-inherited-unicode-script.pdf)
- they don't have a mapping to the thai encoding tis620 which libthai
requires. However it is an unfortunate fact that there are many websites
etc that liberally place these ZWJ and ZWNJ characters throughout thai text
to force word boundaries, so we must also deal with them.
We deal with all Inherited characters by mapping them to the invalid code ~0
in tis620 encoding, following what libthai does internally in its own tis620
encoding functions, and then replacing this character with the original
unicode and setting dontPrint to true to hide the ZWJ and ZWNJ
characters.
Includes a unit test to check the behaviour.
Change-Id: I49e44da6e39443daa832e7f50c94804e13deabb4
Reviewed-by: Adrian Yanes <ext-adrian.yanes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'qmake/generators/projectgenerator.cpp')
0 files changed, 0 insertions, 0 deletions