diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2016-08-22 16:11:25 +0900 |
---|---|---|
committer | Youngbok Shin <youngb.shin@samsung.com> | 2016-08-22 16:11:25 +0900 |
commit | e8e3a59d74b93e80f83e2fbd41cc23fd205f47f6 (patch) | |
tree | 5e0a34815cf169d877155b4a9aa5d52511d9995a /test/shaping | |
parent | 5200acdbfd74b4eda74180a84ba3c53f170d95f0 (diff) | |
download | harfbuzz-e8e3a59d74b93e80f83e2fbd41cc23fd205f47f6.tar.gz harfbuzz-e8e3a59d74b93e80f83e2fbd41cc23fd205f47f6.tar.bz2 harfbuzz-e8e3a59d74b93e80f83e2fbd41cc23fd205f47f6.zip |
Imported Upstream version 1.3.0upstream/1.3.0
Diffstat (limited to 'test/shaping')
-rw-r--r-- | test/shaping/fonts/sha1sum/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf | bin | 0 -> 1148 bytes | |||
-rw-r--r-- | test/shaping/hb_test_tools.py | 38 | ||||
-rw-r--r-- | test/shaping/tests/use.tests | 1 | ||||
-rw-r--r-- | test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-javanese/misc.txt | 54 |
4 files changed, 92 insertions, 1 deletions
diff --git a/test/shaping/fonts/sha1sum/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf b/test/shaping/fonts/sha1sum/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf Binary files differnew file mode 100644 index 0000000..67be525 --- /dev/null +++ b/test/shaping/fonts/sha1sum/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py index 747699b..7473982 100644 --- a/test/shaping/hb_test_tools.py +++ b/test/shaping/hb_test_tools.py @@ -7,7 +7,43 @@ from itertools import * diff_symbols = "-+=*&^%$#@!~/" diff_colors = ['red', 'green', 'blue'] -if sys.version_info[0] >= 3: +try: + unichr = unichr + + if sys.maxunicode < 0x10FFFF: + # workarounds for Python 2 "narrow" builds with UCS2-only support. + + _narrow_unichr = unichr + + def unichr(i): + """ + Return the unicode character whose Unicode code is the integer 'i'. + The valid range is 0 to 0x10FFFF inclusive. + + >>> _narrow_unichr(0xFFFF + 1) + Traceback (most recent call last): + File "<stdin>", line 1, in ? + ValueError: unichr() arg not in range(0x10000) (narrow Python build) + >>> unichr(0xFFFF + 1) == u'\U00010000' + True + >>> unichr(1114111) == u'\U0010FFFF' + True + >>> unichr(0x10FFFF + 1) + Traceback (most recent call last): + File "<stdin>", line 1, in ? + ValueError: unichr() arg not in range(0x110000) + """ + try: + return _narrow_unichr(i) + except ValueError: + try: + padded_hex_str = hex(i)[2:].zfill(8) + escape_str = "\\U" + padded_hex_str + return escape_str.decode("unicode-escape") + except UnicodeDecodeError: + raise ValueError('unichr() arg not in range(0x110000)') + +except NameError: unichr = chr class ColorFormatter: diff --git a/test/shaping/tests/use.tests b/test/shaping/tests/use.tests index e35259c..bfce117 100644 --- a/test/shaping/tests/use.tests +++ b/test/shaping/tests/use.tests @@ -1,3 +1,4 @@ fonts/sha1sum/fbb6c84c9e1fe0c39e152fbe845e51fd81f6748e.ttf::U+1B1B,U+1B44,U+1B13,U+1B3E:[gid3=0+990|gid7=0+2473|gid5=0@-293,-400+0] fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf::U+1A48,U+1A58,U+1A25,U+1A48,U+1A58,U+1A25,U+1A6E,U+1A63:[uni1A48=0+1212|uni1A25=0+1912|uni1A58=0+0|uni1A48=3+1212|uni1A6E=3+0|uni1A25=3+1912|uni1A58=3+0|uni1A63=3+1212] fonts/sha1sum/f518eb6f6b5eec2946c9fbbbde44e45d46f5e2ac.ttf::U+1A48,U+1A58,U+1A25,U+1A48,U+1A58,U+1A25,U+1A6E,U+1A63:[uni1A48=0+1212|uni1A25=0+1912|uni1A58=0+0|uni1A48=3+1212|uni1A6E=3+1211|uni1A25=3+1912|uni1A58=3+0|uni1A63=3+1212] +fonts/sha1sum/6ff0fbead4462d9f229167b4e6839eceb8465058.ttf:--font-funcs=ot:U+11103,U+11128:[gid1=0+837|gid2=0+0] diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-javanese/misc.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-javanese/misc.txt new file mode 100644 index 0000000..16c3d9c --- /dev/null +++ b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-javanese/misc.txt @@ -0,0 +1,54 @@ +ꦥꦺ +ꦟ꧀ꦢꦿ +ꦥꦺꦴꦂꦠꦸꦒꦭ꧀ +꧋ +꧅ +꧑꧐꧇ +꧒꧐꧐꧔ +꧑꧘꧘꧕꧇ +ꦥꦤꦶꦠꦿ꧇ +ꦏꦠꦿꦁꦔꦤ꧀ +꧅꧉ꦟ꧀ꦢꦿ꧉꧅ +ꦥꦺꦔꦼꦠ꧀ꦠꦤ꧀ +ꦄꦒꦸꦱ꧀ꦠꦸꦱ꧀꧇ +ꦮꦸꦭꦤ꧀ꦗꦤꦸꦮꦫꦶ +ꦠꦸꦮꦤ꧀ꦯꦶꦏꦺꦕꦶ +ꦲꦶꦁꦱꦸꦂꦪꦏꦥꦶꦁ꧇ +ꦯꦺꦟꦦꦡꦶꦲꦶꦁꦔꦭꦓ꧈ +ꦲꦸꦠꦮꦶꦯꦸꦂꦪꦏꦥꦶꦁ꧇ +ꦥꦩꦼꦁꦏꦸꦤꦶꦫꦺꦁꦨꦸꦮꦤ꧈ +ꦩꦁꦏꦾꦲꦶꦁꦔꦪꦸꦓꦾꦏꦂꦡ꧈ +ꦠꦤ꧀ꦧꦁꦏꦶꦠ꧀ꦲꦔꦸꦕꦥ꧀ꦥꦼꦤ꧈ +ꦠꦸꦮꦤ꧀ꦈꦤ꧀ꦕꦸꦤ꧀ꦲꦺꦴꦏ꧀ +ꦲꦢꦶꦤꦶꦁꦔꦿꦠ꧀ꦏꦿꦡꦺꦴꦤ꧀ꦲꦗꦶ꧈ +ꦥꦔꦿꦺꦃꦲꦶꦁꦩꦱ꧀ꦗꦶꦢ꧀ꦱꦭꦶꦏꦶꦤ꧀ +ꦠꦼꦤ꧀ꦠꦽꦩ꧀ꦥꦿꦢꦱꦶꦃꦒꦼꦁꦲꦭꦶꦠ꧀ +ꦲꦶꦁꦏꦁꦲꦁꦒꦫꦥ꧀ꦫꦢꦺꦤ꧀ꦯꦸꦰꦺꦗ +ꦫꦢꦺꦤ꧀ꦲꦗꦶꦩ꦳ꦸꦃꦏ꦳ꦩ꦳ꦢ꧀ꦔꦢ꧀ꦤꦤ꧀ +ꦮꦸꦭꦤ꧀ꦗꦸꦩꦢꦶꦭꦮꦭ꧀ꦠꦲꦸꦤ꧀ꦗꦶꦩ꧀ꦩꦮꦭ꧀ +ꦑꦭꦶꦦꦡꦸꦭ꧀ꦭꦃꦲꦶꦁꦏꦁꦗꦸꦩꦼꦤꦼꦁꦏꦥꦶꦁ +ꦠꦤ꧀ꦝꦶꦁꦔꦤ꧀ꦤꦶꦥꦸꦤ꧀ꦱꦮꦸꦁꦧꦭ꧀ꦧꦭ꧀ꦭꦤ꧀꧈ +ꦩꦶꦤꦺꦴꦁꦏꦥꦺꦔꦼꦠ꧀ꦠꦤ꧀ꦗꦸꦩꦼꦤꦼꦁꦢꦊꦩ꧀ꦟꦡ꧈ +ꦏꦑꦒꦓꦔꦕꦖꦗꦙꦚꦛꦜꦝꦞꦟꦠꦡꦢꦣꦤꦥꦦꦧꦨꦩꦪꦫꦭꦮꦯꦰꦱꦲ +ꦢꦺꦤ꧀ꦤꦶꦁꦫꦢꦺꦤ꧀ꦔꦤ꧀ꦠꦺꦤ꧀ꦡꦸꦩꦼꦁꦒꦸꦁꦦꦿꦮꦶꦫꦢꦶꦂꦗ꧉ +ꦲꦶꦁꦩꦡꦫꦩ꧀ꦢꦸꦏ꧀ꦫꦸꦩꦸꦲꦸꦤ꧀ꦠꦼꦊꦁꦔꦶꦁꦏꦫꦡꦺꦴꦤ꧀ꦗꦮꦶ꧈ +ꦮꦼꦝꦶꦒꦩ꧀ꦥꦶꦁꦏꦗꦼꦁꦭꦤ꧀ꦱꦤ꧀ꦤꦺꦱ꧀ꦱꦤ꧀ꦤꦺꦱ꧀ꦱꦶꦥꦸꦤ꧀ +ꦩꦺꦴꦁꦏꦱꦫꦮꦺꦢꦶꦤꦶꦁꦫꦠ꧀ꦢꦺꦫꦤꦿꦸꦱ꧀ꦏꦼꦤ꧀ꦲꦸꦗ꧀ꦮꦭꦤ꧀ꦤꦶꦁ꧈ +ꦩꦶꦤꦺꦴꦁꦏꦮꦏꦶꦭ꧀ꦪꦪꦱꦤ꧀ꦏꦭ꧀ꦭꦺꦴꦲꦸꦱ꧀ꦠꦼꦒꦸꦭ꧀ꦧꦺꦤꦏꦶꦲꦤ꧀꧇ +ꦥꦶꦤꦽꦤꦃꦏꦼꦤ꧀ꦩꦁꦒꦺꦤ꧀ꦤꦶꦥꦸꦤ꧀ꦲꦶꦁꦥꦥꦤ꧀ꦲꦶꦁꦏꦁꦥꦏꦺꦴꦭꦶꦃ꧈ +ꦠꦸꦩꦸꦗ꧀ꦮꦺꦁꦊꦉꦱ꧀ꦤꦼꦂꦫꦶꦥꦸꦤ꧀ꦱꦸꦱꦠꦾꦠꦼꦩꦼꦤ꧀ꦤꦸꦲꦺꦴꦤ꧀ꦤꦶ꧈ +ꦲꦶꦁꦏꦁꦲꦔꦽꦁꦒꦤ꧀ꦤꦶꦑꦫꦡꦺꦴꦤ꧀ꦢꦊꦩ꧀ꦲꦶꦁꦔꦪꦸꦓꦾꦏꦂꦡꦲꦢꦶꦟꦶꦁꦔꦿꦠ꧀꧈ +ꦗꦸꦩꦼꦤꦼꦁꦢꦊꦩ꧀ꦟꦡꦲꦩꦉꦁꦔꦶꦢꦶꦤ꧀ꦠꦼꦤ꧀ꦱꦼꦤꦺꦤ꧀ꦥꦺꦴꦤ꧀ꦠꦁꦒꦭ꧀ꦏꦥꦶꦁ꧇ +꧋ꦱꦧꦼꦤ꧀ꦲꦸꦮꦺꦴꦁꦏꦭꦲꦶꦫꦏꦺꦏꦤ꧀ꦛꦶꦩꦂꦢꦶꦏꦭꦤ꧀ꦢꦂꦧꦺꦩꦂꦠꦧꦠ꧀ꦭꦤ꧀ꦲꦏ꧀ꦲꦏ꧀ꦏꦁꦥꦝ꧉ +ꦱꦁꦏꦶꦁꦥꦫꦧꦺꦴꦁꦱꦡꦾꦺꦴꦁꦲ꧀ꦮꦒꦺꦴꦭꦺꦴꦁꦔꦤ꧀ꦲꦶꦁꦔꦪꦸꦓꦾꦏꦂꦡꦲꦢꦶꦤꦶꦁꦔꦿꦠ꧀ +ꦔꦂꦰꦢꦊꦩ꧀ꦯꦩ꧀ꦦꦺꦪꦤ꧀ꦢꦊꦩ꧀ꦲꦶꦁꦑꦁꦯꦶꦟꦸꦮꦸꦤ꧀ꦏꦗꦼꦁꦯꦸꦭ꧀ꦡꦤ꧀ꦲꦩꦼꦁꦑꦸꦨꦸꦮꦟ꧈ +ꦲꦢꦼꦒ꧀ꦒꦶꦁꦩꦱ꧀ꦗꦶꦢ꧀ꦱꦭꦶꦏꦶꦤ꧀ꦪꦱꦤ꧀ꦤꦶꦥꦸꦤ꧀ꦫꦢꦺꦤ꧀ꦔꦤ꧀ꦠꦺꦤ꧀ꦡꦸꦩꦼꦁꦒꦸꦁꦦꦿꦮꦶꦫꦢꦶꦂꦗ꧈ +ꦒꦸꦧꦼꦂꦤꦸꦂꦝꦃꦲꦺꦫꦃꦆꦱ꧀ꦠꦶꦩꦺꦮꦃꦪꦺꦴꦒꦾꦏꦂꦠꦠꦸꦮꦶꦤ꧀ꦲꦶꦁꦏꦁꦩꦶꦤꦸꦭ꧀ꦪꦠꦸꦮꦤ꧀ꦪꦺꦴꦱꦺꦧ꧀ꦭꦤ꧀ꦕꦺꦴ꧈ +ꦲꦶꦁꦒꦶꦃꦥꦸꦤꦶꦏꦧꦧ꧀ꦮꦺꦴꦤ꧀ꦠꦼꦤ꧀ꦤꦶꦥꦸꦤ꧀ꦱꦮꦸꦁꦧꦭ꧀ꦧꦭ꧀ꦭꦤ꧀ꦠꦤꦃꦔꦿꦶꦏꦶꦲꦶꦁꦏꦁꦱꦩꦶꦔ꧀ꦭꦸꦫꦸꦒ꧀ꦝꦠꦼꦁꦌꦫꦺꦴꦦꦃ꧈ +ꦱꦺꦴꦏꦺꦴꦁꦔꦤ꧀ꦱꦏꦶꦁꦥꦫꦩꦸꦱ꧀ꦭꦶꦩꦶꦤ꧀ꦢꦺꦤ꧀ꦤꦺꦲꦶꦁꦏꦁꦔꦿꦚ꧀ꦕꦁꦱꦲꦔꦮꦠ꧀ꦲꦮꦠ꧀ꦠꦶꦥꦁꦒꦫꦥ꧀ꦥꦶꦥꦸꦤ꧀ꦩꦱ꧀ꦗꦶꦢ꧀ꦫꦢꦺꦤ꧀ꦔꦧꦺꦲꦶꦕꦺꦴꦤ꧀ꦢꦿꦢꦶꦥꦿꦗ꧈ +ꦭꦗꦼꦁꦏꦮꦏꦥ꧀ꦥꦏꦼꦤ꧀ꦏꦁꦒꦺꦥꦂꦭꦸꦤꦶꦁꦆꦱ꧀ꦭꦩ꧀ꦭꦤ꧀ꦩꦸꦱ꧀ꦭꦶꦩꦶꦤ꧀ꦲꦶꦁꦱꦭꦩꦶꦭꦩꦶꦤꦶꦥꦸꦤ꧀ꦥꦩ꧀ꦧꦶꦏꦏ꧀ꦏꦶꦥꦸꦤ꧀ꦲꦶꦁꦢꦶꦤ꧀ꦠꦼꦤ꧀ꦏꦼꦩꦶꦱ꧀ꦏꦭꦶꦮꦺꦴꦤ꧀ꦠꦁꦒꦭ꧀ꦏꦥꦶꦁ꧇ +ꦲꦶꦁꦔꦿꦶꦏꦶꦔꦼꦕꦿꦠ꧀ꦒꦩ꧀ꦧꦂꦫꦶꦥꦸꦤ꧀ꦱꦮꦸꦁꦱꦮꦸꦁꦮꦲꦸꦤꦭꦶꦏꦤꦸꦗꦸꦠꦤ꧀ꦝꦶꦁꦔꦤ꧀ꦏꦭꦶꦪꦤ꧀ꦱꦮꦸꦁꦧꦭ꧀ꦧꦭ꧀ꦭꦤ꧀ꦱꦏꦶꦁꦲꦺꦴꦁꦓꦫꦶꦪꦼꦮꦺꦴꦤ꧀ꦠꦼꦤ꧀ꦲꦶꦁꦲꦭꦸꦤ꧀ꦲꦭꦸꦤ꧀꧇ +ꦱꦢꦺꦫꦺꦁꦔꦶꦥꦸꦤ꧀ꦩꦱ꧀ꦗꦶꦢ꧀ꦱꦭꦶꦏꦶꦤ꧀ꦏꦒꦫꦥ꧀ꦱꦩ꧀ꦥꦸꦤ꧀ꦮꦺꦴꦤ꧀ꦠꦼꦤ꧀ꦩꦲꦸꦗꦸꦢ꧀ꦥꦤ꧀ꦝꦼꦩꦺꦤ꧀ꦤꦶꦁꦩꦱ꧀ꦗꦶꦢ꧀ꦯꦸꦫꦩ꧀ꦧꦶꦱꦲꦥꦭꦩ꧀ꦥꦃꦲꦤ꧀ꦱꦂꦠꦧꦺꦴꦤ꧀ꦝꦱꦮꦠꦮꦶꦱ꧀ꦏꦢꦺꦴꦱ꧀ꦠ꧇ +ꦩꦸꦭ꧀ꦪꦏ꧀ꦏꦏꦺꦈꦩ꧀ꦧꦸꦭ꧀ꦧꦶꦤꦁꦔꦸꦤ꧀ꦠꦩ꧀ꦩꦤ꧀ꦱꦂꦫꦶꦏꦊꦏ꧀ꦱꦤ꧀ꦤꦏ꧀ꦏꦏꦼꦤ꧀ꦏꦤ꧀ꦛꦶꦥꦚꦼꦁꦏꦸꦪꦸꦁꦔꦶꦥꦸꦤ꧀ꦪꦪꦱ꧀ꦱꦤ꧀ꦏꦭ꧀ꦭꦲꦸꦱ꧀ꦠꦼꦒꦸꦭ꧀ꦧꦼꦤ꧀ꦏꦶꦲꦤ꧀ꦱꦲꦏꦂꦉꦱ꧀ꦩꦺꦏ꧀ꦏꦏꦼꦤ꧀ꦢꦶꦤꦶꦁꦲꦶꦁꦏꦁꦩꦶꦤꦸꦭ꧀ꦪꦯꦿꦶꦯꦸꦭ꧀ꦠꦤ꧀ꦲꦩꦁꦏꦸꦨꦸꦮꦤ꧇ +ꦠꦸꦮꦤ꧀Dr꧇ꦯꦶꦩ꧀ꦏꦶꦄꦌ +ꦠꦸꦮꦤ꧀Ir꧇ꦭꦶꦩ꧀ꦆꦁꦲ꧀ꦮꦶ |