Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Fedora Release Engineering
7686d2b4c5 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:09:52 +00:00
Parag Nemade
9986401e00
Add tmt CI testcase 2025-03-24 14:30:57 +05:30
7 changed files with 41 additions and 1 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

View file

@ -7,7 +7,7 @@
Name: hunspell-ca
Summary: Catalan hunspell dictionaries
Version: 3.0.8
Release: 5%{?dist}
Release: 6%{?dist}
Source: https://github.com/Softcatala/catalan-dict-tools/releases/download/v%{version}/ca.%{version}-hunspell.zip
URL: https://www.softcatala.org/projectes/corrector-ortografic/
License: GPL-2.0-or-later OR LGPL-2.1-or-later
@ -46,6 +46,9 @@ popd
%{_datadir}/%{dict_dirname}/*
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild

5
plans/hunspell-ca.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-ca
test: python3 test_dic_availability.py
framework: shell

View file

@ -0,0 +1,10 @@
#!/usr/bin/python3
import enchant
lang = "ca_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")

View file

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-ca
test: python3 test_suggest_words.py
framework: shell

View file

@ -0,0 +1,9 @@
#!/usr/bin/python3
import enchant
wdlst = [ "hola", "te", "matí"]
dic = enchant.Dict("ca_ES")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))