Re: gtk_text_iter_starts_sentence prob




Martin Muellenberg <MartinMue gmx net> writes:
I have the following problem:

GtkTextIter pos_zuvor;

gtk_text_buffer_get_end_iter(gtktextbuffer, &pos_zuvor);

if(gtk_text_iter_starts_sentence(&pos_zuvor) == TRUE)
{
    puts("JUHU");
    textwords[i].spelling[0] = toupper(textwords[i].spelling[0]);
}

I 've never seen the funny JUHU :-( My sentence is ending with a '.'
character.

The end iterator is never the start of a sentence (the start of a
sentence is the "T" in "This is a sentence.")

Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Hi Havoc,

thanks for the information. I thought, gtk_text_iter_starts_sentence() tests
if the 
last character before the end iterator is a '.' so the end iterator must be
at the 
beginning of the new (not yet written) sentence.

bye marmll

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




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