Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d3452e2a1 |
||
|
|
17dd778c73 |
||
|
|
1df48a17e9 | ||
|
|
1b55ae87b0 | ||
|
|
5751c3dbd7 | ||
|
|
37da861a43 | ||
|
|
dc86f5b8f0 | ||
|
|
ee1a9fe5e1 |
7 changed files with 71 additions and 1 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -9,7 +9,7 @@ Summary: Esperanto hunspell dictionaries
|
|||
%global upstreamid 20100218
|
||||
Version: 0.%{upstreamid}
|
||||
Epoch: 1
|
||||
Release: 15%{?dist}
|
||||
Release: 22%{?dist}
|
||||
Source: http://www.esperantilo.org/literumilo-fontoj.tar.gz
|
||||
URL: http://www.esperantilo.org
|
||||
License: GPL-2.0-or-later
|
||||
|
|
@ -24,6 +24,18 @@ Esperanto hunspell dictionaries.
|
|||
%prep
|
||||
%autosetup -n literumilo-fontoj
|
||||
|
||||
for i in eo_morf.dic; do
|
||||
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
|
||||
iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
|
||||
touch -r $i $i.new
|
||||
mv -f $i.new $i
|
||||
fi
|
||||
tr -d '\r' < $i > $i.new
|
||||
touch -r $i $i.new
|
||||
mv -f $i.new $i
|
||||
done
|
||||
|
||||
|
||||
%build
|
||||
chmod -x *
|
||||
for i in LEGUMIN.txt; do
|
||||
|
|
@ -43,6 +55,27 @@ cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.aff
|
|||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Parag Nemade <panemade AT redhat DOT com> - 1:0.20100218-22
|
||||
- Fix the conversion again for eo.dic file
|
||||
|
||||
* Thu Jul 16 2026 Parag Nemade <panemade AT redhat DOT com> - 1:0.20100218-21
|
||||
- Convert eo.dic to UTF-8 enconding format
|
||||
|
||||
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Tue Jan 20 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
5
plans/hunspell-eo.fmf
Normal file
5
plans/hunspell-eo.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
6
tests/test_dic_availability.fmf
Normal file
6
tests/test_dic_availability.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-eo
|
||||
test: python3 test_dic_availability.py
|
||||
framework: shell
|
||||
|
||||
10
tests/test_dic_availability.py
Normal file
10
tests/test_dic_availability.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
lang = "eo_morf"
|
||||
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")
|
||||
6
tests/test_suggest_words.fmf
Normal file
6
tests/test_suggest_words.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-eo
|
||||
test: python3 test_suggest_words.py
|
||||
framework: shell
|
||||
|
||||
9
tests/test_suggest_words.py
Normal file
9
tests/test_suggest_words.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
wdlst = [ "saluton", "teo", "mateno"]
|
||||
dic = enchant.Dict("eo_morf")
|
||||
for wd in wdlst:
|
||||
dic.check(wd)
|
||||
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue