[libreoffice-dictionaries] 01/02: Sort list.json
Mattia Rizzolo
mattia at debian.org
Thu Jan 26 13:30:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch experimental
in repository libreoffice-dictionaries.
commit 4383cc707fa744c4a35a266f5334933d2a0e642a
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Jan 26 14:28:53 2017 +0100
Sort list.json
Gbp-Dch: Ignore
---
debian/helper.py | 6 ++--
debian/list.json | 102 +++++++++++++++++++++++++++----------------------------
2 files changed, 55 insertions(+), 53 deletions(-)
diff --git a/debian/helper.py b/debian/helper.py
index 931cf32..97e0c64 100755
--- a/debian/helper.py
+++ b/debian/helper.py
@@ -219,9 +219,11 @@ Description: $language_name Thesaurus for LibreOffice
def _add_list_to_dict(a_dict, index, item):
try:
- a_dict[index].append(item)
+ l = a_dict[index]
except KeyError:
- a_dict[index] = [item]
+ l = []
+ l.append(item)
+ a_dict[index] = sorted(l)
return a_dict
diff --git a/debian/list.json b/debian/list.json
index bc31e67..540ec35 100644
--- a/debian/list.json
+++ b/debian/list.json
@@ -3,8 +3,8 @@
"639-1": "af_ZA",
"code": "af",
"hunspell": [
- "af_ZA.dic",
- "af_ZA.aff"
+ "af_ZA.aff",
+ "af_ZA.dic"
],
"hyphen": [
"hyph_af_ZA.dic"
@@ -15,8 +15,8 @@
"639-1": "an_ES",
"code": "an",
"hunspell": [
- "an_ES.dic",
- "an_ES.aff"
+ "an_ES.aff",
+ "an_ES.dic"
],
"name": "Aragonese"
},
@@ -37,8 +37,8 @@
"639-1": "be_BY",
"code": "be",
"hunspell": [
- "be_BY.dic",
- "be_BY.aff"
+ "be_BY.aff",
+ "be_BY.dic"
],
"name": "Belarusian"
},
@@ -46,8 +46,8 @@
"639-1": "bg_BG",
"code": "bg",
"hunspell": [
- "bg_BG.dic",
- "bg_BG.aff"
+ "bg_BG.aff",
+ "bg_BG.dic"
],
"hyphen": [
"hyph_bg_BG.dic"
@@ -62,8 +62,8 @@
"639-1": "bn_BD",
"code": "bn",
"hunspell": [
- "bn_BD.dic",
- "bn_BD.aff"
+ "bn_BD.aff",
+ "bn_BD.dic"
],
"name": "Bengali"
},
@@ -71,8 +71,8 @@
"639-1": "br_FR",
"code": "br",
"hunspell": [
- "br_FR.dic",
- "br_FR.aff"
+ "br_FR.aff",
+ "br_FR.dic"
],
"name": "Breton"
},
@@ -80,8 +80,8 @@
"639-1": "bs_BA",
"code": "bs",
"hunspell": [
- "bs_BA.dic",
- "bs_BA.aff"
+ "bs_BA.aff",
+ "bs_BA.dic"
],
"name": "Bosnian"
},
@@ -89,10 +89,10 @@
"639-1": "ca",
"code": "ca",
"hunspell": [
- "dictionaries/ca.dic",
- "dictionaries/ca-valencia.dic",
"dictionaries/ca-valencia.aff",
- "dictionaries/ca.aff"
+ "dictionaries/ca-valencia.dic",
+ "dictionaries/ca.aff",
+ "dictionaries/ca.dic"
],
"hyphen": [
"dictionaries/hyph_ca.dic"
@@ -123,8 +123,8 @@
"639-1": "da_DK",
"code": "da",
"hunspell": [
- "da_DK.dic",
- "da_DK.aff"
+ "da_DK.aff",
+ "da_DK.dic"
],
"hyphen": [
"hyph_da_DK.dic"
@@ -281,8 +281,8 @@
"639-1": "gd_GB",
"code": "gd",
"hunspell": [
- "dictionaries/gd_GB.dic",
- "dictionaries/gd_GB.aff"
+ "dictionaries/gd_GB.aff",
+ "dictionaries/gd_GB.dic"
],
"name": "Scottish Gaelic"
},
@@ -342,8 +342,8 @@
"639-1": "hr_HR",
"code": "hr",
"hunspell": [
- "hr_HR.dic",
- "hr_HR.aff"
+ "hr_HR.aff",
+ "hr_HR.dic"
],
"hyphen": [
"hyph_hr_HR.dic"
@@ -354,8 +354,8 @@
"639-1": "hu_HU",
"code": "hu",
"hunspell": [
- "hu_HU.dic",
- "hu_HU.aff"
+ "hu_HU.aff",
+ "hu_HU.dic"
],
"hyphen": [
"hyph_hu_HU.dic"
@@ -370,8 +370,8 @@
"639-1": "is",
"code": "is",
"hunspell": [
- "is.dic",
- "is.aff"
+ "is.aff",
+ "is.dic"
],
"hyphen": [
"hyph_is.dic"
@@ -420,8 +420,8 @@
"639-1": "lt_LT",
"code": "lt",
"hunspell": [
- "lt.dic",
- "lt.aff"
+ "lt.aff",
+ "lt.dic"
],
"hyphen": [
"hyph_lt.dic"
@@ -432,8 +432,8 @@
"639-1": "lv_LV",
"code": "lv",
"hunspell": [
- "lv_LV.dic",
- "lv_LV.aff"
+ "lv_LV.aff",
+ "lv_LV.dic"
],
"hyphen": [
"hyph_lv_LV.dic"
@@ -448,8 +448,8 @@
"639-1": "ne_NP",
"code": "ne",
"hunspell": [
- "ne_NP.dic",
- "ne_NP.aff"
+ "ne_NP.aff",
+ "ne_NP.dic"
],
"mythes": [
"th_ne_NP_v2.dat",
@@ -461,8 +461,8 @@
"639-1": "nl_NL",
"code": "nl",
"hunspell": [
- "nl_NL.dic",
- "nl_NL.aff"
+ "nl_NL.aff",
+ "nl_NL.dic"
],
"hyphen": [
"hyph_nl_NL.dic"
@@ -475,8 +475,8 @@
"hunspell": [
"nb_NO.aff",
"nb_NO.dic",
- "nn_NO.dic",
- "nn_NO.aff"
+ "nn_NO.aff",
+ "nn_NO.dic"
],
"hyphen": [
"hyph_nb_NO.dic",
@@ -519,8 +519,8 @@
"639-1": "pt_BR",
"code": "pt-br",
"hunspell": [
- "pt_BR.dic",
- "pt_BR.aff"
+ "pt_BR.aff",
+ "pt_BR.dic"
],
"hyphen": [
"hyph_pt_BR.dic"
@@ -547,8 +547,8 @@
"639-1": "ro",
"code": "ro",
"hunspell": [
- "ro_RO.dic",
- "ro_RO.aff"
+ "ro_RO.aff",
+ "ro_RO.dic"
],
"hyphen": [
"hyph_ro_RO.dic"
@@ -563,8 +563,8 @@
"639-1": "ru_RU",
"code": "ru",
"hunspell": [
- "ru_RU.dic",
- "ru_RU.aff"
+ "ru_RU.aff",
+ "ru_RU.dic"
],
"hyphen": [
"hyph_ru_RU.dic"
@@ -588,8 +588,8 @@
"639-1": "sk_SK",
"code": "sk",
"hunspell": [
- "sk_SK.dic",
- "sk_SK.aff"
+ "sk_SK.aff",
+ "sk_SK.dic"
],
"hyphen": [
"hyph_sk_SK.dic"
@@ -604,8 +604,8 @@
"639-1": "sl_SI",
"code": "sl",
"hunspell": [
- "sl_SI.dic",
- "sl_SI.aff"
+ "sl_SI.aff",
+ "sl_SI.dic"
],
"hyphen": [
"hyph_sl_SI.dic"
@@ -621,8 +621,8 @@
"code": "sr",
"hunspell": [
"sr-Latn.aff",
- "sr.aff",
"sr-Latn.dic",
+ "sr.aff",
"sr.dic"
],
"hyphen": [
@@ -635,8 +635,8 @@
"639-1": "sv_SE",
"code": "sv",
"hunspell": [
- "sv_FI.dic",
"sv_FI.aff",
+ "sv_FI.dic",
"sv_SE.aff",
"sv_SE.dic"
],
@@ -662,8 +662,8 @@
"639-1": "te_IN",
"code": "te",
"hunspell": [
- "te_IN.dic",
- "te_IN.aff"
+ "te_IN.aff",
+ "te_IN.dic"
],
"hyphen": [
"hyph_te_IN.dic"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git
More information about the Pkg-openoffice-commits
mailing list