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



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