Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Thanks, slacka.

To answer your first and third question, we use hunspell not myspell. 

Ok. I knew that hunspell was used, but was not sure about the location
LO looks in for dictionary files. /usr/share/hunspell contains the spell
checking dictionaries and these are linked to from /usr/share/myspell
and similarly for thesauri (/usr/share/mythes) and hyphenation files
(/usr/share/hyphen), so I guess LO also looks in /usr/share/mythes and
/usr/share/hyphen.

For the spellcheck function to work, LibreOffice requires both the main hunspell
package along with a language dictionary (hunspell-en for English,
hunspell-de for German, etc).

Hunspell is covered; I'm focusing on dictionary files (spelling,
thesaurus, hyphenation). Let's consider the French dictionaries from
their source <http://www.dicollecte.org/>. These contain fr-classique,
fr-moderne, fr-toutesvariantes, and fr-reforme1990 spelling
dictionaries. These are installed in /usr/share/hunspell and picked up,
e.g., by Firefox. However, LO does not pick them up, apparently because
their filenames are not of the form xx_YY, but of the form xx-zzzz. The
oxt file distributed by dicollecte contains a dictionaries.xcu file and
a Python script that deals with this when installed by the user, so not
system-wide. What I want to achieve is that the xcu file and other
relevant files are installed system-wide in such a way that LO picks
them up and things work the same way as if the oxt file was installed
per-user. *Where should I put those files?*

For a package maintainer, your main concern should be that the language dictionary
associated with the user’s locales is installed.  

Well, in Gentoo it is not done that way, but that is not too important
here. (This is reasonable: for example, I don't have French
locatlizations installed, but do write French texts from time to time.
In short: dictionaries should not be too tightly coupled to locales.)


Best,

Erik

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.