Bug 1892402

Summary: Dictionary not found
Product: [Fedora] Fedora Reporter: Peter Oliver <mavit>
Component: nuspellAssignee: vishalvvr <vishalvijayraghavan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: vishalvijayraghavan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nuspell-4.2.0-3.fc32 nuspell-4.2.0-3.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-08 20:14:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Oliver 2020-10-28 16:41:29 UTC
Description of problem:
Nuspell looks for dictionaries in /usr/share/hunspell/, but they're actually in /usr/share/myspell/.

$ nuspell
INFO: I/O  locale name=en_GB.UTF-8, lang=en, country=GB, enc=utf-8
Dictionary en_GB not found
$ nuspell -D
Search paths:
.
/home/mavit/.local/share/hunspell
/usr/local/share/hunspell
/usr/share/hunspell
No dictionaries available
INFO: I/O  locale name=en_GB.UTF-8, lang=en, country=GB, enc=utf-8
$ rpm -ql hunspell-en-GB
/usr/share/doc/hunspell-en-GB
/usr/share/doc/hunspell-en-GB/README_en_GB.txt
/usr/share/myspell/en_GB.aff
/usr/share/myspell/en_GB.dic
$ rpm -q nuspell hunspell-en-GB
nuspell-3.1.2-1.fc33.x86_64
hunspell-en-GB-0.20140811.1-17.fc33.noarch

Comment 1 vishalvvr 2021-02-02 04:58:59 UTC
Sorry for the late comment.
I did report this issue in upstream[1].
Workaround[2] suggested was to create environment variable "DICPATH=/usr/share/myspell" 

[1] https://github.com/nuspell/nuspell/issues/94
[2] https://github.com/nuspell/nuspell/issues/94#issuecomment-728843483

Comment 2 Peter Oliver 2021-02-02 12:04:40 UTC
I see that this is fixed upstream from version 4.1.0 onwards (https://github.com/nuspell/nuspell/commit/5b99a0c6c889b21babfc855607949c1a6e5cbf1b).

Version 4.2.0 is already in Rawhide (Fedora 34), and I can confirm that that version works for me.

Comment 3 Fedora Update System 2021-03-01 15:39:55 UTC
FEDORA-2021-440f340f8f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-440f340f8f

Comment 4 Fedora Update System 2021-03-01 17:10:58 UTC
FEDORA-2021-fcd5eb9c45 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fcd5eb9c45`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fcd5eb9c45

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-03-01 17:46:12 UTC
FEDORA-2021-440f340f8f has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-440f340f8f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-440f340f8f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-03-08 20:14:34 UTC
FEDORA-2021-fcd5eb9c45 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2021-03-08 20:21:10 UTC
FEDORA-2021-440f340f8f has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.