| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/enchant/ |
Upload File : |
EFc @ s d Z d Z d Z d Z d Z d e e e e f Z d e f d YZ d d k Z d d k
Z
d d k Z d d k Z d e f d
YZ
d e f d YZ d
e f d YZ d e f d YZ d e f d YZ d e f d YZ e Z e i Z e i Z e i Z e i Z e i Z d e i f d YZ d e i f d YZ d e i f d YZ d Z d Z e d j o e n d S( sL
enchant: Access to the enchant spellchecking library
This module provides several classes for performing spell checking
via the Enchant spellchecking library. For more details on Enchant,
visit the project website:
http://www.abisource.com/enchant/
Spellchecking is performed using 'Dict' objects, which represent
a language dictionary. Their use is best demonstrated by a quick
example:
>>> import enchant
>>> d = enchant.Dict("en_US") # create dictionary for US English
>>> d.check("enchant")
True
>>> d.check("enchnt")
False
>>> d.suggest("enchnt")
['enchant', 'enchants', 'enchanter', 'penchant', 'incant', 'enchain', 'enchanted']
Languages are identified by standard string tags such as "en" (English)
and "fr" (French). Specific language dialects can be specified by
including an additional code - for example, "en_AU" refers to Australian
English. The later form is preferred as it is more widely supported.
To check whether a dictionary exists for a given language, the function
'dict_exists' is available. Dictionaries may also be created using the
function 'request_dict'.
A finer degree of control over the dictionaries and how they are created
can be obtained using one or more 'Broker' objects. These objects are
responsible for locating dictionaries for a specific language.
Unicode strings are supported transparently, as they are throughout
Python - if a unicode string is given as an argument, the result will
be a unicode string. Note that Enchant works in UTF-8 internally,
so passing an ASCII string to a dictionary for a language requiring
Unicode may result in UTF-8 strings being returned.
Errors that occur in this module are reported by raising 'Error'.
i i t s
%d.%d.%d%st Errorc B s e Z d Z RS( s, Base exception class for the enchant module.( t __name__t
__module__t __doc__( ( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyR U s iNt DictNotFoundErrorc B s e Z d Z RS( s@ Exception raised when a requested dictionary could not be found.( R R R ( ( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyR ` s t ProviderDescc B s; e Z d Z d Z d Z d Z d Z d Z RS( sG Simple class describing an Enchant provider.
Each provider has the following information associated with it:
* name: Internal provider name (e.g. "aspell")
* desc: Human-readable description (e.g. "Aspell Provider")
* file: Location of the library containing the provider
c C s | | _ | | _ | | _ d S( N( t namet desct file( t selfR R R ( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyt __init__n s c C s d | i S( Ns
<Enchant: %s>( R ( R
( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyt __str__s s c C s
t | S( N( t str( R
( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyt __repr__v s c C s6 | i | i j o# | i | i j o | i | i j S( s* Equality operator on ProviderDesc objects.( R R R ( R
t pd( ( s4 /usr/lib/python2.6/site-packages/enchant/__init__.pyt __eq__y s c C s t | i | i | i S( s&