Hi,
Am 14.07.25 um 21:46 schrieb Soren Stoutner:
As the maintainer of the LibreOffice package, do you have any insights into
why the current version of hunspell-nl doesn’t work with LibreOffice but does
work from the command line?
work inside of LibreOffice.
$ hunspell -d nl test.odt
That one picks up nl.dic as intended because you actually specify it (and it
looks in /usr/share/hunspell).
testing that I can see is that the version in testing no longer ships
region-
specific symlinks to the main files (like nl_AW.aff). Are these files
somehow
important to LibreOffice is some way that I don’t understand?
But that seems the problem to me.
LibreOffice looks for xx_YY.dic.
The LibreOffice extensions work without that because they have a registration
mechanism telling stuff
(here [1] in upstreams dictionaries/ module) but that doesn't work for the
discovery mechanism.
See
https://cgit.freedesktop.org/libreoffice/core/tree/lingucomponent/source/lingutil/lingutil.cxx#n63
In short: You most probably want the nl_XX.* symlinks.
Check in a running LibreOffice what it detects in "Tools -> Options -> Writing Aids" and
what it sees. I'd bet it didn't see Dutch ("Whatever")
Regards,
Rene
[1]
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Linguistic"
oor:package="org.openoffice.Office">
<node oor:name="ServiceManager">
<node oor:name="Dictionaries">
<node oor:name="HunSpellDic_nl-NL" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/nl_NL.aff %origin%/nl_NL.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_SPELL</value>
</prop>
<prop oor:name="Locales" oor:type="oor:string-list">
<value>nl-NL nl-BE</value>
</prop>
</node>
<node oor:name="HyphDic_nl-NL" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/hyph_nl_NL.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_HYPH</value>
</prop>
<prop oor:name="Locales" oor:type="oor:string-list">
<value>nl-NL nl-BE</value>
</prop>
</node>
</node>
</node>
</oor:component-data>