* [ISSUE] Package request: qtwebengine_dictionaries
@ 2024-03-02 15:16 Eloitor
2024-03-04 10:52 ` chrysos349
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: Eloitor @ 2024-03-02 15:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]
New issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030
Description:
### 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.
1. Install and launch the `dooble` browser.
2. Edit -> Settings -> Web -> Spell Checkers
You get a warning that `qtwebengines_dictionary` cannot be accessed. I searched using `xlocate "\.bdic"` and didn't find any package that provided such (only `Grammalecte` for french).
Reading from https://doc.qt.io/qt-6.6/qt-add-webengine-dictionary.html
> A spell checker in Qt Web Engine needs dictionaries in a specific binary format. This CMake command converts dictionaries from the [Hunspell project](https://sourceforge.net/projects/hunspell/). into the bdict binary format.
### Does the requested package meet the package requirements?
System, Compiled
### Is the requested package released?
Yes
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
@ 2024-03-04 10:52 ` chrysos349
2024-03-04 10:54 ` Eloitor
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: chrysos349 @ 2024-03-04 10:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1976305351
Comment:
>I'm not sure about this.
You missed a rather important bit: all the `*.bdict` dictionaries are generate automatically by `dooble` build system.
Modify the template by adding this to `do_install()`
```sh
vcopy qtwebengine_dictionaries usr/share/dooble
```
then add this patch
```diff
--- 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())
{
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
2024-03-04 10:52 ` chrysos349
@ 2024-03-04 10:54 ` Eloitor
2024-03-04 18:10 ` Eloitor
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2024-03-04 10:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1976308530
Comment:
Wow thank you! I didn't realized that :)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
2024-03-04 10:52 ` chrysos349
2024-03-04 10:54 ` Eloitor
@ 2024-03-04 18:10 ` Eloitor
2024-03-04 18:43 ` Eloitor
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2024-03-04 18:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1977177645
Comment:
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 `QT_INSTALL_PREFIX/qtwebengine_dictionaries`...
Is `QT_INSTALL_PREFIX` just `/usr/share/qt6` ?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (2 preceding siblings ...)
2024-03-04 18:10 ` Eloitor
@ 2024-03-04 18:43 ` Eloitor
2024-03-05 2:07 ` sgn
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2024-03-04 18:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1977177645
Comment:
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 `QT_INSTALL_PREFIX/qtwebengine_dictionaries`...
Is `QT_INSTALL_PREFIX` just `/usr/share/qt6` ? I think not... I think it is just `/usr`?? But installing the dictionaries in `/usr/qtwebengine_dictionaries` is odd....
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (3 preceding siblings ...)
2024-03-04 18:43 ` Eloitor
@ 2024-03-05 2:07 ` sgn
2024-03-05 8:27 ` Eloitor
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2024-03-05 2:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1977817284
Comment:
https://groups.google.com/g/linux.debian.bugs.dist/c/dvznQNLhfIQ
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (4 preceding siblings ...)
2024-03-05 2:07 ` sgn
@ 2024-03-05 8:27 ` Eloitor
2024-03-05 9:23 ` chrysos349
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2024-03-05 8:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978205000
Comment:
```
$ qmake6 -query | grep QT_INSTALL_DATA
QT_INSTALL_DATA:/usr/share/qt6
```
So the dictionaries could be placed in `/usr/share/qt6/qtwebengine_dictionaries`.
**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 `qtwebengine-dict-en-us`?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (5 preceding siblings ...)
2024-03-05 8:27 ` Eloitor
@ 2024-03-05 9:23 ` chrysos349
2024-03-05 10:14 ` chrysos349
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: chrysos349 @ 2024-03-05 9:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978305319
Comment:
archlinux has `*.bdic` in `hunspell-<LANG>` packages:
See here - https://gitlab.archlinux.org/archlinux/packaging/packages/hunspell-de/-/blob/main/PKGBUILD?ref_type=heads#L64
```
# Install webengine dictionaries
install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
for _file in "$pkgdir"/usr/share/hunspell/*.dic; do
_filename=$(basename $_file)
/usr/lib/qt6/qwebengine_convert_dict $_file "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/${_filename/\.dic/\.bdic} "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
done
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (6 preceding siblings ...)
2024-03-05 9:23 ` chrysos349
@ 2024-03-05 10:14 ` chrysos349
2024-03-05 10:20 ` classabbyamp
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: chrysos349 @ 2024-03-05 10:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978409304
Comment:
In a similar manner `hunspell-<LANG>` templates can be modified, e.g. `hunspell-en_US`:
```diff
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
}
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (7 preceding siblings ...)
2024-03-05 10:14 ` chrysos349
@ 2024-03-05 10:20 ` classabbyamp
2024-03-05 10:26 ` chrysos349
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-03-05 10:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978420884
Comment:
it can't be exactly like that, as that would make it impossible to build on architectures that can't have qt6-webengine
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (8 preceding siblings ...)
2024-03-05 10:20 ` classabbyamp
@ 2024-03-05 10:26 ` chrysos349
2024-03-05 10:32 ` chrysos349
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: chrysos349 @ 2024-03-05 10:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978431075
Comment:
you are correct. forgot about those architectures.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (9 preceding siblings ...)
2024-03-05 10:26 ` chrysos349
@ 2024-03-05 10:32 ` chrysos349
2024-03-05 14:38 ` sgn
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: chrysos349 @ 2024-03-05 10:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 308 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978431075
Comment:
you are correct. forgot about those architectures.
UPD. What about enabling only when crossbuilding?
```sh
if [ "$CROSS_BUILD" ]; then
...
fi
```
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (10 preceding siblings ...)
2024-03-05 10:32 ` chrysos349
@ 2024-03-05 14:38 ` sgn
2024-03-05 14:41 ` sgn
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2024-03-05 14:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978920894
Comment:
Can be built by qt5-webengine (it's only needed in host).
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (11 preceding siblings ...)
2024-03-05 14:38 ` sgn
@ 2024-03-05 14:41 ` sgn
2024-03-08 13:02 ` sgn
2024-03-10 10:57 ` [ISSUE] [CLOSED] " sgn
14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2024-03-05 14:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1978926773
Comment:
Another possible approach is `xbps-triggers` that will regenerate `.bdic` files upon installation into `/usr/share/hunspell` and/or `qt5-webengine` and/or `qt6-webengine`.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (12 preceding siblings ...)
2024-03-05 14:41 ` sgn
@ 2024-03-08 13:02 ` sgn
2024-03-10 10:57 ` [ISSUE] [CLOSED] " sgn
14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2024-03-08 13:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/49030#issuecomment-1985658881
Comment:
https://github.com/void-linux/void-packages/pull/49189
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [ISSUE] [CLOSED] Package request: qtwebengine_dictionaries
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
` (13 preceding siblings ...)
2024-03-08 13:02 ` sgn
@ 2024-03-10 10:57 ` sgn
14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2024-03-10 10:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
Closed issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/49030
Description:
### 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.
1. Install and launch the `dooble` browser.
2. Edit -> Settings -> Web -> Spell Checkers
You get a warning that `qtwebengines_dictionary` cannot be accessed. I searched using `xlocate "\.bdic"` and didn't find any package that provided such (only `Grammalecte` for french).
Reading from https://doc.qt.io/qt-6.6/qt-add-webengine-dictionary.html
> A spell checker in Qt Web Engine needs dictionaries in a specific binary format. This CMake command converts dictionaries from the [Hunspell project](https://sourceforge.net/projects/hunspell/). into the bdict binary format.
### Does the requested package meet the package requirements?
System, Compiled
### Is the requested package released?
Yes
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-03-10 10:57 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-02 15:16 [ISSUE] Package request: qtwebengine_dictionaries Eloitor
2024-03-04 10:52 ` chrysos349
2024-03-04 10:54 ` Eloitor
2024-03-04 18:10 ` Eloitor
2024-03-04 18:43 ` Eloitor
2024-03-05 2:07 ` sgn
2024-03-05 8:27 ` Eloitor
2024-03-05 9:23 ` chrysos349
2024-03-05 10:14 ` chrysos349
2024-03-05 10:20 ` classabbyamp
2024-03-05 10:26 ` chrysos349
2024-03-05 10:32 ` chrysos349
2024-03-05 14:38 ` sgn
2024-03-05 14:41 ` sgn
2024-03-08 13:02 ` sgn
2024-03-10 10:57 ` [ISSUE] [CLOSED] " sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).