Github messages for voidlinux
 help / color / mirror / Atom feed
From: chrysos349 <chrysos349@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: qtwebengine_dictionaries
Date: Tue, 05 Mar 2024 11:14:14 +0100	[thread overview]
Message-ID: <20240305101414.167A528EBF@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49030@inbox.vuxu.org>

[-- 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
 }
```

  parent reply	other threads:[~2024-03-05 10:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-02 15:16 [ISSUE] " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240305101414.167A528EBF@inbox.vuxu.org \
    --to=chrysos349@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).