El lun, 30 oct 2023 a las 0:18, Agustin Martin (<agmar...@debian.org>) escribió: > > Source: libreoffice-dictionaries > Version: 1:7.5.0-1 > Severity: wishlist > > Hi, Rene and Mattia > > Please enable Esperanto stuff from libreoffice dictionaries. This > stuff was added in 2021 > > I am attaching a diff with what seems to me the required changes for > Esperanto stuff to be enabled.
Hi, Attached slightly updated diff (include year in copyright notice and add esperanto stuff to ass_639_code and ass_639_name variables). Did not rebuild json list, seems there are some other new dicts. Regards, -- Agustin
From 925253a9343c290fb07d366b178b4144f9c4e558 Mon Sep 17 00:00:00 2001 From: Agustin Martin Domingo <agmar...@debian.org> Date: Sun, 29 Oct 2023 23:51:02 +0100 Subject: [PATCH] Enable esperanto hunspell dict, hyphenation and thesaurus packages. --- debian/control | 42 ++++++++++++++++++++++++++++++++++++++++++ debian/copyright | 4 ++++ debian/helper.py | 5 +++-- debian/list.json | 15 +++++++++++++++ debian/rules.install | 4 ++++ 5 files changed, 68 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 9b6f375..193dcb8 100644 --- a/debian/control +++ b/debian/control @@ -486,6 +486,48 @@ Description: English (GB) dictionary for hunspell terminal interface using Curses library, an Ispell pipe interface and a LibreOffice UNO module. +Package: hyphen-eo +Architecture: all +Multi-Arch: foreign +Depends: dictionaries-common, ${misc:Depends} +Suggests: libreoffice-writer +Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-eo +Description: Esperanto hyphenation patterns + This package contains the Esperanto hyphenation patterns. + . + You can use these patterns with programs which take advantage of libhyphen, + like LibreOffice. + +Package: hunspell-eo +Architecture: all +Multi-Arch: foreign +Depends: dictionaries-common, ${misc:Depends}, ${hunspell:Depends} +Suggests: hunspell, libreoffice-writer +Provides: hunspell-dictionary, hunspell-dictionary-eo +Breaks: myspell-eo (<< 2.1.2000.02.25-62) +Replaces: myspell-eo (<< 2.1.2000.02.25-62) +Description: Esperanto dictionary for hunspell + This is the Esperanto dictionary for use with the hunspell + spellchecker. + . + Hunspell is a spell checker and morphological analyzer library and program + designed for languages with rich morphology and complex word compounding or + character encoding. It is based on MySpell and features an Ispell-like + terminal interface using Curses library, an Ispell pipe interface and a + LibreOffice UNO module. + +Package: mythes-eo +Architecture: all +Multi-Arch: foreign +Depends: dictionaries-common, ${misc:Depends} +Suggests: libreoffice-writer +Provides: mythes-thesaurus, mythes-thesaurus-eo +Description: Esperanto Thesaurus for LibreOffice + Libreoffice is a full-featured office productivity suite that provides a + near drop-in replacement for Microsoft(R) Office. + . + This package contains the Esperanto thesaurus for LibreOffice. + Package: hyphen-es Architecture: all Multi-Arch: foreign diff --git a/debian/copyright b/debian/copyright index 82fcc87..8ba57bc 100644 --- a/debian/copyright +++ b/debian/copyright @@ -187,6 +187,10 @@ License: custom1 % Please contact the TUGboat editorial staff <tugb...@tug.org> % for corrections and omissions. +Files: dictionaries/eo/* +Copyright: 2010 Artur Trzewik <a...@xdobry.de> +License: GPL-2+ + Files: dictionaries/es/* Copyright: Santiago Bosio <santiago.bo...@gmail.com> License: GPL-3+ or LGPL-3+ or MPL-1.1+ diff --git a/debian/helper.py b/debian/helper.py index 9436a1e..014785a 100755 --- a/debian/helper.py +++ b/debian/helper.py @@ -68,6 +68,7 @@ breaks_replaces = { "hunspell-bg": ("myspell-bg", '<<', '4.1-5'), "hunspell-en-gb": ("myspell-en-gb", '<<', "1:5.0.1+dfsg-1"), "hunspell-en-za": ("myspell-en-za", '<<', "1:5.0.1+dfsg-1"), + "hunspell-eo": ("myspell-eo", '<<', "2.1.2000.02.25-62"), "hunspell-hr": ('myspell-hr', '<<', '1:6.0.3-2'), "hunspell-it": ("myspell-it", '<<', "1:5.0.1+dfsg-1"), "hunspell-kmr": ('myspell-ku', '<<', '1:5.1.3-2'), @@ -171,10 +172,10 @@ Description: German dictionary for hunspell ("frami" version) # Code lookup: https://en.wikipedia.org/wiki/ISO_639:$code # link the pseudo-RFC639-1 used by upstream (the key) to an actual RFC639-1 or RFC638-2 -ass_639_code = {"af_ZA": "af", "an_ES": "an", "ar": "ar", "be_BY": "be", "bg_BG": "bg", "bn_BD": "bn", "bo": "bo", "br_FR": "br", "bs_BA": "bs", "ca": "ca", "cs_CZ": "cs", "da_DK": "da", "de": "de", "el_GR": "el", "en": "en", "es": "es", "et_EE": "et", "fr_FR": "fr", "gd_GB": "gd", "gl": "gl", "gu_IN": "gu", "gug": "gug", "he_IL": "he", "hi_IN": "hi", "hr_HR": "hr", "hu_HU": "hu", "id": "id", "is": "is", "it_IT": "it", "kmr_Latn": "kmr", "lo_LA": "lo", "lt_LT": "lt", "lv_LV": "lv", "mn_MN": "mn", "ne_NP": "ne", "nl_NL": "nl", "no": "no", "oc_FR": "oc", "pl_PL": "pl", "pt_BR": "pt-br", "pt_PT": "pt-pt", "ro": "ro", "ru_RU": "ru", "si_LK": "si", "sk_SK": "sk", "sl_SI": "sl", "sq_AL": "sq", "sr": "sr", "sv_SE": "sv", "sw_TZ": "sw", "te_IN": "te", "th_TH": "th", "tr_TR": "tr", "uk_UA": "uk", "vi": "vi", "zu_ZA": "zu"} +ass_639_code = {"af_ZA": "af", "an_ES": "an", "ar": "ar", "be_BY": "be", "bg_BG": "bg", "bn_BD": "bn", "bo": "bo", "br_FR": "br", "bs_BA": "bs", "ca": "ca", "cs_CZ": "cs", "da_DK": "da", "de": "de", "el_GR": "el", "en": "en", "eo": "eo", "es": "es", "et_EE": "et", "fr_FR": "fr", "gd_GB": "gd", "gl": "gl", "gu_IN": "gu", "gug": "gug", "he_IL": "he", "hi_IN": "hi", "hr_HR": "hr", "hu_HU": "hu", "id": "id", "is": "is", "it_IT": "it", "kmr_Latn": "kmr", "lo_LA": "lo", "lt_LT": "lt", "lv_LV": "lv", "mn_MN": "mn", "ne_NP": "ne", "nl_NL": "nl", "no": "no", "oc_FR": "oc", "pl_PL": "pl", "pt_BR": "pt-br", "pt_PT": "pt-pt", "ro": "ro", "ru_RU": "ru", "si_LK": "si", "sk_SK": "sk", "sl_SI": "sl", "sq_AL": "sq", "sr": "sr", "sv_SE": "sv", "sw_TZ": "sw", "te_IN": "te", "th_TH": "th", "tr_TR": "tr", "uk_UA": "uk", "vi": "vi", "zu_ZA": "zu"} # link the pseudo-RFC639-1 used by upstream (the key) to a language name -ass_639_name = {"af_ZA": "Afrikaans", "an_ES": "Aragonese", "ar": "Arabic", "be_BY": "Belarusian", "bg_BG": "Bulgarian", "bn_BD": "Bengali", "bo": "Classic Tibetan", "br_FR": "Breton", "bs_BA": "Bosnian", "ca": "Catalan", "cs_CZ": "Czech", "da_DK": "Danish", "de": "German", "el_GR": "Modern Greek", "en": "English", "es": "Spanish", "et_EE": "Estonian", "fr_FR": "French", "gd_GB": "Scottish Gaelic", "gl": "Galician", "gu_IN": "Gujarati", "gug": "Guarani", "he_IL": "Hebrew", "hi_IN": "Hindi", "hr_HR": "Croatian", "hu_HU": "Hungarian", "id": "Indonesian", "is": "Icelandic", "it_IT": "Italian", "kmr_Latn": "Kurmanji", "lo_LA": "Laotian", "lt_LT": "Lithuanian", "lv_LV": "Latvian", "mn_MN": "Mongolian", "ne_NP": "Nepalese", "nl_NL": "Dutch", "no": "Norwegian", "oc_FR": "Occitan", "pl_PL": "Polish", "pt_BR": "Brazilian Portuguese", "pt_PT": "Portuguese", "ro": "Romanian", "ru_RU": "Russian", "si_LK": "Sinhala", "sk_SK": "Slovak", "sl_SI": "Slovene", "sq_AL": "Albanian", "sr": "Serbian", "sv_SE": "Swedish", "sw_TZ": "Swahili", "te_IN": "Telugu", "th_TH": "Thai", "tr_TR": "Turkish", "uk_UA": "Ukrainian", "vi": "Vietnamese", "zu_ZA": "Zulu"} +ass_639_name = {"af_ZA": "Afrikaans", "an_ES": "Aragonese", "ar": "Arabic", "be_BY": "Belarusian", "bg_BG": "Bulgarian", "bn_BD": "Bengali", "bo": "Classic Tibetan", "br_FR": "Breton", "bs_BA": "Bosnian", "ca": "Catalan", "cs_CZ": "Czech", "da_DK": "Danish", "de": "German", "el_GR": "Modern Greek", "en": "English", "eo": "Esperanto", "es": "Spanish", "et_EE": "Estonian", "fr_FR": "French", "gd_GB": "Scottish Gaelic", "gl": "Galician", "gu_IN": "Gujarati", "gug": "Guarani", "he_IL": "Hebrew", "hi_IN": "Hindi", "hr_HR": "Croatian", "hu_HU": "Hungarian", "id": "Indonesian", "is": "Icelandic", "it_IT": "Italian", "kmr_Latn": "Kurmanji", "lo_LA": "Laotian", "lt_LT": "Lithuanian", "lv_LV": "Latvian", "mn_MN": "Mongolian", "ne_NP": "Nepalese", "nl_NL": "Dutch", "no": "Norwegian", "oc_FR": "Occitan", "pl_PL": "Polish", "pt_BR": "Brazilian Portuguese", "pt_PT": "Portuguese", "ro": "Romanian", "ru_RU": "Russian", "si_LK": "Sinhala", "sk_SK": "Slovak", "sl_SI": "Slovene", "sq_AL": "Albanian", "sr": "Serbian", "sv_SE": "Swedish", "sw_TZ": "Swahili", "te_IN": "Telugu", "th_TH": "Thai", "tr_TR": "Turkish", "uk_UA": "Ukrainian", "vi": "Vietnamese", "zu_ZA": "Zulu"} hyphen_tpl = Template(""" Package: hyphen-$language_639 diff --git a/debian/list.json b/debian/list.json index 859366e..7b325f2 100644 --- a/debian/list.json +++ b/debian/list.json @@ -232,6 +232,21 @@ ], "name": "English (GB)" }, + { + "639-1": "eo", + "code": "eo", + "hunspell": [ + "eo.aff", + "eo.dic" + ], + "hyphen": [ + "hyph_eo.dic" + ], + "mythes": [ + "th_eo.dat" + ], + "name": "Esperanto" + }, { "639-1": "es", "code": "es", diff --git a/debian/rules.install b/debian/rules.install index 2233111..d08a234 100644 --- a/debian/rules.install +++ b/debian/rules.install @@ -50,6 +50,10 @@ install_files: dh_install -phunspell-en-gb dictionaries/en/en_GB.aff usr/share/hunspell dh_install -phunspell-en-gb dictionaries/en/en_GB.dic usr/share/hunspell dh_install -phyphen-en-gb dictionaries/en/hyph_en_GB.dic usr/share/hyphen + dh_install -phunspell-eo dictionaries/eo/eo.aff usr/share/hunspell + dh_install -phunspell-eo dictionaries/eo/eo.dic usr/share/hunspell + dh_install -phyphen-eo dictionaries/eo/hyph_eo.dic usr/share/hyphen + dh_install -pmythes-eo dictionaries/eo/th_eo.dat usr/share/mythes dh_install -phunspell-es dictionaries/es/es.aff usr/share/hunspell dh_install -phunspell-es dictionaries/es/es.dic usr/share/hunspell dh_install -phyphen-es dictionaries/es/hyph_es.dic usr/share/hyphen -- 2.43.0