Package Details: hunspell-la 20130331-3

Git Clone URL: https://aur.archlinux.org/hunspell-la.git (read-only)
Package Base: hunspell-la
Description: Latin dictionary for Hunspell
Upstream URL: https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries
Licenses: GPL
Submitter: Archadept
Maintainer: Archadept
Last Packager: Archadept
Votes: 5
Popularity: 1.089899
First Submitted: 2011-08-26 18:03
Last Updated: 2018-04-14 14:09

Dependencies (1)

  • hunspell (optional) – the spell checking libraries and apps

Required by (0)

Sources (1)

Latest Comments

Archadept commented on 2018-04-14 14:12

Your corrections were included. Thank you.

Strictly speaking it is pulled out from the add-on plus all English dictionaries are using release date as version number, so it is a matter of what is considered more convenient.

Vitrum-cnkj34kr8 commented on 2018-04-13 19:12

Strictly speaking:

20130331 is version of the LibreOffice add-on

3.1 is version of the Latin dictionary

Vitrum-cnkj34kr8 commented on 2018-04-13 18:52

Below is my variant of the PKGBUILD:

#  Maintainer: Archadept
#    Revision: 2013-10-18

pkgname=hunspell-la
pkgver=20130331
pkgrel=2
pkgdesc='Latin dictionary for Hunspell'
arch=('any')
url="https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries"
license=('GPL')
optdepends=('hunspell:  the spell checking libraries and apps')
source=('https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries/2013.03.31/@@download/file/dict-la_2013-03-31.oxt')
md5sums=('46674c8e9985b97e3f71555ed83a90cd')

prepare() {
    # Hunspell ignores byte order mark (BOM sequence), see changelog of 2007-03-19:
    # https://github.com/hunspell/hunspell/blob/master/ChangeLog
    # However, some third-party applications can be affected. For example:
    # https://bugs.launchpad.net/ubuntu/+source/hunspell-ru/+bug/992194

    # So, BOM should be removed:
    LC_ALL=C sed -i '1s/^\xEF\xBB\xBF//' "${srcdir}/la/universal/la.dic"
    LC_ALL=C sed -i '1s/^\xEF\xBB\xBF//' "${srcdir}/la/universal/la.aff"
}

package() {
    cd "${srcdir}/la/universal"

    # Hunspell dictionary
    install -Dm644 la.dic ${pkgdir}/usr/share/hunspell/la_LA.dic
    install -Dm644 la.aff ${pkgdir}/usr/share/hunspell/la_LA.aff

    # MySpell symlinks
    install -dm755 ${pkgdir}/usr/share/myspell/dicts
    pushd ${pkgdir}/usr/share/myspell/dicts
    for file in ${pkgdir}/usr/share/hunspell/*; do
        ln -sv /usr/share/hunspell/$(basename ${file}) .
    done
    popd

    # Documentation
    install -Dm644 "${srcdir}/la/README_la.txt" "${pkgdir}/usr/share/doc/${pkgname}/README_la.txt"
}

Vitrum-cnkj34kr8 commented on 2018-04-06 13:22

Files la.aff and la.dic are already encoded in UTF-8, no need to convert them. More over it breaks the mapping table in la.aff.

Universal spelling (subdir universal) combines classic and modern orthography, so can be considered to be more useful than default (at least for me).

Vitrum-cnkj34kr8 commented on 2018-02-11 20:43

The new source path is needed:

source=('https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries/2013.03.31/@@download/file/dict-la_2013-03-31.oxt')

Everything else is working correct.