%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% hebtex.sty
% ArabTeX
% Modifications for Hebrew mode
% 13.07.1994
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Klaus Lagally
%     Institut fuer Informatik
%     Universitaet Stuttgart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifx \hebatcode \undefined \else \xpa \endinput
\fi

\chardef \hebatcode = \catcode`\@            \catcode`\@ = 11

\version = {0.04}  		\datum = {13.07.94}
\message {\the\version }	\message {(\the\datum )}

\edef \arabtexconfig {\arabtexconfig 
hebtex.sty \the\version \space (\the\datum) }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def \sethebrew {% switch to hebrew writing
\all@false \iz@fetfalse \h@mzatrue \yahd@tstrue  \k@fsfalse 
\heb@output \sethebfont }

\def \sethebfont {\setarabfont \hclassic }

\all@wcmd \sethebrew 	\all@wcmd \sethebfont

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def \heb@output {\ifn@arab \else % switch to Hebrew output conventions
\def@hebskel % define font encoding for Hebrew
\def@hebchars % define character macros for Hebrew
\def@hebaccent % define accent macros for Hebrew
\def@hebvoc % define vowel parsing routines for Hebrew
\def@hebstrut % define strut for Hebrew
\tr@heb		\let \a@write \heb@write 	\let \a@write@hook \relax
\n@arabtrue \fi }

\let \tr@heb \relax	% if hetrans.sty is not loaded

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def \def@hebstrut {\def \arab@strut 
{\vrule height2.8ex depth0.7ex width0pt \relax }}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input hewrite.sty
\input heparse.sty
\input hescan.sty
%\input hetrans.sty
\input hefonts.sty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newif \ifhedc@de 	\hedc@defalse

\def \document {% version for Hebrew
\a@document \sethebrew \setcode {newcode}\novocalize \hedc@detrue }

\catcode`\@ = \hebatcode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
