qt5base-lts/tests/auto/gui/text/qtextscriptengine
John Tapsell 785e95ef0a 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: I1ee8388b650cb5fc61bcb265efb9843c73f327ac
Reviewed-by: Adrian Yanes <ext-adrian.yanes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
2012-02-23 15:07:58 +01:00
..
generate Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qtextscriptengine.pro Re-enable 'check' target for tests/auto/gui on Mac OS X 2011-12-09 02:39:06 +01:00
tst_qtextscriptengine.cpp Harfbuzz-thai: Hide ZWJ and ZWNJ characters and show Inherited characters 2012-02-23 15:07:58 +01:00