voikko / libreoffice-voikko

Language checker and hyphenator extension for LibreOffice
Mozilla Public License 2.0
13 stars 7 forks source link

Feature request: manually specified dict search path #3

Closed snomos closed 8 years ago

snomos commented 8 years ago

It would be very useful to be able to manually specify additional search paths in the LO-voikko oxt settings pane. The specified path(s) would then be searched first, and would give the user a way to specify search paths not considered when the oxt was compiled.

hatapitk commented 8 years ago

Libvoikko has no API that would allow doing this right now. I'd like to understand the use case better. Is this something that ordinary users would likely need?

You can already specify additional paths by setting the environment variable VOIKKO_DICTIONARY_PATH before you start the program that uses libvoikko:

VOIKKO_DICTIONARY_PATH=/home/harri/something:/usr/local/other lowriter

Users who directly access paths such as /usr/local/share/voikko are likely able to use this method. It also works for other applications (Mozvoikko etc.). Would this be enough?

snomos commented 8 years ago

Using the environment variable should be ok.

hatapitk commented 8 years ago

Ok, I will close this as enhancement/wontfix for now. But in theory this might work as an advanced option as long as the UI won't confuse casual users.