The repo needs to be restructured because the folder layout differs between languages.
So languages that doesn't have a regional specific are added with a country code: af_ZA, cs_CZ, et_EE, fa_IR, etc. If When it's not needed, the packages are built without a region i.e. Dictionary_af.mk.
Some languages have all regions in one folder i.e. es has inside es_AR.dic, es_BO.dic etc. For Norwegian there is no folder with nb_NO.dic and nn_NO.dic. So they'll be packaged to the single lang package.
But there are two separate folders pt_BR and pt_PT. Maybe they should be merged too? Or they differs so much that they should be packaged separately? The PT is 200kb compressed while the BR is 1.5mb so it looks like to save a disk space of PT users it would be better to separate BR. But it would slightly simplify installation.
The pt-BR/pt_BR.aff file contains a comments that should be removed:
# VERO - Verificador Ortográfico Livre - Versão 3.2
# Copyright (C) 2006 - 2013 por Raimundo Santos Moura
The folder kmr_Latn should be just kmr but a file inside remain kmr_Latn.dic. I.e. same is it's made for the Serbian sr/sr-Latn.dic.
The Serbian lacks of the Cyrillic version. It can be just transliterated 1 to 1 by simply pasting the dictionary into any converter like this online https://www.lexilogos.com/keyboard/serbian_conversion.htm
or with the script https://github.com/opendatakosovo/cyrillic-transliteration
That's give minutes task.
Some languages have dic files in a separate dictionaries folder e.g. fr_FR/dictionaries but some aren't not. I noticed that Firefox extensions with dictionaries also have a separate dictionaries folder. And they all have a simple manifest file like:
{
"dictionaries": {
"ca": "dictionaries/ca.dic"
},
"version": "3.0.8",
"browser_specific_settings": {
"gecko": {
"id": "ca@dictionaries.addons.mozilla.org"
}
},
"applications": {
"gecko": {
"id": "ca@dictionaries.addons.mozilla.org"
}
},
"name": "General Catalan dictionary",
"manifest_version": 2
}
Basically such small manifests can be added just to the repo. Then instead of each author maintaining a dict on the FF store they all can be just built automatically.
The repo needs to be restructured because the folder layout differs between languages.
So languages that doesn't have a regional specific are added with a country code: af_ZA, cs_CZ, et_EE, fa_IR, etc. If When it's not needed, the packages are built without a region i.e.
Dictionary_af.mk.Some languages have all regions in one folder i.e.
eshas insidees_AR.dic,es_BO.dicetc. For Norwegian there isnofolder withnb_NO.dicandnn_NO.dic. So they'll be packaged to the single lang package.But there are two separate folders
pt_BRandpt_PT. Maybe they should be merged too? Or they differs so much that they should be packaged separately? The PT is 200kb compressed while the BR is 1.5mb so it looks like to save a disk space of PT users it would be better to separate BR. But it would slightly simplify installation.The
pt-BR/pt_BR.afffile contains a comments that should be removed:The folder
kmr_Latnshould be justkmrbut a file inside remainkmr_Latn.dic. I.e. same is it's made for the Serbiansr/sr-Latn.dic.The Serbian lacks of the Cyrillic version. It can be just transliterated 1 to 1 by simply pasting the dictionary into any converter like this online https://www.lexilogos.com/keyboard/serbian_conversion.htm
or with the script https://github.com/opendatakosovo/cyrillic-transliteration
That's give minutes task.
Some languages have dic files in a separate
dictionariesfolder e.g.fr_FR/dictionariesbut some aren't not. I noticed that Firefox extensions with dictionaries also have a separatedictionariesfolder. And they all have a simple manifest file like:{ "dictionaries": { "ca": "dictionaries/ca.dic" }, "version": "3.0.8", "browser_specific_settings": { "gecko": { "id": "ca@dictionaries.addons.mozilla.org" } }, "applications": { "gecko": { "id": "ca@dictionaries.addons.mozilla.org" } }, "name": "General Catalan dictionary", "manifest_version": 2 }Basically such small manifests can be added just to the repo. Then instead of each author maintaining a dict on the FF store they all can be just built automatically.