Hi Francisco,
thanks for your feedback.
This would be a very nice feature indeed. But I could not find a
clean way to implement it:
The install function in the dictools module reads dictionaries via
http from the git repo of LibreOffice. See
http://cgit.freedesktop.org/libreoffice/dictionaries/plain/. I am
unaware of an API feature of LibreOffice to obtain a list of
installable dicts, say, through an xml file in that repo. I may be
wrong. So please let me know about anything I might have overlooked.
To solve your problem, you have the following options:
1. Retrieve the dic file for latin in your local OpenOffice or
LibraOffice installation or download it from somewhere, and copy it
to pyhyphen's package root. Install it via the 'register' function
in the dictools module. You should then be able to instantiate the
Hyphenator specifying the language. You may hve to specify the
directory keyword argument.
2. Retrieve the local path of the latin dict and instantiate
Hyphenator with the keyword arg directory = <path>.
3. If 1 and 2 don't work for you, read the dictools module to
understand how dictionaries are installed, i.e. how their metadata
including local path is stored in a pickled file. You can then add
the info on latin manually.
I hope this ehlps.
Regards
Leo