Gtk2::Spell(3pm)

Gtk2::Spell3pm

Bindings for gtkspell with gtk2

Usage

  use Gtk2;
  use Gtk2::Spell;
  $txtview = Gtk2::TextView->new;
  $spell = Gtk2::Spell->new_attach($txtview);
  $spell2 = Gtk2::Spell->get_from_text_view($txtview);
  # $spell2 will be the same object as $spell
  $spell->set_language(SOME_LANG);
  $spell->recheck_all;
  $spell->detach;

Abstract

  Perl bindings to GtkSpell, used in concert with Gtk2::TextView.

Overview

Perl bindings to GtkSpell, used in concert with Gtk2::TextView. Provides mis-spelled word highlighting in red and offers a right click pop-up menu with suggested corrections.

Functions

$spell = Gtk2::Spell->new(GTK2_TEXT_VIEW)
$spell = Gtk2::Spell->new_attach(GTK2_TEXT_VIEW)

Creates and returns a new Gtk2::Spell object attached to GTK2_TEXT_VIEW.

$spell->set_language(LANG_STR)

Sets the language which the underlying spell-checker will use. According to the GtkSpell API reference this 'appears to be a locale specifier.'

$spell->recheck_all

Rechecks the spelling of the entire text view buffer.

Gtk2::Spell->get_from_text_view(GTK2_TEXT_VIEW)

Returns the Gtk2::Spell object attached to the given Gtk2::TextBuffer or undef if there isn't one attached.

$spell->detach

Detaches the Gtk2::Spell from it's associated text view.

Releases

7 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1–4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

rwmcfa1 <[email protected]>

From libgtk2-spell-perl 1.04-3+b1 in Debian 9 (Stretch). Parsed by carta from the page's man source.