On Mon, Apr 25, 2016 at 07:22:24PM +0200, Gunnar Hjalmarsson wrote:
> Package: libreoffice-dictionaries
> Version: 1:5.1.2-1
> Severity: grave
> 
> Forwarding the Ubuntu bug <https://launchpad.net/bugs/1574745>.
> 
> Several dictionaries are installed under names which don't specify the
> country codes. Examples:
> 
> /usr/share/hunspell/es_ANY.dic
> /usr/share/hyphen/hyph_sv.dic
> 
> In those cases LibreOffice does not recognize them as available.
> Symlinks seem to be needed; please see example in the Ubuntu bug.

Hi,

For the records, I am the Debian maintainer of myspell-es (from espa~nol).
myspell-es ships a bunch of symlinks for that purpose after request in a
Debian bug report, but later found some bug reports in Ubuntu about just the
opposite,

https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/663032
https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/793666
https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/927256

myspell-es is the same for all countries, so I think that leaving symlinks
there is by far the lesser evil, even if it adds some noise.

For use with plain hunspell, the problem is that hunspell does not
implement BCP 47 for locale based automatic fallback dictionary selection,

https://sourceforge.net/p/hunspell/feature-requests/40/

so 

$ LANG=es_ES hunspell test.txt 

will only search for es_ES.dic and not use es.dic (or es_ANY) as fallback.

However, I thought that libreoffice had an internal implementation for that
purpose. Unfortunately I tried with both es_ANY.{aff,dic} and es.{aff,dic}
and I was proven wrong.

-- 
Agustin

Reply via email to