summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorPeng Wu <pwu@redhat.com>2021-10-12 09:54:44 +0800
committerPeng Wu <pwu@redhat.com>2021-10-12 09:54:44 +0800
commit604425dd784e6dbd91b985a3aa138154ef15cd14 (patch)
treea17b178a6b54c836dbe7f0e49f0d6165d1985cf0 /pango/break.c
parent0fe496f74c1a55f7b4335bf582d59e6f7df7e2d0 (diff)
downloadpango-604425dd784e6dbd91b985a3aa138154ef15cd14.tar.gz
Update Line Break to Unicode 14
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pango/break.c b/pango/break.c
index 0cb6666d..917d6031 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1118,6 +1118,11 @@ default_break (const char *text,
break_type == G_UNICODE_BREAK_EMOJI_MODIFIER)
break_op = BREAK_PROHIBITED;
+ if ((_pango_Is_Emoji_Extended_Pictographic (prev_wc) &&
+ g_unichar_type (prev_wc) == G_UNICODE_UNASSIGNED) &&
+ break_type == G_UNICODE_BREAK_EMOJI_MODIFIER)
+ break_op = BREAK_PROHIBITED;
+
/* Rule LB29 */
if (prev_break_type == G_UNICODE_BREAK_INFIX_SEPARATOR &&
(break_type == G_UNICODE_BREAK_ALPHABETIC ||
@@ -1137,8 +1142,7 @@ default_break (const char *text,
prev_break_type == G_UNICODE_BREAK_HANGUL_T_JAMO ||
prev_break_type == G_UNICODE_BREAK_HANGUL_LV_SYLLABLE ||
prev_break_type == G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE) &&
- (break_type == G_UNICODE_BREAK_INSEPARABLE ||
- break_type == G_UNICODE_BREAK_POSTFIX))
+ break_type == G_UNICODE_BREAK_POSTFIX)
break_op = BREAK_PROHIBITED;
if (prev_break_type == G_UNICODE_BREAK_PREFIX &&