128.5. hunspell-en-26.8.0.3
English spelling dictionaries, hyphenation patterns and thesaurus from the LibreOffice dictionaries release
26.8.0.3-1 · LicenseRef-SCOWL AND LGPL-2.1-or-later AND BSD-3-Clause AND LicenseRef-WordNet · 0.5 SBU · 24.7 MiB, 26 files · 41_system, 267 of 1047 · ports/core/spelling/hunspell-en
Homepage: https://git.libreoffice.org/dictionaries
Why it is in KDOS. The comment above the 6 ports from aspell to enchant in script/phases/41_system/packages.d/spelling.txt:
Spell checking: the Aspell library and command with its English dictionary, Hunspell with its English dictionary and the MyThes thesaurus, and enchant over both. recoll's suggestions, mc's editor, weechat and profanity check through enchant; LibreOffice, Firefox, Thunderbird and the KDE applications read the Hunspell dictionary directly.
Required by (10): enchant, firefox-esr, konqueror, libreoffice, librewolf, lyx, qt6-qtvirtualkeyboard, sonnet, sonnet-qt5, thunderbird.
Sources: hunspell-en-26.8.0.3.tar.xz (59.4 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install hunspell-en'
build.sh:
cd dictionaries/en
install -dm755 $PKG/usr/share/hunspell
for d in en_US en_GB en_AU en_CA en_ZA; do
install -m644 $d.aff $d.dic $PKG/usr/share/hunspell/
done
install -Dm644 -t $PKG/usr/share/hyphen hyph_en_US.dic hyph_en_GB.dic
th_gen_idx.pl -o th_en_US_v2.idx < th_en_US_v2.dat
install -Dm644 -t $PKG/usr/share/mythes th_en_US_v2.dat th_en_US_v2.idx
ln -s th_en_US_v2.dat $PKG/usr/share/mythes/th_en_GB_v2.dat
ln -s th_en_US_v2.idx $PKG/usr/share/mythes/th_en_GB_v2.idx
install -Dm644 -t $PKG/usr/share/licenses/$name \
license.txt WordNet_license.txt README_en_US.txt README_en_GB.txt \
README_en_AU.txt README_en_CA.txt README_en_ZA.txt \
README_hyph_en_US.txt README_hyph_en_GB.txt README_en_GB_thes.txt
Directories: /usr/share/hunspell, /usr/share/hyphen, /usr/share/licenses/hunspell-en, /usr/share/mythes.