From c94d7be497f178edf03ee68ac27b3bfe22623c79 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Sep 2003 22:31:15 +0000 Subject: Only reset the word type to WordNone at a word end if it is not also a 2003-09-25 Matthias Clasen * pango/break.c (pango_default_break): Only reset the word type to WordNone at a word end if it is not also a word start. Otherwise both 't' and 'e' are classified as word start in '123test'. (#122754, Hidetoshi Tajima) --- ChangeLog | 8 ++++++++ ChangeLog.pre-1-10 | 8 ++++++++ ChangeLog.pre-1-4 | 8 ++++++++ ChangeLog.pre-1-6 | 8 ++++++++ ChangeLog.pre-1-8 | 8 ++++++++ pango/break.c | 5 +---- 6 files changed, 41 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe74e603..6c703651 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-09-25 Matthias Clasen + + * pango/break.c (pango_default_break): Only reset the word + type to WordNone at a word end if it is not also a word + start. Otherwise both 't' and 'e' are classified as word + start in '123test'. (#122754, Hidetoshi Tajima) + + Tue Sep 23 19:43:05 2003 Owen Taylor * pango/pango-context.c (itemize_state_add_character): Don't diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index fe74e603..6c703651 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,11 @@ +2003-09-25 Matthias Clasen + + * pango/break.c (pango_default_break): Only reset the word + type to WordNone at a word end if it is not also a word + start. Otherwise both 't' and 'e' are classified as word + start in '123test'. (#122754, Hidetoshi Tajima) + + Tue Sep 23 19:43:05 2003 Owen Taylor * pango/pango-context.c (itemize_state_add_character): Don't diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index fe74e603..6c703651 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,11 @@ +2003-09-25 Matthias Clasen + + * pango/break.c (pango_default_break): Only reset the word + type to WordNone at a word end if it is not also a word + start. Otherwise both 't' and 'e' are classified as word + start in '123test'. (#122754, Hidetoshi Tajima) + + Tue Sep 23 19:43:05 2003 Owen Taylor * pango/pango-context.c (itemize_state_add_character): Don't diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index fe74e603..6c703651 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,11 @@ +2003-09-25 Matthias Clasen + + * pango/break.c (pango_default_break): Only reset the word + type to WordNone at a word end if it is not also a word + start. Otherwise both 't' and 'e' are classified as word + start in '123test'. (#122754, Hidetoshi Tajima) + + Tue Sep 23 19:43:05 2003 Owen Taylor * pango/pango-context.c (itemize_state_add_character): Don't diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index fe74e603..6c703651 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,11 @@ +2003-09-25 Matthias Clasen + + * pango/break.c (pango_default_break): Only reset the word + type to WordNone at a word end if it is not also a word + start. Otherwise both 't' and 'e' are classified as word + start in '123test'. (#122754, Hidetoshi Tajima) + + Tue Sep 23 19:43:05 2003 Owen Taylor * pango/pango-context.c (itemize_state_add_character): Don't diff --git a/pango/break.c b/pango/break.c index bbe6b730..88a138b6 100644 --- a/pango/break.c +++ b/pango/break.c @@ -834,11 +834,9 @@ pango_default_break (const gchar *text, default: /* Punctuation, control/format chars, etc. all end a word. */ attrs[i].is_word_end = TRUE; + current_word_type = WordNone; break; } - - if (attrs[i].is_word_end) - current_word_type = WordNone; } else { @@ -1548,4 +1546,3 @@ pango_get_log_attrs (const char *text, log_attrs + chars_broken, attrs_len - chars_broken); } - -- cgit v1.2.1