diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2021-05-25 10:28:36 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-28 06:55:33 -0700 |
| commit | 17c3855aaccea20e767e8598bef0bca40f410297 (patch) | |
| tree | 5b7ba5cd7e53c2156aab12fd6d922995f6ac5f9e | |
| parent | 8edab5f09d9342b562bfaae851625cb2debcb3ef (diff) | |
| download | meta-openembedded-17c3855aaccea20e767e8598bef0bca40f410297.tar.gz | |
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] https://github.com/schnitzeltony/meta-mortsgna/commit/b5d17de7cf9fd033339c2609c5b14c108bbbff4f
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb b/meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb index 3da67d1e3a..28c2d809a9 100644 --- a/meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb +++ b/meta-oe/recipes-support/hunspell/hunspell-dictionaries.bb | |||
| @@ -141,7 +141,7 @@ S = "${WORKDIR}/git" | |||
| 141 | 141 | ||
| 142 | do_install() { | 142 | do_install() { |
| 143 | for LANGUAGE in `ls -d1 ${S}/dictionaries/*` ; do | 143 | for LANGUAGE in `ls -d1 ${S}/dictionaries/*` ; do |
| 144 | LANGUAGE_DIR=`basename $LANGUAGE` | 144 | LANGUAGE_DIR=`basename $LANGUAGE | sed 's:-:_:'` |
| 145 | install -D -m0644 $LANGUAGE/index.dic ${D}${datadir}/hunspell/$LANGUAGE_DIR.dic | 145 | install -D -m0644 $LANGUAGE/index.dic ${D}${datadir}/hunspell/$LANGUAGE_DIR.dic |
| 146 | install -D -m0644 $LANGUAGE/index.aff ${D}${datadir}/hunspell/$LANGUAGE_DIR.aff | 146 | install -D -m0644 $LANGUAGE/index.aff ${D}${datadir}/hunspell/$LANGUAGE_DIR.aff |
| 147 | install -D -m0644 $LANGUAGE/LICENSE ${D}${datadir}/hunspell/LICENSE-$LANGUAGE_DIR 2>/dev/null || echo "No LICENSE for language $LANGUAGE" | 147 | install -D -m0644 $LANGUAGE/LICENSE ${D}${datadir}/hunspell/LICENSE-$LANGUAGE_DIR 2>/dev/null || echo "No LICENSE for language $LANGUAGE" |
