qt5base-lts/tests/auto/gui
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
..
image Remove QPlatformIntegration/QPlatformTheme from QGuiAppPrivate. 2012-02-20 16:52:59 +01:00
kernel Fix rounding error in QInputMethod::cursorRectangle(). 2012-02-23 09:33:27 +01:00
math3d Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
painting Improve tst_QPrinterInfo::testForDefaultPrinter(). 2012-02-21 06:10:43 +01:00
qopengl Make "nmake check" pass for gui tests in Windows. 2012-02-10 15:40:22 +01:00
text Harfbuzz-thai: Hide ZWJ and ZWNJ characters and show Inherited characters 2012-02-23 15:07:58 +01:00
util Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
gui.pro Moved tests into gui/kernel/ and gui/qopengl/ 2011-11-04 20:48:19 +01:00