[pango: 5/6] Update Line Break to Unicode 11
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 5/6] Update Line Break to Unicode 11
- Date: Tue, 27 Nov 2018 17:47:34 +0000 (UTC)
commit ad1dc6019e67556b5b3b4fb164c15a2c3289bbc9
Author: Peng Wu <alexepico gmail com>
Date: Wed Sep 12 16:17:59 2018 +0800
Update Line Break to Unicode 11
pango/break.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 136d5006..558df7e6 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1039,7 +1039,7 @@ pango_default_break (const gchar *text,
/* Rule LB1:
assign a line breaking class to each code point of the input. */
- switch ((int) break_type)
+ switch (break_type)
{
case G_UNICODE_BREAK_AMBIGUOUS:
case G_UNICODE_BREAK_SURROGATE:
@@ -1072,6 +1072,7 @@ pango_default_break (const gchar *text,
break_type == G_UNICODE_BREAK_HANGUL_T_JAMO ||
break_type == G_UNICODE_BREAK_HANGUL_LV_SYLLABLE ||
break_type == G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE ||
+ break_type == G_UNICODE_BREAK_EMOJI_MODIFIER ||
break_type == G_UNICODE_BREAK_REGIONAL_INDICATOR)
{
LineBreakType LB_type;
@@ -1375,10 +1376,7 @@ pango_default_break (const gchar *text,
if (row_break_type == G_UNICODE_BREAK_ZERO_WIDTH_SPACE)
break_op = BREAK_ALLOWED; /* Rule LB8 */
- if (prev_wc == 0x200D &&
- (break_type == G_UNICODE_BREAK_IDEOGRAPHIC ||
- break_type == G_UNICODE_BREAK_EMOJI_BASE ||
- break_type == G_UNICODE_BREAK_EMOJI_MODIFIER))
+ if (prev_wc == 0x200D)
break_op = BREAK_PROHIBITED; /* Rule LB8a */
if (break_type == G_UNICODE_BREAK_SPACE ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]