1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
First Steps
===========
Installation
------------
The easiest way to use pyphen is to install it in a Python `virtual
environment`_. When your virtual environment is activated, you can then install
pyphen with pip_::
pip install pyphen
.. _virtual environment: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
.. _pip: https://pip.pypa.io/
Short Example
-------------
.. code-block:: python
>>> dic = pyphen.Pyphen(lang='fr_FR')
>>> dic.inserted('fromage')
'fro-mage'
Included Dictionaries
---------------------
The dictionaries included in LibreOffice are distributed with Pyphen:
* Afrikaans
* Albanian
* Belarusian
* Bulgarian
* Catalan
* Croatian
* Czech
* Danish
* Dutch
* English (Great-Britain and United-States)
* Esperanto
* Estonian
* French
* Galician
* German (Austria, Germany and Switzerland)
* Greek
* Hungarian
* Icelandic
* Indonesian
* Italian
* Lithuanian
* Latvian
* Mongolian
* Norwegian (Bokmål and Nynorsk)
* Polish
* Portuguese (Brazil and Portugal)
* Romanian
* Russian
* Serbian (cyrillic and latin)
* Slovak
* Slovenian
* Spanish
* Swedish
* Telugu
* Thai
* Ukrainian
* Zulu
|