Package: pango1.0 / 1.42.4-8~deb10u1

Update-Line-Break-to-Unicode-11.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: Peng Wu <alexepico@gmail.com>
Date: Wed, 12 Sep 2018 16:17:59 +0800
Subject: Update Line Break to Unicode 11

(cherry picked from commit ad1dc6019e67556b5b3b4fb164c15a2c3289bbc9)
---
 pango/break.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/pango/break.c b/pango/break.c
index 136d500..558df7e 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 ||