diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /language/hyphenation/fahyph |
Initial commit
Diffstat (limited to 'language/hyphenation/fahyph')
-rw-r--r-- | language/hyphenation/fahyph/README | 48 | ||||
-rw-r--r-- | language/hyphenation/fahyph/fahyph.tex | 33 | ||||
-rw-r--r-- | language/hyphenation/fahyph/loadhyph-fa.tex | 8 |
3 files changed, 89 insertions, 0 deletions
diff --git a/language/hyphenation/fahyph/README b/language/hyphenation/fahyph/README new file mode 100644 index 0000000000..adc8a58ef7 --- /dev/null +++ b/language/hyphenation/fahyph/README @@ -0,0 +1,48 @@ +fahyph.tex + +Unicode hyphenation patterns for Persian (this file is a part of XePersian package). + +Created: November 19th, 2008 +First release: November 19th, 2008 +Second release: April 4th, 2013 +Revised: April 4th, 2013 +Version: 0.002 + +Created by Persian TeX Group. +persian-tex@tug.org + +These patterns were designed for use with XeTeX, a Unicode variant of TeX. After being +compiled into a format, these patterns can be activated with the command: + + \language=\persian + +INSTRUCTIONS FOR ACTIVATING PERSIAN HYPHENATION +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +ASSUMPTION: You have installed TeXLive 2012. + + 1. Place fahyph.tex and loadhyph-fa.tex at + texmf-local/tex/generic/hyphen/persian + + 2. Go to texmf-var/tex/generic/config/ directory and open language.dat file. + + 3. Open language.dat file, go to line 83 and change the line to + farsi loadhyph-fa.tex + + 4. Generate the required formats by running + fmtutil --byfmt xelatex + + + +If you want to report any bugs or typos and corrections in the documentation, +or ask for any new features, or suggest any improvements, or ask any questions +about the package, then please do not send any direct emails to us; we will not +answer any direct emails. Instead please use the issue tracker: + <https://github.com/persian-tex/fahyph/issues> +In doing so, please always explain your issue well enough, always include +a minimal working examples showing the issue, and always choose the appropriate +label for your query (i.e. if you are reporting any bugs, choose `bug' label). + +These hyphenation patterns are under the LaTeX Project Public License. + + diff --git a/language/hyphenation/fahyph/fahyph.tex b/language/hyphenation/fahyph/fahyph.tex new file mode 100644 index 0000000000..e0a7532549 --- /dev/null +++ b/language/hyphenation/fahyph/fahyph.tex @@ -0,0 +1,33 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% File name: fahyph.tex +% +% Unicode hyphenation patterns for Persian (This file is a part of XePersian package). +% +% Created: November 19th, 2008 +% First release: November 19th, 2008 +% Second release: April 4th, 2013 +% Revised: April 4th, 2013 +% Version: 0.002 +% +% Created by Persian TeX Group. +% persian-tex@tug.org +% These patterns were designed for use with XeTeX, a Unicode variant of TeX. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\message{Persian hyphenation patterns `fahyph.tex' (v0.002, this file is a part of XePersian package) <2013/04/04>} +% 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 +55 +} +\endgroup diff --git a/language/hyphenation/fahyph/loadhyph-fa.tex b/language/hyphenation/fahyph/loadhyph-fa.tex new file mode 100644 index 0000000000..4a140e393d --- /dev/null +++ b/language/hyphenation/fahyph/loadhyph-fa.tex @@ -0,0 +1,8 @@ +\ifx\addlanguage\undefined + \errmessage{This file can be used only in babelised formats!} +\fi +\expandafter\ifx\csname XeTeXrevision\endcsname\relax +\input zerohyph.tex +\else +\input fahyph.tex +\fi |