summaryrefslogtreecommitdiff
path: root/tests/testboundaries.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-06-22 18:53:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-06-22 18:53:00 +0000
commit1939a027b1d4e6c7d83af9e42e191f1bfb0cf8a0 (patch)
tree1fcdd2ab1b502022d5604ac5c99724a0d56efe69 /tests/testboundaries.c
parent8ba821e11ccc3c357ae244b8a6707418c78a5e29 (diff)
downloadpango-1939a027b1d4e6c7d83af9e42e191f1bfb0cf8a0.tar.gz
Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, Jeroen
Tue Jun 22 14:10:41 2004 Owen Taylor <otaylor@redhat.com> * pango/break.c: Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, Jeroen Zwartepoorte) * pango/break.c (pango_default_break): Handle space followed by a combining character as called for by TR 14. * tests/testboundaries.c (check_line_char): Fix up for space+combining mark * pango/break.c (pango_default_break): Change fixme for G_UNICODE_BREAK_SURROGATE to g_assert_not_reached().
Diffstat (limited to 'tests/testboundaries.c')
-rw-r--r--tests/testboundaries.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index fb45c4d3..829e0ab4 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -216,8 +216,9 @@ check_line_char (gunichar wc,
if (break_type == G_UNICODE_BREAK_SPACE)
{
if (attr->is_line_break && prev_attr != NULL &&
- !attr->is_mandatory_break)
- fail ("can't break lines before a space unless a mandatory break char precedes it; prev char was " CHFORMAT, prev_wc);
+ !attr->is_mandatory_break &&
+ !(next_wc && g_unichar_break_type (next_wc) == G_UNICODE_BREAK_COMBINING_MARK))
+ fail ("can't break lines before a space unless a mandatory break char precedes it or a combining mark follows; prev char was " CHFORMAT, prev_wc);
}
if (attr->is_mandatory_break && !attr->is_line_break)