summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Petar Petrov <slackalaxy@gmail.com>2023-05-26 00:34:17 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-27 08:08:50 +0700
commit2068f4b4faad578f12765465093e65761750181f (patch)
treecf4edf38ee908c08d0a45675f69bbc75a333659c
parent3d7f54431aed0ee30d117424332c0348570653a1 (diff)
downloadslackbuilds-2068f4b4faad578f12765465093e65761750181f.tar.gz
slackbuilds-2068f4b4faad578f12765465093e65761750181f.tar.xz
office/wps-office-dicts: Added (dictionaries for WPS Office)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/wps-office-dicts/DICTIONARIES90
-rw-r--r--office/wps-office-dicts/README107
-rw-r--r--office/wps-office-dicts/slack-desc19
-rw-r--r--office/wps-office-dicts/wps-office-dicts.SlackBuild102
-rw-r--r--office/wps-office-dicts/wps-office-dicts.info10
5 files changed, 328 insertions, 0 deletions
diff --git a/office/wps-office-dicts/DICTIONARIES b/office/wps-office-dicts/DICTIONARIES
new file mode 100644
index 0000000000..9094ed21bd
--- /dev/null
+++ b/office/wps-office-dicts/DICTIONARIES
@@ -0,0 +1,90 @@
+af_ZA Afrikaans
+an_ES Aragonese
+ar Arabic
+be_BY Belarusian
+bg_BG Bulgarian
+bn_BD Bengali
+bo Tibetan
+br_FR Breton
+bs_BA Bosnian
+ca Catalan
+ckb Kurdish_(Sorani)
+cs_CZ Czech
+da_DK Danish
+de_AT German_(Austrian)
+de_CH German_(Swiss)
+de_DE German
+el_GR Greek
+en_AU English_(Australian)
+en_CA English_(Canada)
+en_GB English_(Great_Britain)
+en_ZA English_(South_African)
+eo Esperanto
+es Spanish_(international)
+es_AR Spanish_(Argentina)
+es_BO Spanish_(Bolivia)
+es_CL Spanish_(Chile)
+es_CO Spanish_(Colombia)
+es_CR Spanish_(Costa_Rica)
+es_CU Spanish_(Cuba)
+es_DO Spanish_(República_Dominicana)
+es_EC Spanish_(Ecuador)
+es_ES Spanish_(España)
+es_GQ Spanish_(Guinea_Ecuatorial)
+es_GT Spanish_(Guatemala)
+es_HN Spanish_(Honduras)
+es_MX Spanish_(México)
+es_NI Spanish_(Nicaragua)
+es_PA Spanish_(Panamá)
+es_PE Spanish_(Perú)
+es_PH Spanish_(Filipinas)
+es_PR Spanish_(Puerto_Rico)
+es_PY Spanish_(Paraguay)
+es_SV Spanish_(El_Salvador)
+es_US Spanish_(Estados_Unidos)
+es_UY Spanish_(Uruguay)
+es_VE Spanish_(Venezuela)
+et_EE Estonian
+fa_IR Farsi
+fr French
+gd_GB Scottish_Gaelic
+gl_ES Galician
+gu_IN Gujarati
+gug Guarani
+he_IL Hebrew
+hi_IN Hindi
+hr_HR Croatian
+hu_HU Hungarian
+id_ID Indonesian
+is Icelandic
+it_IT Italian
+kmr_Latn Kurdish_(Turkey)
+ko_KR Korean
+lo_LA Lao
+lt Lithuanian
+lv_LV Latvian
+mn_MN Mongolian
+ne_NP Nepali
+nl_NL Netherlands
+nb_NO Norwegian_(Bokmål)
+nn_NO Norwegian_(Nynorsk)
+oc_FR Occitan
+pl_PL Polish
+pt_BR Brazilian_Portuguese
+pt_PT Portuguese
+ro_RO Romanian
+ru_RU Russian
+si_LK Sinhala
+sk_SK Slovak
+sl_SI Slovenian
+sq_AL Albanian
+sr Serbian_(Cyrillic)
+sr_Latn Serbian_(Latin)
+sv_SE Swedish
+sv_FI Swedish_(Finland)
+sw_TZ Swahili
+te_IN Telugu
+th_TH Thai
+tr_TR Turkish
+uk_UA Ukrainian
+vi_VN Vietnamese
diff --git a/office/wps-office-dicts/README b/office/wps-office-dicts/README
new file mode 100644
index 0000000000..63e98d7d69
--- /dev/null
+++ b/office/wps-office-dicts/README
@@ -0,0 +1,107 @@
+Spell check dictionaries for WPS Office. The language files are adapted
+from the LibreOffice Dictionaries project.
+
+By default, all languages are packaged. To select only a specific one
+(or a combination), pass the respective code(s) to the script by the
+LANGS="" option (note codes below). For example, I use Bulgarian and
+British English, so to install only these two, I would run:
+
+ LANGS="bg_BG en_GB" ./wps-office-dicts.SlackBuild
+
+Or, you can just edit the "DICTIONARIES" list file, distributed with the
+script, and leave the ones you want. Note, that I cannot test all these,
+so if there are issues with a language you speak, let me know. Languages
+included:
+
+code
+-----
+af_ZA Afrikaans
+an_ES Aragonese
+ar Arabic
+be_BY Belarusian
+bg_BG Bulgarian
+bn_BD Bengali
+bo Tibetan
+br_FR Breton
+bs_BA Bosnian
+ca Catalan
+ckb Kurdish (Sorani)
+cs_CZ Czech
+da_DK Danish
+de_AT German (Austrian)
+de_CH German (Swiss)
+de_DE German
+el_GR Greek
+en_AU English (Australian)
+en_CA English (Canada)
+en_GB English (Great Britain)
+en_ZA English (South African)
+eo Esperanto
+es Spanish (international)
+es_AR Spanish (Argentina)
+es_BO Spanish (Bolivia)
+es_CL Spanish (Chile)
+es_CO Spanish (Colombia)
+es_CR Spanish (Costa Rica)
+es_CU Spanish (Cuba)
+es_DO Spanish (República Dominicana)
+es_EC Spanish (Ecuador)
+es_ES Spanish (España)
+es_GQ Spanish (Guinea Ecuatorial)
+es_GT Spanish (Guatemala)
+es_HN Spanish (Honduras)
+es_MX Spanish (México)
+es_NI Spanish (Nicaragua)
+es_PA Spanish (Panamá)
+es_PE Spanish (Perú)
+es_PH Spanish (Filipinas)
+es_PR Spanish (Puerto Rico)
+es_PY Spanish (Paraguay)
+es_SV Spanish (El Salvador)
+es_US Spanish (Estados Unidos)
+es_UY Spanish (Uruguay)
+es_VE Spanish (Venezuela)
+et_EE Estonian
+fa_IR Farsi
+fr French
+gd_GB Scottish Gaelic
+gl_ES Galician
+gu_IN Gujarati
+gug Guarani
+he_IL Hebrew
+hi_IN Hindi
+hr_HR Croatian
+hu_HU Hungarian
+id_ID Indonesian
+is Icelandic
+it_IT Italian
+kmr_Latn Kurdish (Turkey)
+ko_KR Korean
+lo_LA Lao
+lt Lithuanian
+lv_LV Latvian
+mn_MN Mongolian
+ne_NP Nepali
+nl_NL Netherlands
+nb_NO Norwegian (Bokmål)
+nn_NO Norwegian (Nynorsk)
+oc_FR Occitan
+pl_PL Polish
+pt_BR Brazilian Portuguese
+pt_PT Portuguese
+ro_RO Romanian
+ru_RU Russian
+si_LK Sinhala
+sk_SK Slovak
+sl_SI Slovenian
+sq_AL Albanian
+sr Serbian (Cyrillic)
+sr_Latn Serbian (Latin)
+sv_SE Swedish
+sv_FI Swedish (Finland)
+sw_TZ Swahili
+te_IN Telugu
+th_TH Thai
+tr_TR Turkish
+uk_UA Ukrainian
+vi_VN Vietnamese
diff --git a/office/wps-office-dicts/slack-desc b/office/wps-office-dicts/slack-desc
new file mode 100644
index 0000000000..4a93dffa45
--- /dev/null
+++ b/office/wps-office-dicts/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+wps-office-dicts: wps-office-dicts (Spell check dictionaries for WPS Office)
+wps-office-dicts:
+wps-office-dicts: Spell check dictionaries for WPS Office. The language files are
+wps-office-dicts: adapted from the LibreOffice Dictionaries project.
+wps-office-dicts:
+wps-office-dicts: https://github.com/LibreOffice/dictionaries/
+wps-office-dicts:
+wps-office-dicts:
+wps-office-dicts:
+wps-office-dicts:
+wps-office-dicts:
diff --git a/office/wps-office-dicts/wps-office-dicts.SlackBuild b/office/wps-office-dicts/wps-office-dicts.SlackBuild
new file mode 100644
index 0000000000..72842bfcf3
--- /dev/null
+++ b/office/wps-office-dicts/wps-office-dicts.SlackBuild
@@ -0,0 +1,102 @@
+#!/bin/bash
+
+# Slackware build script for <wps-office-dicts>
+
+# Copyright 2023 Petar Petrov slackalaxy at gmail dot com
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=wps-office-dicts
+VERSION=${VERSION:-7.5.4.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf dictionaries-libreoffice-$VERSION
+tar xvf $CWD/dictionaries-libreoffice-$VERSION.tar.gz
+cd dictionaries-libreoffice-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Do we use the default list or a user specified one?
+if [ -z $LANGS ]; then
+ LANGS=$(awk '{print $1}' $CWD/DICTIONARIES | tr '\n' ' ')
+fi
+
+DICTDIR="$PKG/opt/kingsoft/wps-office/office6/dicts/spellcheck/"
+
+for i in ${LANGS[@]} ; do
+ # get the description
+ d=$(grep "$i" $CWD/DICTIONARIES | awk '{print $2}')
+ mkdir -p $DICTDIR/$i
+
+ # create the dictionary config
+ echo "[Dictionary]" >> $DICTDIR/$i/dict.conf
+ echo "DisplayName=${d//_/ }" >> $DICTDIR/$i/dict.conf
+ echo "DisplayName[$i]=${d//_/ }" >> $DICTDIR/$i/dict.conf
+
+ # This is the most common case
+ find . -name "$i.aff" -exec cp {} $DICTDIR/$i/main.aff \;
+ find . -name "$i.dic" -exec cp {} $DICTDIR/$i/main.dic \;
+
+ # But these also exist for de_CH, de_DE
+ find . -name "${i}_frami.aff" -exec cp {} $DICTDIR/$i/main.aff \;
+ find . -name "${i}_frami.dic" -exec cp {} $DICTDIR/$i/main.dic \;
+
+ # this is needed for be_BY
+ find . -name "${i:0:2}-official.aff" -exec cp {} $DICTDIR/$i/main.aff \;
+ find . -name "${i:0:2}-official.dic" -exec cp {} $DICTDIR/$i/main.dic \;
+
+ # this is needed for fa_IR abd sr_Latn
+ find . -name "${i/_/-}.aff" -exec cp {} $DICTDIR/$i/main.aff \;
+ find . -name "${i/_/-}.dic" -exec cp {} $DICTDIR/$i/main.dic \;
+done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+echo $CWD/DICTIONARIES > $PKG/usr/doc/$PRGNAM-$VERSION/DICTIONARIES
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/wps-office-dicts/wps-office-dicts.info b/office/wps-office-dicts/wps-office-dicts.info
new file mode 100644
index 0000000000..6639b228c4
--- /dev/null
+++ b/office/wps-office-dicts/wps-office-dicts.info
@@ -0,0 +1,10 @@
+PRGNAM="wps-office-dicts"
+VERSION="7.5.4.1"
+HOMEPAGE="https://github.com/LibreOffice/dictionaries/"
+DOWNLOAD="https://github.com/LibreOffice/dictionaries/archive/libreoffice-7.5.4.1/dictionaries-libreoffice-7.5.4.1.tar.gz"
+MD5SUM="e75ffce187ca7521b24e31ec7d414fe5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="wps-office"
+MAINTAINER="Petar Petrov"
+EMAIL="slackalaxy@gmail.com"