Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634122 - www-client/falkon expects dictionary files in /usr/share/qt5/qtwebengine_dictionaries
Summary: www-client/falkon expects dictionary files in /usr/share/qt5/qtwebengine_dict...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
Depends on:
Reported: 2017-10-12 17:55 UTC by Reimundo Heluani
Modified: 2019-03-11 07:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

myspell-r2.eclass.patch (myspell-r2.eclass.patch,1.47 KB, patch)
2018-02-18 14:58 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reimundo Heluani 2017-10-12 17:55:53 UTC
While I think this is a bug upstream, today I updated finally to qt 5.9.2 and was hoping to use the spell-check functionality available in qupzilla since 5.8.0. The Preference pane does not show up unless you have dictionaries available in specific directories. In my system these are

/usr/bin/qtwebengine_dictionaries, /usr/share/qt5/qtwebengine_dictionaries

But I only found out about this by running the program through gdb. After creating those directories and putting some dictionaries there the preference pane shows an extra tab for spell checking. 

Perhaps the ebuild could add a message informing about dictionaries in this place, or even create the directories and put the right dictionaries as per l10n_xx use flags?
Comment 1 Reimundo Heluani 2017-10-12 18:48:47 UTC
As per discussion in the bug I raised in qupzilla:

I can no longer reproduce this bug, after erasing the directory the preference pane remains there without any language, so I have no clue what's going on.
Comment 2 Andreas Sturmlechner gentoo-dev 2017-10-12 18:51:23 UTC
Maybe a separate package qtwebengine-dicts should call qwebengine_convert_dict to fill that directory witch dictionaries?
Comment 3 Andrei Slavoiu 2018-02-18 14:58:58 UTC
Created attachment 520030 [details, diff]

Perhaps having a different package would be the cleanest solution, but it would be harder to maintain since it would need to duplicate the LANGS list and tricks to turn them into dependencies, but with an adjustment to use subslots in order to be automaticaly rebuilt when the dictionaries are updated.

Another aproach would be to have the dictionary packages themself do the conversion when they are installed. That guaranties the dictionaries the qtwebkit uses are allways in sync. The attached patch for the myspell-r2.eclass does just that, the biggest downside being that it requires EAPI=6 and not all dictionary ebuilds use it yet.
Comment 4 Andreas Sturmlechner gentoo-dev 2019-01-30 22:37:04 UTC
www-client/qupzilla is dead, long live www-client/falkon.

Is this still relevant for www-client/falkon?
Comment 5 Andrei Slavoiu 2019-01-31 18:22:44 UTC
Nothing changed in this regard.