-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package request: qtwebengine_dictionaries #49030
Comments
You missed a rather important bit: all the Modify the template by adding this to vcopy qtwebengine_dictionaries usr/share/dooble then add this patch --- a/Source/dooble_settings.cc
+++ b/Source/dooble_settings.cc
@@ -2271,7 +2271,7 @@ void dooble_settings::show_qtwebengine_dictionaries_warning_label(void)
if(bytes.trimmed().isEmpty())
{
- bytes = "qtwebengine_dictionaries";
+ bytes = "/usr/share/dooble/qtwebengine_dictionaries";
if(!QFileInfo(bytes).isReadable())
{ |
Wow thank you! I didn't realized that :) |
Looking at https://doc.qt.io/qt-6/qtwebengine-features.html#spellchecker maybe it is better to add the qtwebengine_dictionaries as a separate package and install them to Is |
So the dictionaries could be placed in Do we have any package with qt5 which could potentially use those dictionaries? If not, we could not care about symlinking them to the qt5 folder. Should we name the packages like |
archlinux has
|
In a similar manner diff --git a/srcpkgs/hunspell-en_US/template b/srcpkgs/hunspell-en_US/template
index ce4df5e1a..2d60aa496 100644
--- a/srcpkgs/hunspell-en_US/template
+++ b/srcpkgs/hunspell-en_US/template
@@ -3,7 +3,7 @@ pkgname=hunspell-en_US
version=2020.12.07
revision=1
create_wrksrc=yes
-hostmakedepends="unzip"
+hostmakedepends="unzip qt6-webengine"
short_desc="American English en_US dictionary for hunspell"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="SCOWL" # not in SPDX
@@ -15,4 +15,15 @@ do_install() {
vinstall en_US.aff 644 /usr/share/hunspell
vinstall en_US.dic 644 /usr/share/hunspell
vlicense README_en_US.txt SCOWL
+
+ # add qtwebengine_dictionaries
+ vmkdir /usr/share/qt6/qtwebengine_dictionaries
+ vmkdir /usr/share/qt5/qtwebengine_dictionaries
+ for f in ${DESTDIR}/usr/share/hunspell/*.dic; do
+ fa=$(basename $f .dic)
+ /usr/lib/qt6/libexec/qwebengine_convert_dict $f \
+ ${DESTDIR}/usr/share/qt6/qtwebengine_dictionaries/${fa}.bdic
+ ln -s /usr/share/qt6/qtwebengine_dictionaries/${fa}.bdic \
+ ${DESTDIR}/usr/share/qt5/qtwebengine_dictionaries
+ done
} |
it can't be exactly like that, as that would make it impossible to build on architectures that can't have qt6-webengine |
you are correct. forgot about those architectures. UPD. What about enabling only when crossbuilding? if [ "$CROSS_BUILD" ]; then
...
fi |
Can be built by qt5-webengine (it's only needed in host). |
Another possible approach is |
Package name
qtwebengine_dictionaries
Package homepage
https://doc.qt.io/qt-6.6/qt-add-webengine-dictionary.html
Description
I'm not sure about this. The use case is to provide spell checking for the dooble Browser.
dooble
browser.You get a warning that
qtwebengines_dictionary
cannot be accessed. I searched usingxlocate "\.bdic"
and didn't find any package that provided such (onlyGrammalecte
for french).Reading from https://doc.qt.io/qt-6.6/qt-add-webengine-dictionary.html
Does the requested package meet the package requirements?
System, Compiled
Is the requested package released?
Yes
The text was updated successfully, but these errors were encountered: