Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b70887d30e | ||
|
|
6f73a5484e |
||
|
|
d12e40760a | ||
|
|
3b56de724f | ||
|
|
7cd9afd351 | ||
|
|
e0b67f1e4e | ||
|
|
d63c00b854 | ||
|
|
36f0aeb0b7 | ||
|
|
5969ec3020 | ||
|
|
e421fccd1c | ||
|
|
1101c7e0d6 |
||
|
|
ac61d2a26d | ||
|
|
f8f114f57f | ||
|
|
3a6106a0e1 | ||
|
|
e79989b9df |
7 changed files with 96 additions and 10 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -1,13 +1,19 @@
|
|||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-ht
|
||||
Summary: Haitian Creole hunspell dictionaries
|
||||
Version: 0.06
|
||||
Release: 17%{?dist}
|
||||
Release: 31%{?dist}
|
||||
Source: http://extensions.services.openoffice.org/files/3247/3/%{name}-%{version}.oxt
|
||||
URL: http://kok.logipam.org/
|
||||
License: GPLv3+
|
||||
License: GPL-3.0-or-later
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ht)
|
||||
|
||||
%description
|
||||
|
|
@ -19,15 +25,58 @@ Haitian Creole hunspell dictionaries.
|
|||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p dictionaries/ht_HT.* $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p dictionaries/ht_HT.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
|
||||
%files
|
||||
%doc dictionaries/README_ht_HT.txt LICENSES-en.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-31
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 0.06-25
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.06-22
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
|
@ -77,14 +126,14 @@ cp -p dictionaries/ht_HT.* $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Dec 16 2009 Caolan McNamara <caolanm@redhat.com> - 0.06-1
|
||||
* Wed Dec 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.06-1
|
||||
- latest version
|
||||
|
||||
* Thu Dec 10 2009 Caolan McNamara <caolanm@redhat.com> - 0.05-1
|
||||
* Thu Dec 10 2009 Caolán McNamara <caolanm@redhat.com> - 0.05-1
|
||||
- latest version
|
||||
|
||||
* Thu Nov 19 2009 Caolan McNamara <caolanm@redhat.com> - 0.03.3-1
|
||||
* Thu Nov 19 2009 Caolán McNamara <caolanm@redhat.com> - 0.03.3-1
|
||||
- initial version
|
||||
|
||||
* Mon Nov 16 2009 Caolan McNamara <caolanm@redhat.com> - 0.02-1
|
||||
* Mon Nov 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.02-1
|
||||
- initial version
|
||||
|
|
|
|||
5
plans/hunspell-ht.fmf
Normal file
5
plans/hunspell-ht.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-ht
|
||||
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 = "ht_HT"
|
||||
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-ht
|
||||
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 = [ "bonjou","te", "maten"]
|
||||
dic = enchant.Dict("ht_HT")
|
||||
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