Summary: | Sonnet tries to load some Hebrew dictionary on an English-only system | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-sonnet | Reporter: | Dan Dascalescu <ddascalescu+kde> |
Component: | general | Assignee: | Martin Sandsmark <martin.sandsmark> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | brokencanoe, kdelibs-bugs, loh.tar, nate, waqar.17a |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Dan Dascalescu
2021-02-18 11:04:56 UTC
Forgot to add the step that triggers the message: check "Show Text View" from Settings. (In reply to Dan Dascalescu from comment #0) > SUMMARY > My locale is US English, and when I launch Kompare, I see this in the > console: > > $ kompare files1.lst files2.lst > Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. > kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed > > ADDITIONAL INFORMATION > Since I don't use any other locales, I have used Bleachbit to delete >300MB > of bloat locales that came preinstalled with KDE neon 5.21. That might have > triggered the bug. Can you check than you have hunspell-he installed : https://archlinux.org/packages/extra/x86_64/hunspell-he/ (In reply to Canoe from comment #2) > (In reply to Dan Dascalescu from comment #0) > > SUMMARY > > My locale is US English, and when I launch Kompare, I see this in the > > console: > > > > $ kompare files1.lst files2.lst > > Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. > > kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed > > > > ADDITIONAL INFORMATION > > Since I don't use any other locales, I have used Bleachbit to delete >300MB > > of bloat locales that came preinstalled with KDE neon 5.21. That might have > > triggered the bug. > > Can you check than you have hunspell-he installed : > https://archlinux.org/packages/extra/x86_64/hunspell-he/ (In reply to Dan Dascalescu from comment #0) > SUMMARY > My locale is US English, and when I launch Kompare, I see this in the > console: > > $ kompare files1.lst files2.lst > Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. > kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed > > ADDITIONAL INFORMATION > Since I don't use any other locales, I have used Bleachbit to delete >300MB > of bloat locales that came preinstalled with KDE neon 5.21. That might have > triggered the bug. (In reply to Canoe from comment #2) > (In reply to Dan Dascalescu from comment #0) > > SUMMARY > > My locale is US English, and when I launch Kompare, I see this in the > > console: > > > > $ kompare files1.lst files2.lst > > Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. > > kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed > > > > ADDITIONAL INFORMATION > > Since I don't use any other locales, I have used Bleachbit to delete >300MB > > of bloat locales that came preinstalled with KDE neon 5.21. That might have > > triggered the bug. > > Can you check than you have hunspell-he installed : > https://archlinux.org/packages/extra/x86_64/hunspell-he/ Apologies I've misread your post. Can you check that you have the appropriate hunspell package for your language/locale installed. I've had the same issue of it defaulting to Hebrew when there are no other language packages installed. Note that Hspell is not the same as Hunspell, it is a different spellchecker, for Hebrew only. Also note that Hunspell also supports Hebrew, among many other languages. (I do not know whether there are any advantages of Hspell nor what they are. In Fedora, we build Sonnet with Hunspell only, so this cannot happen there. The Aspell and Hspell backends are basically superseded by Hunspell. Only Voikko actually provides support for a language with no decent support in Hunspell, namely Finnish.) I suppose that what happens is that, if the Hunspell backend does not find any dictionary to use, Sonnet falls back to the next backend (and possibly the same for Aspell if it is installed). That ends up being Hspell, and since Hspell is Hebrew-only, the supported locale is hardcoded. That results in this warning. There is not really anything Kompare can do about this. I am reassigning this to Sonnet and leaving it to the Sonnet developers whether they want (and are able) to do anything about this or whether they want to close it as an upstream (Hspell) issue, a downstream (Neon) packaging issue, a user error, or intentional behavior (not a bug). @Canoe: not sure if this helps in light of Kevin's message, but `apt list --installed | grep huns` shows: hunspell-en-us/focal,now 1:2018.04.16-1 all [installed,automatic] libhunspell-1.7-0/focal,now 1.7.0-2build2 amd64 [installed,automatic] libqt5hunspellinputmethod5/focal,now 5.15.2+dfsg-0xneon+20.04+focal+build13 amd64 [installed,automatic] *** This bug has been marked as a duplicate of bug 421451 *** |