[pango: 1/2] Update break-thai.c to Unicode 11
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 1/2] Update break-thai.c to Unicode 11
- Date: Wed, 3 Jul 2019 15:25:22 +0000 (UTC)
commit bca876de9b8cad4c912a2734561f2fe23b2d872a
Author: Peng Wu <alexepico gmail com>
Date: Thu Sep 13 15:07:36 2018 +0800
Update break-thai.c to Unicode 11
According to the comments from break-thai.c, use alternative approach
for break-thai.c .
pango/break-thai.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/break-thai.c b/pango/break-thai.c
index 85b9e54a..65b527aa 100644
--- a/pango/break-thai.c
+++ b/pango/break-thai.c
@@ -88,13 +88,13 @@ break_thai (const char *text,
#endif
for (cnt = 0; cnt < len; cnt++)
- if (attrs[brk_pnts[cnt]].is_char_break)
+ if (attrs[brk_pnts[cnt]].is_line_break)
{
- /* Only allow additional line breaks if line-breaking is NOT
- * prohibited. (The alternative would be to set is_char_break to
+ /* Only allow additional char breaks if line-breaking is NOT
+ * prohibited. (The alternative would be to set is_line_break to
* TRUE as well. NOT setting it will break invariants that any
* line break opportunity is also a char break opportunity. */
- attrs[brk_pnts[cnt]].is_line_break = TRUE;
+ attrs[brk_pnts[cnt]].is_char_break = TRUE;
attrs[brk_pnts[cnt]].is_word_start = TRUE;
attrs[brk_pnts[cnt]].is_word_end = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]