summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cjhebrew
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:53:05 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:53:05 +0000
commitd6b13fbc6d8704c91d60823a8ba0860834a37b2c (patch)
tree04d3d17a52222bbbc6ed0c31ae798dde8f3ceed6 /Master/texmf-dist/tex/latex/cjhebrew
parent682e83084053196fbef769d722d10e2076d362c6 (diff)
cjhebrew
git-svn-id: svn://tug.org/texlive/trunk@760 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cjhebrew')
-rw-r--r--Master/texmf-dist/tex/latex/cjhebrew/cjhebrew.sty46
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cjhebrew/cjhebrew.sty b/Master/texmf-dist/tex/latex/cjhebrew/cjhebrew.sty
new file mode 100644
index 00000000000..57f459f7b21
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cjhebrew/cjhebrew.sty
@@ -0,0 +1,46 @@
+% This file is part of the cjhebrew package
+%
+% cjhebrew is subject to the LaTeX Project Public License (LPPL).
+% A copy of the LPPL can be found in lppl.txt.
+% For the most recent version of this license have a look at
+%
+% http://www.latex-project.org/lppl.txt
+%
+
+\ProvidesPackage{cjhebrew}
+ [2004/02/18 v. 0.1 cjhebrew Hebrew Typesetting System]
+
+\DeclareFontFamily{U}{cjheb}{}
+
+\DeclareFontShape{U}{cjheb}{m}{n}{%
+ <-7>sfixed*[7]cjheblsm%
+ <7-11>cjhblsm%
+ <11->cjhbltx%
+ }%
+ {}
+
+\newcommand{\cjhebfamily}{\fontencoding{U}\fontfamily{cjheb}\selectfont}
+
+\DeclareTextFontCommand{\textcjheb}{\cjhebfamily}
+
+\chardef\endofword=33
+\chardef\zeronojoin=124
+\chardef\dottedcircle=203
+
+\@ifundefined{eTeXrevision}%
+ {%
+ \PackageWarningNoLine{cjhebrew}{\MessageBreak
+ Hebrew text will be typeset from left to right!\MessageBreak
+ You really should use e-TeX}
+ \newcommand{\cjRL}[1]{\bgroup\textcjheb{#1\endofword}\egroup}
+ \newcommand{\cjLR}[1]{\bgroup\endofword#1\egroup}
+ \newenvironment{cjhebrew}{\cjhebfamily}{}
+ }%
+ {%
+ \TeXXeTstate=1
+ \newcommand{\cjRL}[1]{\bgroup\beginR\textcjheb{#1\endofword}\endR\egroup}
+ \newcommand{\cjLR}[1]{\bgroup\beginL\endofword#1\endL\egroup}
+ \newenvironment{cjhebrew}{\parindent=0pt\cjhebfamily\everypar{\beginR}}{}
+ }
+
+\def\<#1>{\cjRL{#1}}