From 3e97eac3bc9276377c658633c887e3f52b6dcc8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 20 Aug 2025 19:28:03 +0700 Subject: [PATCH] libreoffice-dictionaries: update to 25.8.0.4. --- srcpkgs/hunspell-as | 1 + srcpkgs/hunspell-kn | 1 + srcpkgs/hunspell-mr | 1 + srcpkgs/hunspell-or | 1 + srcpkgs/hunspell-pa | 1 + srcpkgs/hunspell-sa | 1 + srcpkgs/hunspell-ta | 1 + srcpkgs/hyphen-as | 1 + srcpkgs/hyphen-kn | 1 + srcpkgs/hyphen-mr | 1 + srcpkgs/hyphen-or | 1 + srcpkgs/hyphen-pa | 1 + srcpkgs/hyphen-sa | 1 + srcpkgs/libreoffice-dictionaries/template | 186 +++++++++++++++++++--- srcpkgs/mythes-mr | 1 + srcpkgs/mythes-th | 1 + 16 files changed, 177 insertions(+), 24 deletions(-) create mode 120000 srcpkgs/hunspell-as create mode 120000 srcpkgs/hunspell-kn create mode 120000 srcpkgs/hunspell-mr create mode 120000 srcpkgs/hunspell-or create mode 120000 srcpkgs/hunspell-pa create mode 120000 srcpkgs/hunspell-sa create mode 120000 srcpkgs/hunspell-ta create mode 120000 srcpkgs/hyphen-as create mode 120000 srcpkgs/hyphen-kn create mode 120000 srcpkgs/hyphen-mr create mode 120000 srcpkgs/hyphen-or create mode 120000 srcpkgs/hyphen-pa create mode 120000 srcpkgs/hyphen-sa create mode 120000 srcpkgs/mythes-mr create mode 120000 srcpkgs/mythes-th diff --git a/srcpkgs/hunspell-as b/srcpkgs/hunspell-as new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-as @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-kn b/srcpkgs/hunspell-kn new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-kn @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-mr b/srcpkgs/hunspell-mr new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-mr @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-or b/srcpkgs/hunspell-or new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-or @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-pa b/srcpkgs/hunspell-pa new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-pa @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-sa b/srcpkgs/hunspell-sa new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-sa @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hunspell-ta b/srcpkgs/hunspell-ta new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hunspell-ta @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-as b/srcpkgs/hyphen-as new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-as @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-kn b/srcpkgs/hyphen-kn new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-kn @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-mr b/srcpkgs/hyphen-mr new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-mr @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-or b/srcpkgs/hyphen-or new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-or @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-pa b/srcpkgs/hyphen-pa new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-pa @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/hyphen-sa b/srcpkgs/hyphen-sa new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/hyphen-sa @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/libreoffice-dictionaries/template b/srcpkgs/libreoffice-dictionaries/template index 678a600009d..ad08ebce0f4 100644 --- a/srcpkgs/libreoffice-dictionaries/template +++ b/srcpkgs/libreoffice-dictionaries/template @@ -1,6 +1,6 @@ # Template file for 'libreoffice-dictionaries' pkgname=libreoffice-dictionaries -version=25.2.5.2 +version=25.8.0.4 revision=1 metapackage=yes hostmakedepends="mythes perl" @@ -11,11 +11,12 @@ homepage="https://www.libreoffice.org/" distfiles="https://download.documentfoundation.org/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz" # distfiles="https://download.nus.edu.sg/mirror/tdf/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz" # distfiles="https://mirrors.nju.edu.cn/tdf/libreoffice/src/${version%.*}/${pkgname}-${version}.tar.xz" -checksum=56e70f8d02d224b5ece5b84ccc93d07c463da4a57959d23200b940901d0b18e8 +checksum=4e5d8f0c61b7d0660ac51f78682a372b21aa417c4bc38a88c620ae05b63655b1 depends="hunspell-af hyphen-af hunspell-an hunspell-ar mythes-ar + hunspell-as hyphen-as hunspell-be hyphen-be hunspell-bg hyphen-bg mythes-bg hunspell-bn @@ -46,20 +47,25 @@ depends="hunspell-af hyphen-af hunspell-is hyphen-is mythes-is hunspell-it_IT hyphen-it_IT mythes-it_IT hunspell-kmr + hunspell-kn hyphen-kn hunspell-ko hunspell-lo hunspell-lt hyphen-lt hunspell-lv hyphen-lv mythes-lv hunspell-mn hyphen-mn + hunspell-mr hyphen-mr mythes-mr hunspell-ne mythes-ne hunspell-nl_NL hyphen-nl_NL hunspell-no hyphen-no mythes-no hunspell-oc + hunspell-or hyphen-or + hunspell-pa hyphen-pa hunspell-pl hyphen-pl mythes-pl hunspell-pt_BR hyphen-pt_BR mythes-pt_BR hunspell-pt_PT hyphen-pt_PT mythes-pt_PT hunspell-ro_RO hyphen-ro mythes-ro hunspell-ru_RU hyphen-ru mythes-ru + hunspell-sa hyphen-sa hunspell-si hunspell-sk hyphen-sk mythes-sk hunspell-sl hyphen-sl mythes-sl @@ -67,8 +73,9 @@ depends="hunspell-af hyphen-af hunspell-sr hyphen-sr hunspell-sv hyphen-sv mythes-sv hunspell-sw + hunspell-ta hunspell-te hyphen-te - hunspell-th hyphen-th + hunspell-th hyphen-th mythes-th hunspell-tr hunspell-uk hyphen-uk mythes-uk hunspell-vi @@ -103,8 +110,10 @@ _build_bdic() { mkdir -p bdic # convert-dict not understand TAB - sed 's/\t/ /' "dictionaries/an_ES/an_ES.aff" >"bdic/an_ES.aff" - cp "dictionaries/an_ES/an_ES.dic" bdic/ + for lang in an_ES bn_BD; do + sed 's/\t/ /g' "dictionaries/$lang/$lang.aff" >"bdic/$lang.aff" + cp "dictionaries/$lang/$lang.dic" bdic/ + done # convert-dict works on fixed array of utf-16 characters. _drop_long_dic da_DK 112 @@ -113,8 +122,11 @@ _build_bdic() { _drop_long_dic ko_KR 173 _drop_long_dic th_TH 45 # convert-dict not understand IGNORE - for lang in ar bo ckb hu_HU uk_UA; do - sed '/^IGNORE/d' "dictionaries/$lang/$lang.aff" >"bdic/$lang.aff" + grep -l IGNORE dictionaries/*/*.aff | + while read file; do + lang="${file##*/}" + lang="${lang%.aff}" + sed '/^IGNORE/d' "$file" >"bdic/$lang.aff" cp "dictionaries/$lang/$lang.dic" bdic/ done @@ -272,7 +284,7 @@ hunspell-an_package() { depends="hunspell-qtwebengine-dict" license="GPL-3.0-or-later, LGPL-3.0-or-later, MPL-1.1" pkg_install() { - _vhunspell an_ES + _vhunspell an_ES an } } @@ -297,6 +309,23 @@ mythes-ar_package() { } } +hunspell-as_package() { + short_desc="Assamese dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="LGPL-3.0-or-later" + pkg_install() { + _vhunspell as_IN + } +} + +hyphen-as_package() { + short_desc="Assamese hyphenation rules" + license="LGPL-3.0-or-later" + pkg_install() { + _vhyphen as_IN + } +} + hunspell-be_package() { short_desc="Belarusian dictionary for hunspell" depends="hunspell-qtwebengine-dict" @@ -466,7 +495,7 @@ mythes-da_package() { hunspell-de_package() { short_desc="German dictionary for hunspell" depends="hunspell-qtwebengine-dict" - license="LGPL-2.1-or-later, GPL-2.0-or-later, MPL-1.1" + license="GPL-2.0-only, GPL-3.0-only, MPL-1.1" provides="hunspell-de_CH-20240301_1 hunspell-de_DE-20240301_1" replaces="hunspell-de_CH>=0 hunspell-de_DE>=0" pkg_install() { @@ -478,7 +507,7 @@ hunspell-de_package() { hyphen-de_package() { short_desc="German hyphenation rules" - license="LGPL-2.1-or-later, GPL-2.0-only, GPL-3.0-only" + license="LGPL-2.1-or-later" pkg_install() { _vhyphen -d de de_AT _vhyphen -d de de_CH @@ -488,7 +517,7 @@ hyphen-de_package() { mythes-de_package() { short_desc="German thesaurus for LibreOffice" - license="LGPL-2.1-or-later, GPL-2.0-only, GPL-3.0-only" + license="LGPL-2.1-or-later" pkg_install() { _vmythes -v 2 -d de de_CH _vmythes -v 2 -d de de_DE de_AT @@ -535,7 +564,7 @@ hunspell-en_GB-all_package() { short_desc="British English dictionary for hunspell" depends="hunspell-qtwebengine-dict" license="custom:SCOWL" - provides="hunspell-en_GB-2024_1" + provides="hunspell-en_GB-2025.04_1" replaces="hunspell-en_GB>=0" pkg_install() { _vhunspell -d en en_GB en_BS en_BZ en_GH en_IE en_IN en_JM \ @@ -643,7 +672,7 @@ hyphen-et_package() { } hunspell-fa_package() { - short_desc="Persian dictionary for hunspell by Lilak" + short_desc="Farsi - Persian dictionary for hunspell by Lilak" license="Apache-2.0" pkg_install() { _vhunspell fa_IR @@ -678,7 +707,7 @@ mythes-fr_package() { } hunspell-gd_package() { - short_desc="Scottish Gaelic dictionary for hunspell" + short_desc="Gaelic dictionary for hunspell" depends="hunspell-qtwebengine-dict" license="GPL-3.0-or-later" pkg_install() { @@ -854,7 +883,7 @@ hunspell-it_IT_package() { depends="hunspell-qtwebengine-dict" license="GPL-3.0-only, LGPL-3.0-only" pkg_install() { - _vhunspell it_IT + _vhunspell it_IT it_CH } } @@ -862,7 +891,7 @@ hyphen-it_IT_package() { short_desc="Italian hyphenation rules" license="GPL-3.0-only, LGPL-3.0-only" pkg_install() { - _vhyphen it_IT + _vhyphen it_IT it_CH } } @@ -870,12 +899,12 @@ mythes-it_IT_package() { short_desc="Italian thesaurus for LibreOffice" license="GPL-3.0-only, LGPL-3.0-only" pkg_install() { - _vmythes -v 2 it_IT + _vmythes -v 2 it_IT it_CH } } hunspell-kmr_package() { - short_desc="Kurdish dictionary for hunspell" + short_desc="Kurmanji - Northern Kurdish dictionary for hunspell" depends="hunspell-qtwebengine-dict" license="GPL-3.0-or-later, LGPL-2.1-or-later, MPL-1.1" pkg_install() { @@ -884,6 +913,23 @@ hunspell-kmr_package() { } } +hunspell-kn_package() { + short_desc="Kannada dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="GPL-3.0-or-later" + pkg_install() { + _vhunspell kn_IN + } +} + +hyphen-kn_package() { + short_desc="Kannada hyphenation rules" + license="GPL-3.0-or-later" + pkg_install() { + _vhyphen kn_IN + } +} + hunspell-ko_package() { short_desc="Korean dictionary for hunspell" depends="hunspell-qtwebengine-dict" @@ -894,7 +940,7 @@ hunspell-ko_package() { } hunspell-lo_package() { - short_desc="Lao dictionary for hunspell" + short_desc="Lao - Laotian dictionary for hunspell" depends="hunspell-qtwebengine-dict" license="LGPL-3.0-only" pkg_install() { @@ -962,6 +1008,31 @@ hyphen-mn_package() { } } +hunspell-mr_package() { + short_desc="Marathi dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="GPL-2.0-only" + pkg_install() { + _vhunspell mr_IN + } +} + +hyphen-mr_package() { + short_desc="Marathi hyphenation rules" + license="GPL-2.0-only" + pkg_install() { + _vhyphen mr_IN + } +} + +mythes-mr_package() { + short_desc="Marathi thesaurus for LibreOffice" + license="GPL-2.0-only" + pkg_install() { + _vmythes -v 2 mr_IN + } +} + hunspell-ne_package() { short_desc="Nepali dictionary for hunspell" depends="hunspell-qtwebengine-dict" @@ -1001,7 +1072,7 @@ hyphen-nl_NL_package() { } hunspell-no_package() { - short_desc="Norwegian dictionary for hunspell" + short_desc="Norwegian (Nynorsk and Bokmål) dictionary for hunspell" depends="hunspell-qtwebengine-dict" license="GPL-2.0-or-later" pkg_install() { @@ -1011,7 +1082,7 @@ hunspell-no_package() { } hyphen-no_package() { - short_desc="Norwegian hyphenation rules" + short_desc="Norwegian (Nynorsk and Bokmål) hyphenation rules" license="GPL-2.0-or-later" pkg_install() { _vhyphen -d no nb_NO @@ -1020,7 +1091,7 @@ hyphen-no_package() { } mythes-no_package() { - short_desc="Norwegian thesaurus for LibreOffice" + short_desc="Norwegian (Nynorsk and Bokmål) thesaurus for LibreOffice" license="GPL-2.0-or-later" pkg_install() { _vmythes -v 2 -d no nb_NO @@ -1033,7 +1104,41 @@ hunspell-oc_package() { depends="hunspell-qtwebengine-dict" license="GPL-2.0-or-later" pkg_install() { - _vhunspell oc_FR + _vhunspell oc_FR oc_FR@lengadoc + } +} + +hunspell-or_package() { + short_desc="Oriya dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="LGPL-3.0-or-later" + pkg_install() { + _vhunspell or_IN + } +} + +hyphen-or_package() { + short_desc="Oriya hyphenation rules" + license="LGPL-3.0-or-later" + pkg_install() { + _vhyphen or_IN + } +} + +hunspell-pa_package() { + short_desc="Panjabi dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="LGPL-3.0-or-later" + pkg_install() { + _vhunspell pa_IN + } +} + +hyphen-pa_package() { + short_desc="Panjabi hyphenation rules" + license="LGPL-3.0-or-later" + pkg_install() { + _vhyphen pa_IN } } @@ -1073,7 +1178,6 @@ hunspell-pt_BR_package() { } } -# TODO hunspell-pt_PT_package() { reverts="20201029_1 20220621_1" short_desc="Portuguese (Portugal) dictionary for hunspell" @@ -1167,6 +1271,23 @@ mythes-ru_package() { } } +hunspell-sa_package() { + short_desc="Sanskrit dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="LGPL-3.0-or-later" + pkg_install() { + _vhunspell sa_IN + } +} + +hyphen-sa_package() { + short_desc="Sanskrit hyphenation rules" + license="LGPL-3.0-or-later" + pkg_install() { + _vhyphen sa_IN + } +} + hunspell-si_package() { short_desc="Sinhala dictionary for hunspell" depends="hunspell-qtwebengine-dict" @@ -1307,6 +1428,15 @@ hunspell-sw_package() { } } +hunspell-ta_package() { + short_desc="Tamil dictionary for hunspell" + depends="hunspell-qtwebengine-dict" + license="MPL-1.1" + pkg_install() { + _vhunspell ta_IN + } +} + hunspell-te_package() { short_desc="Telugu dictionary for hunspell" depends="hunspell-qtwebengine-dict" @@ -1341,6 +1471,14 @@ hyphen-th_package() { } } +mythes-th_package() { + short_desc="Thai thesaurus for LibreOffice" + license="CC0-1.0" + pkg_install() { + _vmythes -v 2 th_TH + } +} + hunspell-tr_package() { short_desc="Turkish dictionary for hunspell" depends="hunspell-qtwebengine-dict" diff --git a/srcpkgs/mythes-mr b/srcpkgs/mythes-mr new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/mythes-mr @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file diff --git a/srcpkgs/mythes-th b/srcpkgs/mythes-th new file mode 120000 index 00000000000..1f52cad0bdc --- /dev/null +++ b/srcpkgs/mythes-th @@ -0,0 +1 @@ +libreoffice-dictionaries \ No newline at end of file