word breaks



Hi,

I'm using Pango for the first time through the GTK+ API.  I've noticed
some odd behavior when Pango breaks text that contains numbers into
words.  For example, "word1234" becomes "word" and "234".

Is this expected behavior?  If not, is it a problem with Pango or GTK+?

Example:
Initial buffer contains: "1234word word1234"

GtkTextIter a, b;
gtk_text_buffer_get_start_iter(buffer, &b);
while (gtk_text_iter_forward_word_end(&b)) {
   a = b;
   gtk_text_iter_backward_word_start(&a);
   g_print("!%s!\n", gtk_text_buffer_get_text(buffer, &a, &b, TRUE));
}

Output:
!1234!
!ord!
!word!
!234!





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]