% Hebrew control sequences.
\font\Jer=Jerus10\font\Tel=TelAv10\font\Dead=DeadS10\font\Old=OldJaf10
\def\today{\number\day\space\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or
December\fi
\space\number\year}
\footline={\phantom{\rm\today}\hfil\rm\folio\hfil\rm\today}
%
\let\nb=\nobreak
\let\q\quad  \let\qq\qquad
\def\bn{\bigbreak\noindent} \def\mn{\medbreak\noindent} \def\sn{\smallbreak\noindent}
\def\bs{{\char'134}}
\def\bs{{\char'134}}  \def\ec{{\char"21}}
\def\dol{{\char"24}}  \def\ddol{{\dol\dol}}
\def\lb{{\char"7B}} \def\rb{{\char"7D}}
\def\sb{{\char"5F}} \def\sp{{\char"5E}}
\def\hash{{\char"23}}
\font\sc=cmcsc10
\font\rmb=cmbx12
\font\ss=cmss10 at 11pt

\centerline{\rmb \hfill Hebrew control sequences of \TeX\  and
LaTeX  (OLD!!).  \hfill\rm\today} \vskip0.8truecm \rm To use in
UNIX tex, type~~~~~~ \tt\bs input heb\_macros~~~~~\rm or~~~~
\tt\bs input heb\_macros\_newcode

\rm To use in DOS PC tex, type~~~ \tt\bs input heb\_pc

To use in UNIX latex, type~~
\tt\bs documentstyle[hebrew,hebcal...]\lb style..\rb~~~~~or

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\tt\bs documentstyle[hebrew\_newcode,hebcal\_newcode...]\lb style..\rb

To use in DOS PC latex, type~~~~~\tt\bs documentstyle[hebrew\_p,hebcal\_p...]\lb style.. \rb
\bigskip
\nopagenumbers
\def\undertext#1{$\underline{\hbox{#1}}$}

{\rmb Hebrew font names:}

\settabs\+\indent&\hskip2truecm&\hskip 4truecm&\hskip 3cm&\cr
\+&UNIX&UNIX Newcode&DOS PC&Font looks like --\cr
\+&Jerusalem&Jerusalem\_newcode&Jer\_pc&{\Jer cba`}\cr
\+&TelAviv&TelAviv\_newcode&Tel\_pc&{\Tel cba`}\cr
\+&DeadSea&DeadSea\_newcode&Dead\_pc&{\Dead cba`}\cr
\+&OldJaffa&OldJaffa\_newcode&Old\_pc&{\Old cba`}\cr
\bigskip

{\rmb Control Sequences:}

\settabs\+\indent&\tt\hskip5.5truecm&\cr
\+&\tt\bs sethebrew&Enter hebrew mode\cr
\+&\tt\bs unsethebrew&Go out of Hebrew mode\cr
\+&\tt\bs hebrewpar&Starting one hebrew paragraph with indentation\cr
\+&\tt\bs hebrewlines&Starting one hebrew paragraph without indentation\cr
\+&\cr
\+&\tt\bs L\lb\dots string\dots \rb&English string within a Hebrew environment\cr
\+&\tt\bs R\lb\dots{\Jer zixciq}\dots\rb &Hebrew string within an English environment\cr
\+&\cr
\+&\tt\lb\dots\rb{\Jer ybcd}\tt\bs \ or \tt\bs hadgesh\lb\dots\rb&Making bold letters - Poor man's bold --- see The TeXbook, page 386\cr
\+&\cr
\+&{\Jer lecbswn}\tt\bs \ or \tt\bs makafgadol&Like the regular -\thinspace -  producing --~, which doesn't work in Hebrew\cr
\+&{\Jer wprswn}\tt\bs \ or \tt\bs makafanak&Like the regular -\thinspace -\thinspace -  producing ---~, which doesn't work in Hebrew\cr
\+&{\Jer yxb}\tt\bs \ or \tt\bs geresh&Like the regular `~, which doesn't work in Hebrew\cr
\+&{\Jer yxbgzt}\tt\bs \ or \tt\bs opengeresh&\char39\cr
\+&{\Jer yxbxebq}\tt\bs \ or \tt\bs closegeresh&`\cr
\+&{\Jer hehivgzt}\tt\bs \ or \tt\bs openquote&Like the regular '', which doesn't work in Hebrew\cr
\+&{\Jer hehivxebq}\tt\bs \ or \tt\bs closequote&Like the regular ``, which doesn't work in Hebrew\cr
\+&{\Jer dwqit}\tt\bs \ or \tt\bs piska&Like the regular \tt\bs item, \rm  modified for Hebrew ~~~~~~~~~~~Not relevant to latex.\cr
\+&{\Jer dwqitdwqit}\tt\bs \ or\  \tt\bs piskapiska&Like the regular \tt\bs itemitem, \rm modified for Hebrew~~~~~Not relevant to latex.\cr
\+&\cr
\+&{\Jer meid}\tt\bs \ or \tt\bs hebday&Today's regular date in Hebrew\cr
\+&\tt\bs Hebrewtoday&Hebrew date in Hebrew~~~~~~~~~~~~~~~~~~~~~~~~Included in hebcal.sty\cr

\+&\tt\bs Hebrewdate~~~~(*)&Converting a Georgian date to a Hebrew
date~~Included in hebcal.sty\cr \+&\cr \+&{\Jer dlecbdvitw}\tt\bs
&Like the regular \tt\bs bigskip\cr \+&{\Jer zipepiadvitw}\tt\bs
&Like the regular \tt\bs medskip\cr \+&{\Jer dphwdvitw}\tt\bs
&Like the regular \tt\bs smallskip\cr \+&{\Jer oinidxey}\tt\bs
&Like the regular \tt\bs rightline\cr \+&{\Jer l`nydxey}\tt\bs
&Like the regular \tt\bs leftline\cr \+&{\Jer fkxn}\tt\bs &Like
the regular \tt\bs centerline\cr \+&\tt\bs undertext\lb text \Jer
hqwh\rb&Produces \undertext{text \Jer hqwh}\cr
%

\vskip1mm\hrule
(*)
Usage:
\def\bs{$\backslash$}

\bs newcount\bs day~~~ \bs newcount\bs month~~~ \bs newcount\bs year

\bs day=12 ~~~ \bs month=10 ~~~ \bs year=1884

\bs Hebrewdate$\{$\bs day$\}\{$\bs month$\}\{$\bs year$\}$

~~~~Result:

\newcount\d \newcount\m \newcount\hy
\d=12 \m=10 \hy=1884
{   }
\input heb_macros \sethebrew \input hebcal.tex

\sethebrew
\Hebrewdate{\d}{\m}{\hy}

\bye
