diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index 9fe3cb0..e657fda 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,23 @@ -/es_ANY.oxt +/es_MX.oxt +/es_AR.oxt +/es_BO.oxt +/es_CL.oxt +/es_CO.oxt +/es_CR.oxt +/es_CU.oxt +/es_DO.oxt +/es_EC.oxt +/es_ES.oxt +/es_GT.oxt +/es_HN.oxt +/es_NI.oxt +/es_PA.oxt +/es_PE.oxt +/es_PR.oxt +/es_PY.oxt +/es_SV.oxt +/es_US.oxt +/es_UY.oxt +/es_VE.oxt +/es_GQ.oxt +/es_PH.oxt diff --git a/hunspell-es.spec b/hunspell-es.spec index b785f28..a484d34 100644 --- a/hunspell-es.spec +++ b/hunspell-es.spec @@ -1,44 +1,463 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-es Summary: Spanish hunspell dictionaries -Version: 0.7 -Release: 6%{?dist} +Version: 2.9 +Release: 2%{?dist} Epoch: 1 -Source: http://forja.rediris.es/frs/download.php/2890/es_ANY.oxt -URL: https://forja.rediris.es/projects/rla-es/ -License: LGPLv3+ or GPLv3+ or MPLv1.1 +Source0: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_AR.oxt +Source1: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_BO.oxt +Source2: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_CL.oxt +Source3: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_CO.oxt +Source4: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_CR.oxt +Source5: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_CU.oxt +Source6: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_DO.oxt +Source7: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_EC.oxt +Source8: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_ES.oxt +Source9: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_GQ.oxt +Source10: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_GT.oxt +Source11: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_HN.oxt +Source12: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_MX.oxt +Source13: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_NI.oxt +Source14: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PA.oxt +Source16: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PE.oxt +Source17: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PR.oxt +Source18: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PY.oxt +Source19: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_SV.oxt +Source20: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_US.oxt +Source21: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_UY.oxt +Source22: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_VE.oxt + +URL: https://github.com/sbosio/rla-es/ +License: LGPL-3.0-or-later OR GPL-3.0-or-later OR MPL-1.1 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem +Requires: hunspell-es-AR = %{epoch}:%{version}-%{release} +Requires: hunspell-es-BO = %{epoch}:%{version}-%{release} +Requires: hunspell-es-CL = %{epoch}:%{version}-%{release} +Requires: hunspell-es-CO = %{epoch}:%{version}-%{release} +Requires: hunspell-es-CR = %{epoch}:%{version}-%{release} +Requires: hunspell-es-CU = %{epoch}:%{version}-%{release} +Requires: hunspell-es-DO = %{epoch}:%{version}-%{release} +Requires: hunspell-es-EC = %{epoch}:%{version}-%{release} +Requires: hunspell-es-ES = %{epoch}:%{version}-%{release} +Requires: hunspell-es-GT = %{epoch}:%{version}-%{release} +Requires: hunspell-es-GQ = %{epoch}:%{version}-%{release} +Requires: hunspell-es-HN = %{epoch}:%{version}-%{release} +Requires: hunspell-es-MX = %{epoch}:%{version}-%{release} +Requires: hunspell-es-NI = %{epoch}:%{version}-%{release} +Requires: hunspell-es-PA = %{epoch}:%{version}-%{release} +Requires: hunspell-es-PE = %{epoch}:%{version}-%{release} +Requires: hunspell-es-PR = %{epoch}:%{version}-%{release} +Requires: hunspell-es-PY = %{epoch}:%{version}-%{release} +Requires: hunspell-es-SV = %{epoch}:%{version}-%{release} +Requires: hunspell-es-UY = %{epoch}:%{version}-%{release} +Requires: hunspell-es-US = %{epoch}:%{version}-%{release} +Requires: hunspell-es-VE = %{epoch}:%{version}-%{release} Supplements: (hunspell and langpacks-es) %description Spanish (Spain, Mexico, etc.) hunspell dictionaries. +%package AR +Requires: hunspell +Summary: Argentine Spanish hunspell dictionary + +%description AR +Argentine Spanish hunspell dictionary + +%package BO +Requires: hunspell +Summary: Bolivian Spanish hunspell dictionary + +%description BO +Bolivian Spanish hunspell dictionary + +%package CL +Requires: hunspell +Summary: Chilean Spanish hunspell dictionary + +%description CL +Chilean Spanish hunspell dictionary + +%package CO +Requires: hunspell +Summary: Colombian Spanish hunspell dictionary + +%description CO +Colombian Spanish hunspell dictionary + +%package CR +Requires: hunspell +Summary: Costa Rican Spanish hunspell dictionary + +%description CR +Costa Rican Spanish hunspell dictionary + +%package CU +Requires: hunspell +Summary: Cuban Spanish hunspell dictionary + +%description CU +Cuban Spanish hunspell dictionary + +%package DO +Requires: hunspell +Summary: Dominican Spanish hunspell dictionary + +%description DO +Dominican Spanish hunspell dictionary + +%package EC +Requires: hunspell +Summary: Ecuadorian Spanish hunspell dictionary + +%description EC +Ecuadorian Spanish hunspell dictionary + +%package ES +Requires: hunspell +Summary: European Spanish hunspell dictionary + +%description ES +European Spanish hunspell dictionary + +%package GT +Requires: hunspell +Summary: Guatemalan Spanish hunspell dictionary + +%description GT +Guatemalan Spanish hunspell dictionary + +%package GQ +Requires: hunspell +Summary: Equatorial Guinean Spanish hunspell dictionary + +%description GQ +Equatorial Guinean Spanish hunspell dictionary + +%package HN +Requires: hunspell +Summary: Honduran Spanish hunspell dictionary + +%description HN +Honduran Spanish hunspell dictionary + +%package MX +Requires: hunspell +Summary: Mexican Spanish hunspell dictionary + +%description MX +Mexican Spanish hunspell dictionary + +%package NI +Requires: hunspell +Summary: Nicaraguan Spanish hunspell dictionary + +%description NI +Nicaraguan Spanish hunspell dictionary + +%package PA +Requires: hunspell +Summary: Panamanian Spanish hunspell dictionary + +%description PA +Panamanian Spanish hunspell dictionary + +%package PE +Requires: hunspell +Summary: Peruvian Spanish hunspell dictionary + +%description PE +Peruvian Spanish hunspell dictionary + +%package PR +Requires: hunspell +Summary: Puerto Rican Spanish hunspell dictionary + +%description PR +Puerto Rican Spanish hunspell dictionary + +%package PY +Requires: hunspell +Summary: Paraguayan Spanish hunspell dictionary + +%description PY +Paraguayan Spanish hunspell dictionary + +%package SV +Requires: hunspell +Summary: Salvadoran Spanish hunspell dictionary + +%description SV +Salvadoran Spanish hunspell dictionary + +%package US +Requires: hunspell +Summary: US Spanish hunspell dictionary + +%description US +US Spanish hunspell dictionary + +%package UY +Requires: hunspell +Summary: Uruguayan Spanish hunspell dictionary + +%description UY +Uruguayan Spanish hunspell dictionary + +%package VE +Requires: hunspell +Summary: Venezuelan Spanish hunspell dictionary + +%description VE +Venezuelan Spanish hunspell dictionary + +%define es_REGIONS es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_ES es_GQ es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE + %prep %setup -q -c -n hunspell-es +for REGION in %{es_REGIONS}; do + unzip -q -o %{_sourcedir}/${REGION}.oxt +done + %build -chmod -x * %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p es_ANY.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/es.dic -cp -p es_ANY.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/es.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ -es_ES_aliases="es_ES es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE" - -for lang in $es_ES_aliases; do - ln -s es.aff $lang.aff - ln -s es.dic $lang.dic +# supported Spanish language regions: +for REGION in %{es_REGIONS}; do + cp -p $REGION.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ + cp -p $REGION.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ done -popd %files -%doc README.txt Changelog.txt GPLv3.txt MPL-1.1.txt LGPLv3.txt -%{_datadir}/myspell/* + +%files ES +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_ES.* + + +%files AR +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_AR.* + + +%files BO +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_BO.* + + +%files CL +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_CL.* + + +%files CO +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_CO.* + + +%files CR +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_CR.* + + +%files CU +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_CU.* + + +%files DO +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_DO.* + + +%files EC +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_EC.* + + +%files GQ +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_GQ.* + + +%files GT +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_GT.* + + +%files HN +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_HN.* + + +%files MX +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_MX.* + + +%files NI +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_NI.* + + +%files PA +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_PA.* + + +%files PE +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_PE.* + + +%files PR +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_PR.* + + +%files PY +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_PY.* + + +%files SV +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_SV.* + + +%files US +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_US.* + + +%files UY +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_UY.* + + +%files VE +%doc README.txt +%license GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/%{dict_dirname}/es_VE.* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 1:2.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Mon Mar 17 2025 Parag Nemade - 1:2.9-1 +- Update to 2.9 version (#2334961) + +* Fri Jan 17 2025 Fedora Release Engineering - 1:2.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Thu Jul 18 2024 Fedora Release Engineering - 1:2.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 1:2.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 1:2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 22 2023 Ismeel Olea - 1:2.8-1 +* Update to v2.8. Now includes variants for Equatorial Guinea. + +* Thu Jul 20 2023 Fedora Release Engineering - 1:2.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Feb 22 2023 Caolán McNamara - 1:2.2-15 +- migrated to SPDX license + +* Thu Jan 19 2023 Fedora Release Engineering - 1:2.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1:2.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Mar 22 2022 Parag Nemade - 1:2.3-12 +- Revert typo in previous commit + +* Tue Mar 22 2022 Parag Nemade - 1:2.3-11 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + +* Thu Jan 20 2022 Fedora Release Engineering - 1:2.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1:2.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1:2.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1:2.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1:2.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1:2.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1:2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1:2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1:2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 8 2018 Ismael Olea - 1:2.3-1 +- update to v2.3 +- using license tag + +* Tue Jan 2 2018 Ismael Olea - 1:2.2-3 +- use upstream all Spanish variants supported by RLA-ES project + +* Fri Aug 18 2017 Caolán McNamara - 1:2.2-2 +- use upstream es_MX for Mexican variant + +* Thu Aug 17 2017 Caolán McNamara - 1:2.2-1 +- update to 2.2 + +* Wed Jul 26 2017 Fedora Release Engineering - 1:0.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1:0.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Feb 19 2016 Parag Nemade - 1:0.7-6 - Add Supplements: tag for langpacks naming guidelines - Clean the specfile to follow current packaging guidelines diff --git a/plans/hunspell-es.fmf b/plans/hunspell-es.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell-es.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/sources b/sources index 3d297f5..acdcdd7 100644 --- a/sources +++ b/sources @@ -1 +1,22 @@ -e6035c917eb9b874a3c19636a417c4b5 es_ANY.oxt +SHA512 (es_AR.oxt) = 77ca54293cb5898c207485bc51e3ab5fdb48fe5d1e5c898cd4995ecadef505aa6cb5ab9cc538c226f99ae6b7bba541a315b5f2dfa7a87632839d83fa70a92a67 +SHA512 (es_BO.oxt) = 8338963fb8a5625de9f89780e477917391bfd79c2669161f1095613d5473e1e0b9e275bab7289213615206c66e80d3d611649e80cd99bea10cf6cd9de3f2f7f4 +SHA512 (es_CL.oxt) = 27d40f6b7973a0f7527a792a6586c3a11f035cee2e6e343f489e1239113b7e9f7817ec1d7820009088159421ae422ed05d3ff30ab47513daaa4d1f29ea6c3231 +SHA512 (es_CO.oxt) = 844db386836183212cab671823ced9c781f40931f14b5de8018a4ca86460926c574f371157c94eab21564a71b2d568a0e8157a56a72cc1a987dbf5939bcfca9e +SHA512 (es_CR.oxt) = bd98002fb00b73936b11a9f0a3be29d658a760b81f6012c891a38ef78cb89e4c59c47f2234e03b3460d88bb2446fd115a64b73b26d5e9afbf81e29769be75408 +SHA512 (es_CU.oxt) = 52742c6c14a9217fe49aa18ea5c492048c0759a22d12c27772dbcd73a52baa93e44e793c7108040e318be38c2a6777a6ed767a3ec6390f7971a9826bb4d28bb3 +SHA512 (es_DO.oxt) = 5711b0ac63239d5e2bd78d561829dba63b188a64c5254fcfeedb7840659365a1b8ce1674032acc701630e0d113a48a95671b080d584ac4c1c5c55ad2009905af +SHA512 (es_EC.oxt) = b6913c56c9ede850306b5a3ca83bfb5800d23da18e52912ecfbc4a4d791fc40d468862c0110440caafd8269857c3e37515de99391af1f6452e47a4db9b37b228 +SHA512 (es_ES.oxt) = edcc34650bff4b0876fa01c356bdc7c58f49fbf689356f46fdc80bb8538c771e5fba057037b143e4b091ded34274cbb52962112599407b408744e5924feb1cd5 +SHA512 (es_GQ.oxt) = 3165050806f21747fca992e9e38cf6344c99cd6daf802574b3fc9a20e761635c526e556a57574df61e57cc315faa91832fbeea5c6e5602b7732426fbe77e029f +SHA512 (es_GT.oxt) = 411783c277120e13b9224c9ef07baa9bb70c29dcb3fae42e7faf712a9af030c7476d5ca4265ecf405d017674ad99a61e5c3e1934249037500376ad411d0ac4d8 +SHA512 (es_HN.oxt) = 075cc734a1e877f9207c260534f9e302d2bbc54ec4986347d08c4bbe44577374e1444257ea0973cfe3d4594de0fde9ce597dc76b041001c3977bd55c970ed8b3 +SHA512 (es_MX.oxt) = c5ef7516c460b3f9943493d36f8b1e6a71c820bedc1248a079afadbf7b299c1acf16f1c988c7a1a013633d5c3b43388251f9561b486199b884465e3fefa05d2a +SHA512 (es_NI.oxt) = 81b0e87ea6ee0b6b50fc73c030d33c03f3332b2f6a58225a6964308d4e770228d4269dc81156399babd68b194587b07130679fb5b058f2368f4aa0079a209521 +SHA512 (es_PA.oxt) = 9b26cb65d2c8ba21a6569dc211014bd971aca604fe791b9028a0e4e0dc3007dd7fbcb955d3535121ffc78d1ec8cbcfcc2e03678ba813a7fdfb191a1ad4d7af9c +SHA512 (es_PE.oxt) = 7f94c3ed7d993e9717ef83187bcef6af7f32a1a71e83e3b7a2217f2a8fbb8327cdb8bb1fd96ae74e352748dbed1e5f48e349fd8b8c91fcd2e59e953ee64d32f9 +SHA512 (es_PR.oxt) = 0359f522b9449f55e5205d09c3f2b4bcec98e966889679a005dfa985c097ad1366ef6a3ff53aeb8305e1d4dd12b2d3dec52177787d46506e3320e57b45de31a2 +SHA512 (es_PY.oxt) = 873524d98fcdaa7af2597b8890cdc548df6a396d55745d5bbc8e5477f50c4b2bbadf8c3e39059d566958f8ce3ed6a0cb9fe3e11c961e356cc92bf849ef34af7c +SHA512 (es_SV.oxt) = 4012e0a81696f80bab5c994597199ab88743643ddee3b00abe17726a960c4fd353564dc254f6a796c1e83ad76a2c2e3f53f6d46a21a85311e0f01e238797b7a5 +SHA512 (es_US.oxt) = 3ead61208190d867265a239c9e23c2ffd8d2661bf4846f5fc6bfb270763cebff1ae08730440b71d70bce2e223bc79d6bc705b3322b92e2872bd9a1ca38d12aa6 +SHA512 (es_UY.oxt) = f38b13439ca76b7201ff5f7b69b56f2884b88b499e80a145f65a64a984ee98510835532af3d9a74375056d53f736c9e814a38e35b1ab5ae5064ac1d39307b898 +SHA512 (es_VE.oxt) = a32bdef9f941da9936c72b16b7cc91e7eb6e49d69edfd824fa28f89fb07aa38e8fa843c328790929c3429f2c030c18bab35075a7eaf162c918dcd479f4194128 diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf new file mode 100644 index 0000000..358c2a5 --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-es +test: python3 test_dic_availability.py +framework: shell + diff --git a/tests/test_dic_availability.py b/tests/test_dic_availability.py new file mode 100644 index 0000000..f52c533 --- /dev/null +++ b/tests/test_dic_availability.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import enchant + +lang = "es_ES" +try: + dic = enchant.request_dict(lang) + print("Dictionary for {0} language is available for use".format(lang)) +except enchant.errors.DictNotFoundError: + print("Dictionary is not installed for use") diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf new file mode 100644 index 0000000..55a668b --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-es +test: python3 test_suggest_words.py +framework: shell + diff --git a/tests/test_suggest_words.py b/tests/test_suggest_words.py new file mode 100644 index 0000000..ac3a61c --- /dev/null +++ b/tests/test_suggest_words.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import enchant + +wdlst = [ "Hola", "té", "mañana"] +dic = enchant.Dict("es_ES") +for wd in wdlst: + dic.check(wd) + print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))