From 33bfe9edd679d61898209281960ec1a8570a11c7 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 16 Aug 2021 17:00:57 +0200 Subject: [PATCH] [test] Add tests for item context Test pre-context and post-context in Arabic shaper, as well as interaction of pre-context with BOT flag. --- test/shape/data/in-house/Makefile.sources | 1 + .../3105b51976b879032c66aa93a634b3b3672cd344.ttf | Bin 0 -> 2768 bytes .../65984dfce552a785f564422aadf4715fa07795ad.ttf | Bin 0 -> 4020 bytes test/shape/data/in-house/meson.build | 1 + .../shape/data/in-house/tests/item-context.tests | 11 +++++++++++ 5 files changed, 13 insertions(+) create mode 100644 test/shape/data/in-house/fonts/3105b51976b879032c66aa93a634b3b3672cd344.ttf create mode 100644 test/shape/data/in-house/fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf create mode 100644 test/shape/data/in-house/tests/item-context.tests diff --git a/test/shape/data/in-house/Makefile.sources b/test/shape/data/in-house/Makefile.sources index 13066c7ae..dec23cb5e 100644 --- a/test/shape/data/in-house/Makefile.sources +++ b/test/shape/data/in-house/Makefile.sources @@ -31,6 +31,7 @@ TESTS = \ tests/indic-special-cases.tests \ tests/indic-syllable.tests \ tests/indic-vowel-letter-spoofing.tests \ + tests/item-context.tests \ tests/kern-format2.tests \ tests/khmer-mark-order.tests \ tests/khmer-misc.tests \ diff --git a/test/shape/data/in-house/fonts/3105b51976b879032c66aa93a634b3b3672cd344.ttf b/test/shape/data/in-house/fonts/3105b51976b879032c66aa93a634b3b3672cd344.ttf new file mode 100644 index 0000000000000000000000000000000000000000..de14336462eaeb6c2501032466a7ba63c673d032 GIT binary patch literal 2768 zcmZ`*ZERCj7=CZtwPjffl6A0-kISc$jBafv5+sBpHv6unBHJ z+uJ+Z-g`TcVC08}M1lB$(FkH9zW@#XQlrQZA^5=$e`&_;*Z`k%Z@>6DH}{_Ryyrac z^PKlRx3?``Zwpn>Fd1oelgGoqbLp*RMD!C;nQPsewH}&5RwC)MuyM1BiX~^=FoyTS8S5S6=A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build index b1a282c32..5b6c4f750 100644 --- a/test/shape/data/in-house/meson.build +++ b/test/shape/data/in-house/meson.build @@ -31,6 +31,7 @@ in_house_tests = [ 'indic-special-cases.tests', 'indic-syllable.tests', 'indic-vowel-letter-spoofing.tests', + 'item-context.tests', 'kern-format2.tests', 'khmer-mark-order.tests', 'khmer-misc.tests', diff --git a/test/shape/data/in-house/tests/item-context.tests b/test/shape/data/in-house/tests/item-context.tests new file mode 100644 index 000000000..b9f1b1f1d --- /dev/null +++ b/test/shape/data/in-house/tests/item-context.tests @@ -0,0 +1,11 @@ +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;;U+0643,U+0650,U+062A,U+064E,U+0627,U+0628,U+064F,U+0646,U+064E,U+0627;[uniFE8E=9+316|uni064E=7@169,-24+0|uniFEE8=7+341|uni064F=5@167,-222+0|uniFE91=5+301|uniFE8E=4+316|uni064E=2@196,-28+0|uniFE98=2+391|uni0650=0@288,44+0|uniFEDB=0+576] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-before=U+0643,U+0650;U+062A,U+064E,U+0627,U+0628,U+064F,U+0646,U+064E,U+0627;[uniFE8E=7+316|uni064E=5@169,-24+0|uniFEE8=5+341|uni064F=3@167,-222+0|uniFE91=3+301|uniFE8E=2+316|uni064E=0@196,-28+0|uniFE98=0+391] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-before=U+0643;U+062A,U+064E,U+0627,U+0628,U+064F,U+0646,U+064E,U+0627;[uniFE8E=7+316|uni064E=5@169,-24+0|uniFEE8=5+341|uni064F=3@167,-222+0|uniFE91=3+301|uniFE8E=2+316|uni064E=0@196,-28+0|uniFE98=0+391] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-after=U+0646,U+064E,U+0627;U+0643,U+0650,U+062A,U+064E,U+0627,U+0628,U+064F;[uni064F=5@167,-222+0|uniFE91=5+301|uniFE8E=4+316|uni064E=2@196,-28+0|uniFE98=2+391|uni0650=0@288,44+0|uniFEDB=0+576] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-after=U+0646;U+0643,U+0650,U+062A,U+064E,U+0627,U+0628,U+064F;[uni064F=5@167,-222+0|uniFE91=5+301|uniFE8E=4+316|uni064E=2@196,-28+0|uniFE98=2+391|uni0650=0@288,44+0|uniFEDB=0+576] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-before=U+0643,U+0650 --unicodes-after=U+0646,U+064E,U+0627;U+062A,U+064E,U+0627,U+0628,U+064F;[uni064F=3@167,-222+0|uniFE91=3+301|uniFE8E=2+316|uni064E=0@196,-28+0|uniFE98=0+391] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-before=U+0643 --unicodes-after=U+0646;U+062A,U+064E,U+0627,U+0628,U+064F;[uni064F=3@167,-222+0|uniFE91=3+301|uniFE8E=2+316|uni064E=0@196,-28+0|uniFE98=0+391] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-before=U+0627;U+0643,U+062A,U+0628;[uniFE90=2+821|uniFE98=1+391|uniFEDB=0+576] +../fonts/65984dfce552a785f564422aadf4715fa07795ad.ttf;--unicodes-after=U+0627;U+0643,U+062A,U+0628,U+0627;[uniFE8E=3+316|uniFE92=2+341|uniFE98=1+391|uniFEDB=0+576] +../fonts/3105b51976b879032c66aa93a634b3b3672cd344.ttf;--bot;U+064E;[uni25CC=0+679|uni064E=0@-607,-210+0] +../fonts/3105b51976b879032c66aa93a634b3b3672cd344.ttf;--bot --unicodes-before=0627;U+064E;[uni064E=0+0]