Nikolay Sivov : dwrite: Simplify LB22 rule according to Unicode 13.0 algorithm.
Alexandre Julliard
julliard at winehq.org
Fri Mar 13 15:24:43 CDT 2020
Module: wine
Branch: master
Commit: 52a55f3e046cad58107fbe26f3b7d99e329945fd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=52a55f3e046cad58107fbe26f3b7d99e329945fd
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Mar 12 23:34:33 2020 +0300
dwrite: Simplify LB22 rule according to Unicode 13.0 algorithm.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/analyzer.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index a418081d49..de8ac2ea3c 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -680,21 +680,7 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
break;
/* LB22 */
case b_IN:
- if (i > 0)
- {
- switch (break_class[i-1])
- {
- case b_AL:
- case b_HL:
- case b_EX:
- case b_ID:
- case b_EB:
- case b_EM:
- case b_IN:
- case b_NU:
- set_break_condition(i, BreakConditionBefore, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, &state);
- }
- }
+ set_break_condition(i, BreakConditionBefore, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, &state);
break;
}
More information about the wine-cvs
mailing list