diff --git a/.cvsignore b/.cvsignore index e69de29..2e6bdbc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +fahyph.zip diff --git a/hyphen-fa-cleantex.patch b/hyphen-fa-cleantex.patch new file mode 100644 index 0000000..57bb45f --- /dev/null +++ b/hyphen-fa-cleantex.patch @@ -0,0 +1,30 @@ +--- fahyph.orig/fahyph.tex 2009-03-18 11:47:15.000000000 +0000 ++++ fahyph/fahyph.tex 2009-03-18 11:47:35.000000000 +0000 +@@ -14,19 +14,19 @@ + % These patterns were designed for use with XeTeX, a Unicode variant of TeX. + % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-\message{Persian hyphenation patterns `fahyph.tex' (v0.001, this file is a part of XePersian package) <2008/19/15>} ++ + % Set \lccode +-\global\lccode"200C="200C %ZERO WIDTH NON-JOINER ++ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Allocate a \language code +-\newlanguage\persian ++ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Patterns. +-\begingroup +-\language\persian +-\patterns{ ++ ++ ++ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %Break on either side of ZWNJ + 5‌5 +-} +-\endgroup ++ ++ diff --git a/hyphen-fa.spec b/hyphen-fa.spec new file mode 100644 index 0000000..95a290e --- /dev/null +++ b/hyphen-fa.spec @@ -0,0 +1,42 @@ +Name: hyphen-fa +Summary: Farsi hyphenation rules +%define upstreamid 20081119 +Version: 0.%{upstreamid} +Release: 1%{?dist} +Source: http://www.ctan.org/get/language/hyphenation/fahyph.zip +Group: Applications/Text +URL: http://www.ctan.org/tex-archive/help/Catalogue/entries/fahyph.html +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LPPL +BuildArch: noarch +BuildRequires: hyphen-devel +Requires: hyphen +Patch0: hyphen-fa-cleantex.patch + +%description +Farsi hyphenation rules. + +%prep +%setup -q -n fahyph +%patch0 -p1 -b .clean + +%build +substrings.pl fahyph.tex hyph_fa_IR.dic UTF-8 +chmod -x * + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p hyph_fa_IR.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README +%{_datadir}/hyphen/* + +%changelog +* Wed Mar 18 2009 Caolan McNamara - 0.20081119-1 +- initial version diff --git a/import.log b/import.log new file mode 100644 index 0000000..6836935 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +hyphen-fa-0_20081119-1_fc10:HEAD:hyphen-fa-0.20081119-1.fc10.src.rpm:1237537924 diff --git a/sources b/sources index e69de29..6703f8c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +833571ff4b9b3e20dd2c7e2e97860205 fahyph.zip