diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitignore diff --git a/.hyphen-eu.metadata b/.hyphen-eu.metadata new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.hyphen-eu.metadata diff --git a/SOURCES/hyph-eu.tex b/SOURCES/hyph-eu.tex new file mode 100644 index 0000000..a2293bd --- /dev/null +++ b/SOURCES/hyph-eu.tex @@ -0,0 +1,92 @@ +% Hyphenation patterns for Basque. +% +% This file has first been written by Juan M. Aguirregabiria +% (juanmari.aguirregabiria@ehu.es) on February 1997 based on the +% shyphen.sh script that generates the Spanish patterns as compiled +% by Julio Sanchez (jsanchez@gmv.es) on September 1991. +% +% In June 2008 the generating script has been rewritten into ruby and +% adapted for native UTF-8 TeX engines. Patterns became part of hyph-utf8 +% package and were renamed from bahyph.tex into hyph-eu.tex. +% Functionality should not change apart from adding ñ by default. +% +% The original Copyright followed and applied also to precessor of this file +% whose last version will be always available by anonymous ftp +% from tp.lc.ehu.es or by poynting your Web browser to +% http://tp.lc.ehu.es/jma/basque.html +% +% For more information about the new UTF-8 hyphenation patterns and +% links to this file see +% http://www.tug.org/tex-hyphen/ +% +% COPYRIGHT NOTICE +% +% These patterns and the generating script are Copyright (c) JMA 1997, 2008 +% These patterns are made public in the hope that they will benefit others. +% You can use this software for any purpose. +% However, this is given for free and WITHOUT ANY WARRANTY. +% +% You are kindly requested to send any changes to the author. +% If you change the generating script, you must include code +% in it such that any output is clearly labeled as generated +% by a modified script. +% +% END OF COPYRIGHT NOTICE +% +% Open vowels: a e o +% Closed vowels: i u +% Consonants: b c d f g j k l m n ñ p q r s t v w x y z +% +% Some of the patterns below represent combinations that never +% happen in Basque. Would they happen, they would be hyphenated +% according to the rules. +% +\patterns{ +% Rule SR1 +% Vowels are kept together by the defaults +% Rule SR2 +% Attach vowel groups to left consonant +1ba 1be 1bo 1bi 1bu +1ca 1ce 1co 1ci 1cu +1da 1de 1do 1di 1du +1fa 1fe 1fo 1fi 1fu +1ga 1ge 1go 1gi 1gu +1ja 1je 1jo 1ji 1ju +1ka 1ke 1ko 1ki 1ku +1la 1le 1lo 1li 1lu +1ma 1me 1mo 1mi 1mu +1na 1ne 1no 1ni 1nu +1ña 1ñe 1ño 1ñi 1ñu +1pa 1pe 1po 1pi 1pu +1qa 1qe 1qo 1qi 1qu +1ra 1re 1ro 1ri 1ru +1sa 1se 1so 1si 1su +1ta 1te 1to 1ti 1tu +1va 1ve 1vo 1vi 1vu +1wa 1we 1wo 1wi 1wu +1xa 1xe 1xo 1xi 1xu +1ya 1ye 1yo 1yi 1yu +1za 1ze 1zo 1zi 1zu +% Rule SR3 +% Build legal consonant groups, leave other consonants bound to +% the previous group. This overrides part of the SR2 pattern group. +1l2la 1l2le 1l2lo 1l2li 1l2lu +1r2ra 1r2re 1r2ro 1r2ri 1r2ru +1t2sa 1t2se 1t2so 1t2si 1t2su +1t2xa 1t2xe 1t2xo 1t2xi 1t2xu +1t2za 1t2ze 1t2zo 1t2zi 1t2zu +1b2la 1b2le 1b2lo 1b2li 1b2lu +1b2ra 1b2re 1b2ro 1b2ri 1b2ru +1d2ra 1d2re 1d2ro 1d2ri 1d2ru +1f2la 1f2le 1f2lo 1f2li 1f2lu +1f2ra 1f2re 1f2ro 1f2ri 1f2ru +1g2la 1g2le 1g2lo 1g2li 1g2lu +1g2ra 1g2re 1g2ro 1g2ri 1g2ru +1k2la 1k2le 1k2lo 1k2li 1k2lu +1k2ra 1k2re 1k2ro 1k2ri 1k2ru +1p2la 1p2le 1p2lo 1p2li 1p2lu +1p2ra 1p2re 1p2ro 1p2ri 1p2ru +1t2ra 1t2re 1t2ro 1t2ri 1t2ru +% We now avoid some problematic breaks. +su2b2r su2b2l +} diff --git a/SOURCES/hyphen-eu-cleantex.patch b/SOURCES/hyphen-eu-cleantex.patch new file mode 100644 index 0000000..c2dff1b --- /dev/null +++ b/SOURCES/hyphen-eu-cleantex.patch @@ -0,0 +1,15 @@ +--- hyph-eu.tex 2009-06-13 14:04:38.000000000 +0100 ++++ hyph-eu.tex 2009-06-13 14:04:53.000000000 +0100 +@@ -41,7 +41,6 @@ + % happen in Basque. Would they happen, they would be hyphenated + % according to the rules. + % +-\patterns{ + % Rule SR1 + % Vowels are kept together by the defaults + % Rule SR2 +@@ -89,4 +88,3 @@ + 1t2ra 1t2re 1t2ro 1t2ri 1t2ru + % We now avoid some problematic breaks. + su2b2r su2b2l +-} diff --git a/SPECS/hyphen-eu.spec b/SPECS/hyphen-eu.spec new file mode 100644 index 0000000..e791871 --- /dev/null +++ b/SPECS/hyphen-eu.spec @@ -0,0 +1,72 @@ +Name: hyphen-eu +Summary: Basque hyphenation rules +%define upstreamid 20110620 +Version: 0.%{upstreamid} +Release: 5%{?dist} +#? in a url causes trouble +#http://tug.org/svn/texhyphen/trunk/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-eu.tex?view=co +Source: hyph-eu.tex +Group: Applications/Text +URL: http://tp.lc.ehu.es/jma/basque.html +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LPPL +BuildArch: noarch +BuildRequires: hyphen-devel +Requires: hyphen +Patch0: hyphen-eu-cleantex.patch + +%description +Basque hyphenation rules. + +%prep +%setup -T -q -c -n hyphen-eu +cp -p %{SOURCE0} . +%patch0 -p0 -b .clean + +%build +grep -v "^%" hyph-eu.tex | tr ' ' '\n' > temp.tex +substrings.pl temp.tex hyph_eu_ES.dic ISO8859-1 +echo "Created with substring.pl by substrings.pl hyph-eu.tex hyph_eu_ES.dic ISO8859-1" > README +echo "---" >> README +head -n 34 hyph-eu.tex >> README + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p hyph_eu_ES.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README +%{_datadir}/hyphen/* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.20110620-5 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.20110620-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.20110620-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.20110620-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Oct 17 2011 Caolán McNamara - 0.20110620-1 +- latest version + +* Wed Feb 09 2011 Fedora Release Engineering - 0.20100531-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jun 01 2010 Caolán McNamara - 0.20100531-1 +- latest version + +* Fri Jul 24 2009 Fedora Release Engineering - 0.20080628-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Jun 13 2009 Caolán McNamara - 0.20080628-1 +- initial version