#9 spell check only within (or exclude) certian buffer tags

open
None
5
2013-05-29
2004-07-27
Duncan Coutts
No

Consider the case that GtkSpell is attached to a
GtkSourceBuffer (the buffer object deriving from
GtkTextBuffer used by the GtkSourceView system). It
might make sense to exclude certian bits form being
checked or only check spelling within certian parts of
the buffer.

For example supposing we are editing program source
code, we do not want to spell check normal code, but it
would be great to be able to spell check bits of inline
documentation or comments. Now the sourceview buffer
has named markers added to it dependingon the text and
highliting mode. If it were posible to add an API to
GtkSpell to tell it to only check within certian named
buffer tags (or the other way round to check everyting
except certian tags) than that would do the trick I
believe.

eg:
gtkspell_set_excluded_tags (GtkSpell spell, const
GSList
tags);
gtkspell_set_include_only_tags (GtkSpell spell, const
GSList
tags);

Or maybe just a single function to set the list and
another to say wether we should check only inside these
tags, or should check everything but these tags.

BTW have you got a bugzilla (didn't see you in gnome
bugzilla), the sf.net tracker isnt much good.

Discussion

  • Sandro Mani
    Sandro Mani
    2013-05-29

    Is anyone still interested in this? If so, could that someone apply the referenced patch (which I've attached here for convenience) to the latest codebase and make sure it still works as desired?