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

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

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

\a@ident {hebtex.sty} {3.03} {23.10.94}

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

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

\let \setheb \sethebrew
\all@wcmd \sethebrew 	\all@wcmd \setheb

\def \set@hebfont {\setarabfont \heb@font }

\def \heb@font {\protect \pheb }

%\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
\ifx \LaTeX \undefined \else
\input hefonts.sty
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newif \ifhedc@de 	\hedc@defalse

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

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