From 226713aaff140ae5caee9968e27956c4efbb9aac Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Fri, 5 Jan 2024 23:44:58 +0100 Subject: [PATCH] update to 20110410 [release 20110410-1mamba;Sun Apr 10 2011] --- README.md | 2 + hunspell-en-2011025-SI_and_IEC.patch | 78 ++++++++++++++++ ...011025-allow-non-typographical-marks.patch | 23 +++++ hunspell-en-2011025-en_GB-singleletters.patch | 56 ++++++++++++ ...ll-en-2011025-en_GB-two_initial_caps.patch | 20 +++++ ...ell-en-2011025-en_US-strippedabbrevs.patch | 8 ++ hunspell-en-2011025-mozilla_words.patch | 54 ++++++++++++ hunspell-en.spec | 88 +++++++++++++++++++ 8 files changed, 329 insertions(+) create mode 100644 hunspell-en-2011025-SI_and_IEC.patch create mode 100644 hunspell-en-2011025-allow-non-typographical-marks.patch create mode 100644 hunspell-en-2011025-en_GB-singleletters.patch create mode 100644 hunspell-en-2011025-en_GB-two_initial_caps.patch create mode 100644 hunspell-en-2011025-en_US-strippedabbrevs.patch create mode 100644 hunspell-en-2011025-mozilla_words.patch create mode 100644 hunspell-en.spec diff --git a/README.md b/README.md index 2dea45c..d0b487b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hunspell-en +English hunspell dictionaries + diff --git a/hunspell-en-2011025-SI_and_IEC.patch b/hunspell-en-2011025-SI_and_IEC.patch new file mode 100644 index 0000000..4013a2c --- /dev/null +++ b/hunspell-en-2011025-SI_and_IEC.patch @@ -0,0 +1,78 @@ +--- wordlist/scowl/r/special/abbreviations 2008-11-29 23:02:41.000000000 +0000 ++++ wordlist/scowl/r/special/abbreviations 2010-07-30 11:18:33.000000000 +0100 +@@ -2,6 +2,11 @@ + AI + ATM + BTW ++EB ++Eb ++Ei ++EiB ++Eib + EULA + EULAs + FAQ +@@ -13,27 +18,63 @@ + GB + GHz + GUI ++Gb ++Gi ++GiB ++Gib + HTML + HTTP ++IEC + IMHO + IMNSHO + IMO + ISO ++JEDEC ++KB ++Kb ++Ki ++KiB ++Kib + MB + MP3 + MP3s + Mb ++Mi ++MiB ++Mib + OTOH ++PB ++Pb ++Pi ++PiB ++Pib + RFC + ROFL + RTFM ++TB ++Tb ++Ti ++TiB ++Tib + URL + USB + WWW + WYSIWYG + XML ++YB ++Yb + YMMV ++Yi ++YiB ++Yib ++ZB ++Zb ++Zi ++ZiB ++Zib + cf ++kB ++kb + pp + resp + vs diff --git a/hunspell-en-2011025-allow-non-typographical-marks.patch b/hunspell-en-2011025-allow-non-typographical-marks.patch new file mode 100644 index 0000000..e5d3027 --- /dev/null +++ b/hunspell-en-2011025-allow-non-typographical-marks.patch @@ -0,0 +1,23 @@ +diff -Nru wordlist/en_GB.aff wordlist-gil/en_GB.aff +--- wordlist/en_GB.aff 2005-05-26 11:03:56.000000000 +0200 ++++ wordlist-gil/en_GB.aff 2011-01-25 08:40:15.000000000 +0100 +@@ -6,6 +6,7 @@ + # R 1.18, 11/04/05 + SET ISO8859-1 + TRY esiaénrtolcdugmfphbyvkw-'.zqjxSNRTLCGDMFPHBEAUYOIVKWóöâôZQJXÅçèîêàïüäñ ++WORDCHARS 0123456789' + REP 27 + REP f ph + REP ph f +diff -Nru wordlist/scowl/speller/en.aff wordlist-gil/scowl/speller/en.aff +--- wordlist/scowl/speller/en.aff 2011-01-25 08:42:17.000000000 +0100 ++++ wordlist-gil/scowl/speller/en.aff 2011-01-25 08:41:15.000000000 +0100 +@@ -12,7 +12,7 @@ + COMPOUNDRULE 2 + COMPOUNDRULE n*1t + COMPOUNDRULE n*mp +-WORDCHARS 0123456789 ++WORDCHARS 0123456789' + + PFX A Y 1 + PFX A 0 re . diff --git a/hunspell-en-2011025-en_GB-singleletters.patch b/hunspell-en-2011025-en_GB-singleletters.patch new file mode 100644 index 0000000..014929a --- /dev/null +++ b/hunspell-en-2011025-en_GB-singleletters.patch @@ -0,0 +1,56 @@ +--- wordlist.orig/en_GB.dic 2005-05-26 11:49:30.000000000 +0100 ++++ wordlist/en_GB.dic 2008-11-28 10:01:37.000000000 +0000 +@@ -1,4 +1,4 @@ +-46280 ++46286 + abaft + abbreviation/M + abdicate/DNGSn +@@ -2278,6 +2278,7 @@ + hysterectomy/SM + Hyundai/M + ICC/M ++i + icebox/SM + icicle/SM + iconoclasm/MS +@@ -2470,6 +2471,7 @@ + Ithacan + its + ix ++j + jackknife/DGMS + Jacqueline + Jaeger/M +@@ -2764,6 +2766,7 @@ + Mabel/M + Macedon + Macedonia/M ++m + macintosh/SM + MacIntyre + Mackenzie +@@ -3222,6 +3225,7 @@ + nuttiness/S + nymphomaniac/S + Oakland/M ++o + ob. + obeyer/EM + obfuscation/M +@@ -4797,6 +4801,7 @@ + tyro/SM + UFO/S + Ukrainian/S ++u + ulcerate/SGNDn + ulcerous + Ulrika/M +@@ -4962,6 +4967,7 @@ + vulnerability/SI + vulva/M + WAC ++w + wagon/SM + waitress/MS + Waldemar/M diff --git a/hunspell-en-2011025-en_GB-two_initial_caps.patch b/hunspell-en-2011025-en_GB-two_initial_caps.patch new file mode 100644 index 0000000..e513944 --- /dev/null +++ b/hunspell-en-2011025-en_GB-two_initial_caps.patch @@ -0,0 +1,20 @@ +--- wordlist.orig/en_GB.dic 2009-06-06 15:16:16.000000000 +0100 ++++ wordlist/en_GB.dic 2009-06-06 15:17:28.000000000 +0100 +@@ -19953,7 +19953,7 @@ + technology/3wSM1 + Ted/M + tee/SGdM +-TEirtza/M ++Teirtza/M + tellurium/M + temp/GMRSTD + tempera/MLS +@@ -41226,7 +41226,7 @@ + adore/lRSNnGkD + Adrian/M + adroit/TYP +-ADte ++ADTe + adulterer/SM + adumbration/M + advantageousness/E diff --git a/hunspell-en-2011025-en_US-strippedabbrevs.patch b/hunspell-en-2011025-en_US-strippedabbrevs.patch new file mode 100644 index 0000000..0f4e1ee --- /dev/null +++ b/hunspell-en-2011025-en_US-strippedabbrevs.patch @@ -0,0 +1,8 @@ +--- wordlist/scowl/speller/en.dic.supp.orig 2008-11-28 10:10:01.000000000 +0000 ++++ wordlist/scowl/speller/en.dic.supp 2008-11-28 10:10:10.000000000 +0000 +@@ -21,3 +21,5 @@ + 7th/pt + 8th/pt + 9th/pt ++e.g. ++i.e. diff --git a/hunspell-en-2011025-mozilla_words.patch b/hunspell-en-2011025-mozilla_words.patch new file mode 100644 index 0000000..2616610 --- /dev/null +++ b/hunspell-en-2011025-mozilla_words.patch @@ -0,0 +1,54 @@ +--- wordlist.orig/scowl/r/special/proper-names 2008-02-08 11:53:27.000000000 +0000 ++++ wordlist/scowl/r/special/proper-names 2008-02-08 12:06:00.000000000 +0000 +@@ -6,6 +6,8 @@ + Biden + Bluetooth + Bugzilla ++Camino ++ChatZilla + Debian + ECMAScript + Emacs +@@ -17,12 +19,16 @@ + ISO + Ispell + LyX ++Mandriva + Mozilla ++MySpell + Netflix + PayPal ++SeaMonkey + Roku + SUSE + Slackware ++Sunbird + Thunderbird + Twitter + Ubuntu +--- wordlist.orig/scowl/speller/en.aff 2008-02-08 20:28:24.000000000 +0000 ++++ wordlist/scowl/speller/en.aff 2008-02-08 20:28:45.000000000 +0000 +@@ -110,13 +110,17 @@ + SFX L Y 1 + SFX L 0 ment . + +-REP 88 ++SFX i N 1 ++SFX i us i us ++ ++REP 90 + REP a ei + REP ei a + REP a ey + REP ey a + REP ai ie + REP ie ai ++REP alot a_lot + REP are air + REP are ear + REP are eir +@@ -199,3 +203,4 @@ + REP shun tion + REP shun sion + REP shun cion ++REP sitted sat diff --git a/hunspell-en.spec b/hunspell-en.spec new file mode 100644 index 0000000..af3c1b9 --- /dev/null +++ b/hunspell-en.spec @@ -0,0 +1,88 @@ +Name: hunspell-en +Version: 20110410 +Release: 1mamba +Summary: English hunspell dictionaries +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://wordlist.sourceforge.net/ +# svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist +# tar czf hunspell-en-wordlist-2011025-src-svn.tar.gz wordlist +Source0: hunspell-en-wordlist-20110410-src-svn.tar.gz +Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip +Patch0: hunspell-en-2011025-mozilla_words.patch +Patch1: hunspell-en-2011025-en_GB-singleletters.patch +Patch2: hunspell-en-2011025-en_GB-two_initial_caps.patch +Patch3: hunspell-en-2011025-en_US-strippedabbrevs.patch +Patch4: hunspell-en-2011025-allow-non-typographical-marks.patch +Patch5: hunspell-en-2011025-SI_and_IEC.patch +License: BSD, LGPL +BuildRequires: aspell +BuildRequires: hunspell +BuildRequires: zip +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +English hunspell dictionaries + +%prep +%setup -q -n wordlist +%setup -q -T -D -a 1 -n wordlist +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 + +%build +make +cd scowl/speller +make hunspell +for i in README_en_CA.txt README_en_US.txt; 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 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/myspell +cp -p *.dic *.aff %{buildroot}%{_datadir}/myspell +cd scowl/speller +cp -p en_*.dic en_*.aff %{buildroot}%{_datadir}/myspell + +pushd %{buildroot}%{_datadir}/myspell/ + for lang in en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW; do + ln -s en_GB.aff $lang.aff + ln -s en_GB.dic $lang.dic + done + ln -s en_US.aff en_PH.aff + ln -s en_US.dic en_PH.dic +popd + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/myspell/en_*.aff +%{_datadir}/myspell/en_*.dic +%doc README_en_GB.txt scowl/speller/README_en_CA.txt scowl/speller/README_en_US.txt + +%changelog +* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 20110410-1mamba +- update to 20110410 + +* Tue Jan 25 2011 gil 2011025-1mamba +- update to 2011025 + +* Sat Jan 31 2009 gil 20090131-1mamba +- package created by autospec