Same 12.04 LTS, I looked over the source code and found that sections of "gedit-spell-checker" reference that it was modified from "gtkspell 2.0.2".
At gtkspell.sourceforge.net/ChangeLog references in a later version:
/* heuristic:
* if we're on an singlequote/apostrophe and
* if the next letter is alphanumeric,
* this is an apostrophe. */
if (!gtk_text_iter_forward_word_end(i))
return FALSE;
if (gtk_text_iter_get_char(i) != '\'')
return TRUE;
iter = *i;
if (gtk_text_iter_forward_char(&iter)) {
if (g_unichar_isalpha(gtk_text_iter_get_char(&iter))) {
return (gtk_text_iter_forward_word_end(i));
}
}
Same 12.04 LTS, I looked over the source code and found that sections of "gedit- spell-checker" reference that it was modified from "gtkspell 2.0.2". sourceforge. net/ChangeLog references in a later version:
At gtkspell.
"version 2.0.11 (2005-05-27):
* Re-enable apostrophe word-breaking workarounds (GNOME bug #97545).
* Additional translations (see po/ChangeLog)."
This seems that they have found a fix for gtkspell and may help to solve the problem in "gedit- spell-checker"
The relevent part of the code is:
<code>
static gboolean text_iter_ forward_ word_end( GtkTextIter *i) {
gtkspell_
GtkTextIter iter;
/* heuristic: apostrophe and
* if we're on an singlequote/
* if the next letter is alphanumeric,
* this is an apostrophe. */
if (!gtk_text_ iter_forward_ word_end( i))
return FALSE;
if (gtk_text_ iter_get_ char(i) != '\'')
return TRUE;
iter = *i; iter_forward_ char(&iter) ) { isalpha( gtk_text_ iter_get_ char(&iter) )) { iter_forward_ word_end( i));
if (gtk_text_
if (g_unichar_
return (gtk_text_
}
}
return TRUE;
}
</code>
Which it looks like someone has already adapted into a workaround here https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 131576
Looks like It may have been abandoned, since the fix existed since 2004, and the bug since around 2002, https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 97545
10 years later...