Nikolay Sivov : dwrite/tests: Add a linebreaking test regarding LB30 rule changes in Unicode 13.
Alexandre Julliard
julliard at winehq.org
Wed Sep 15 16:21:30 CDT 2021
Module: wine
Branch: master
Commit: 8ca898ed36c1e00e22022056217e9cb9da45724e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8ca898ed36c1e00e22022056217e9cb9da45724e
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Sep 15 10:58:56 2021 +0300
dwrite/tests: Add a linebreaking test regarding LB30 rule changes in Unicode 13.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/tests/analyzer.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/dlls/dwrite/tests/analyzer.c b/dlls/dwrite/tests/analyzer.c
index 358e3e4780d..dd3207c7933 100644
--- a/dlls/dwrite/tests/analyzer.c
+++ b/dlls/dwrite/tests/analyzer.c
@@ -1083,7 +1083,8 @@ struct linebreaks_test {
DWRITE_LINE_BREAKPOINT bp[BREAKPOINT_COUNT];
};
-static struct linebreaks_test linebreaks_tests[] = {
+static const struct linebreaks_test linebreaks_tests[] =
+{
{ {'A','-','B',' ','C',0x58a,'D',0x2010,'E',0x2012,'F',0x2013,'\t',0xc,0xb,0x2028,0x2029,0x200b,0},
{
{ DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, 0, 0 },
@@ -1124,6 +1125,14 @@ static struct linebreaks_test linebreaks_tests[] = {
{ DWRITE_BREAK_CONDITION_CAN_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK, 0, 0 },
}
},
+ /* LB30 changes in Unicode 13 regarding East Asian parentheses */
+ { {0x5f35,'G',0x300c,0},
+ {
+ { DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK },
+ { DWRITE_BREAK_CONDITION_CAN_BREAK, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK },
+ { DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK },
+ }
+ },
{ { 0 } }
};
More information about the wine-cvs
mailing list