Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1020480: hunspell-be: Package the Qt WebEngine binary dictionary files from your Hunspell source

18 views
Skip to first unread message

Soren Stoutner

unread,
Sep 21, 2022, 8:40:04 PM9/21/22
to
Source: hunspell-be
Version: 0.53-3.1
Severity: wishlist

Qt WebEngine has the ability to use Hunspell dictionaries for spell checking,
but they require that the dictionary files be converted to a special binary
format (.bdic). This conversion can be done using qwebengine_convert_dict from
the qtwebengine5-dev-tools package. The upstream documentation regarding this
is found on Qt's website:

https://doc.qt.io/qt-5/qtwebengine-features.html#spellchecker

Once these libraries are available they can be used by any program that includes
Qt WebEngine.

There is desire to package these libraries in Debian, which is fairly easy to do
from your source package with a few minor modifications. However, it is first
necessary to determine the best way to handle the binary packages and which
directory to store the files in. There is a meta-bug that has been filed
against dictionaries-common for the purpose of developing a consensus as to the
best way to do this:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020387

If you have any input on this subject it would be appreciated.

Soren Stoutner

unread,
Apr 11, 2023, 4:42:32 PM4/11/23
to

The dependencies are finally in place so this can be implemented.


To make things simpler for dictionary packagers, we are using a virtual

package and an unversioned path for the conversion tool so that dictionary

packagers don’t have to make modifications to their packages when the versions

of Qt change in Debian.


All you should need to do is the following:


1.  Build-depend on `convert-bdic`.

2.  Use /usr/bin/convert-bdic to do the dictionary conversion.

3.  Place the .bdic files in /usr/share/hunspell-bdic.


More detailed information can be found in the dictionary packager

documentation at:


file:///usr/share/doc/dictionaries-common-dev/dsdt-policy.html#hunspell-bdic


Thanks,


Soren


--

Soren Stoutner

so...@stoutner.com

signature.asc

Soren Stoutner

unread,
Oct 14, 2023, 2:50:05 PM10/14/23
to
Would you be interested in a patch to implement this functionality?

--
Soren Stoutner
so...@stoutner.com
signature.asc

Hleb Valoshka

unread,
Oct 20, 2023, 7:30:06 AM10/20/23
to
Yes, please.

--
Celestia real-time space simulator:
* https://celestiaproject.space
* https://github.com/CelestiaProject

Soren Stoutner

unread,
Oct 23, 2023, 5:23:01 PM10/23/23
to

Control: tags -1 patch


I created a pull request at:


https://github.com/375gnu/hunspell-be/pull/3


Out of curiosity, it seems that the GitHub repository contains information for several releases that never made it into the Debian repository. 


https://tracker.debian.org/pkg/hunspell-be


Do you know why that was?


--

Soren Stoutner

so...@stoutner.com

signature.asc
0 new messages