mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
hunspell-dictionaries: use better names for dictionary files
Played around with gspell and followed their suggestion to prefer hunspell [1]
in enchant [2].
Tests with gedit showed that all entries for sub-languages (e.g English UK)
were missing. By changing names of *.dic and *.aff from
<language>-<SUBLANGUAGE>.*
to
<language>_<SUBLANGUAGE>.*
languages as 'English UK' appear and can be selected in gedit.
Tested also on libreoffice: That displayed all languages properly before and
does still with files renamed.
[1] https://gitlab.gnome.org/GNOME/gspell
[2] b5d17de7cf
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
8edab5f09d
commit
17c3855aac
@ -141,7 +141,7 @@ S = "${WORKDIR}/git"
|
||||
|
||||
do_install() {
|
||||
for LANGUAGE in `ls -d1 ${S}/dictionaries/*` ; do
|
||||
LANGUAGE_DIR=`basename $LANGUAGE`
|
||||
LANGUAGE_DIR=`basename $LANGUAGE | sed 's:-:_:'`
|
||||
install -D -m0644 $LANGUAGE/index.dic ${D}${datadir}/hunspell/$LANGUAGE_DIR.dic
|
||||
install -D -m0644 $LANGUAGE/index.aff ${D}${datadir}/hunspell/$LANGUAGE_DIR.aff
|
||||
install -D -m0644 $LANGUAGE/LICENSE ${D}${datadir}/hunspell/LICENSE-$LANGUAGE_DIR 2>/dev/null || echo "No LICENSE for language $LANGUAGE"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user