Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b9bd6a762 | ||
|
|
24ec65a749 | ||
|
|
8509513de3 | ||
|
|
96698001d3 | ||
|
|
9d120c4359 |
||
|
|
eefe3acae4 | ||
|
|
358918a707 | ||
|
|
ff45a71c42 | ||
|
|
693e300000 | ||
|
|
b44ceec163 | ||
|
|
2da22744b5 | ||
|
|
f4ab9688e1 |
7 changed files with 74 additions and 4 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -8,12 +8,12 @@ Name: hunspell-ms
|
|||
Summary: Malay hunspell dictionaries
|
||||
%global upstreamid 20050117
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 26%{?dist}
|
||||
Release: 37%{?dist}
|
||||
Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip
|
||||
URL: https://wiki.openoffice.org/wiki/Dictionaries
|
||||
# affix file is under GPL+
|
||||
# rest package under GFDL
|
||||
License: GFDL and GPL+
|
||||
License: GFDL-1.1-or-later AND GPL-1.0-or-later
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell-filesystem
|
||||
|
|
@ -45,6 +45,39 @@ done
|
|||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-37
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-36
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-35
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-33
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-32
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-31
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 0.20050117-29
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050117-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20050117-26
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
|
@ -119,8 +152,8 @@ done
|
|||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20050117-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Aug 03 2007 Caolan McNamara <caolanm@redhat.com> - 0.20050117-2
|
||||
* Fri Aug 03 2007 Caolán McNamara <caolanm@redhat.com> - 0.20050117-2
|
||||
- clarify license, the .aff apparently is GPL+ while the wordlist is GFDL
|
||||
|
||||
* Thu Dec 07 2006 Caolan McNamara <caolanm@redhat.com> - 0.20050117-1
|
||||
* Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20050117-1
|
||||
- initial version
|
||||
|
|
|
|||
5
plans/hunspell-ms.fmf
Normal file
5
plans/hunspell-ms.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-ms
|
||||
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 = "ms_MY"
|
||||
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-ms
|
||||
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 = [ "Hello", "teh", "pagi"]
|
||||
dic = enchant.Dict("ms_MY")
|
||||
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