Bug 324331 - spell checking does not pick up all installed myspell/hunspell variants
Summary: spell checking does not pick up all installed myspell/hunspell variants
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kspell (show other bugs)
Version: 4.10.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-31 21:50 UTC by Erik Quaeghebeur
Modified: 2017-08-21 06:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2013-08-31 21:50:27 UTC
Many languages have different writing variants (e.g., US English, GB English, GB-oed English,...). Hunspell (myspell) often provides dictionaries for all these variants. For example, I would like to use the fr-reforme1990.(dic|aff) over the fr_FR.(dic|aff). However, it seems KDE only shows a certain type of dictionary, i.e., those that correspond to locales (en_US, en_GB, fr_FR are shown, but not en_GB-oed and fr-reforme1990, fr-classique, fr-moderne).

Work-around until fixed appreciated.

Reproducible: Always

Steps to Reproduce:
1. install French or English hunspell/myspell dictionairies
2. look at variants in System Settings, Kate, Kile,... 

Actual Results:  
the non-locale mappable variants are not there

Expected Results:  
all variants should be selectable
Comment 1 Erik Quaeghebeur 2013-09-01 08:20:06 UTC
A follow-up about the locale-relatedness: I renamed fr-reforme1990.(aff|dic) to fr_CZ.(aff|dic) in /usr/share/myspell and indeed, I got French (Czech)! So this bug seems indeed caused by erroneously ignoring dictionaries that do not map to locales.

This makes a work-around straightforward: I created a symbolic link from fr-reforme1990.(aff|dic) to fr.(aff|dic), which works.
Comment 2 Erik Quaeghebeur 2017-08-21 06:34:15 UTC
In KDE 5, for sure when the affix is no longer than 8 characters, things apparently work as they should. Closing.