Permalink
Find file Copy path
22a7902 Oct 3, 2016
2 contributors

Users who have contributed to this file

@carlos-jenkins @koehlma
83 lines (56 sloc) 2.68 KB

Python GTK Spellchecker

A simple but quite powerful spellchecking library written in pure Python for Gtk based on Enchant. It supports PyGObject as well as PyGtk for Python 2 and 3 with automatic switching and binding detection. For automatic translation of the user interface it can use Gedit’s translation files.

Features

  • localized names of the available languages
  • supports word, line and multiple line ignore regular expressions
  • supports ignore custom tags on GtkTextBuffer
  • enable and disable of spellchecking with preferences memory
  • supports hotswap of GtkTextBuffers
  • PyGObject and PyGtk compatible with automatic detection
  • Python 2 and 3 supportas Enchant, support for Hunspell (LibreOffice) and Aspell (GNU) dictionaries
  • extract dictionaries out of LibreOffice extension files
  • legacy API for Python GtkSpell

API Reference

.. autoclass:: gtkspellcheck.spellcheck.SpellChecker
   :members:

.. autoclass:: gtkspellcheck.spellcheck.NoDictionariesFound

.. autoclass:: gtkspellcheck.spellcheck.NoGtkBindingFound


Deprecated API Reference

Warning

The following functions are deprecated since version 4.0.5, they will be removed from "pygtkspellcheck" in 5.0.

.. autofunction:: pylocales.code_to_name

.. autofunction:: gtkspellcheck.oxt_extract.extract

.. autofunction:: gtkspellcheck.oxt_extract.batch_extract

.. autoclass:: gtkspellcheck.oxt_extract.BadXml

.. autoclass:: gtkspellcheck.oxt_extract.BadExtensionFile

.. autoclass:: gtkspellcheck.oxt_extract.ExtractPathIsNoDirectory

Development

Development happens at GitHub.

git clone git://github.com/koehlma/pygtkspellcheck.git

Download last sources in a ZIP or Tarball file.

Website

Checkout the official project website for additional information.

Examples

License

PyGtkSpellcheck is released under GPLv3 or at your opinion any later version.