1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% heparse.sty
% ArabTeX
% Modifications for Hebrew mode
% 19.07.1999
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Klaus Lagally
% Institut fuer Informatik
% Universitaet Stuttgart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\a@ident {heparse.sty} {3.09 Hebrew parser routines} {19.07.1999}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% dynamic definitions for Hebrew
{\catcode `\^ 7 \catcode `\ =9 \catcode `\^^M=9 \catcode `\^^I=9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\gdef \def@hebvoc {% define vowel parsing routines for Hebrew
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%% short vowels
\def \sv@a {% a: patach
\sv@patach }
\def \sv@e {% e: segol
\sv@segol }
\def \sv@i {% i: chireq breve
\sv@chireq }
\def \sv@o {% o: qames-chatuph
\sv@qamesqatuf }
\def \sv@u {% u: qibbus
\sv@qibbus }
%%%%%%%%%%%%%%%%%%%%%%%%%% long vowels
\def \sv@A {% A: qames
\sv@qames }
\def \sv@E {% E: sere yod
\sv@serelongum }
\def \sv@I {% I: chireq yod
\sv@chireqlongum }
\def \sv@O {% O: cholem waw
\sv@cholemlongum }
\def \sv@U {% U: shureq
\sv@shureq }
\def \sv@Y {% _A: qames aleph
\sv@qameslongum }
%%%%%%%%%%%%%%%%%%%%%%%%%% long vowels, defective
\sv@def \a@a {% _a: qames aleph ?
\sv@qames }
\sv@def \a@e {% .i: shewa
\sv@shewa }
\sv@def \a@i {% _i: chireq yod ?
\sv@chireq }
\sv@def \a@o {% _o: cholem breve
\sv@cholem }
\sv@def \a@u {% _u: shureq ?
\sv@shureq }
%%%%%%%%%%%%%%%%%%%%%%%%%% special vowels
\sv@def \a@A {% .a:
\sv@chatef@patach }
\sv@def \a@E {% _e: sere breve
\sv@sere }
\sv@def \a@I {% .e:
\sv@chatef@segol }
\sv@def \a@O {% .o:
\sv@chatef@qames }
\sv@def \a@U {% .u: no vowel mark
\put@syl \syl@con }
\sv@def \a@Za {% sin dot
\sv@sindot }
\sv@def \a@Ze {% shin dot
\sv@shindot }
\sv@def \a@Zi {% center dot
\sv@rdot }
%%%%%%%%%%%%%%%%%%%%%%%%%% hamza handling
\def \syl@hamza {% non-initial hamza, context #1'
\put@con a\syl@voctest }
\let \syl@hamzabeg \syl@hamza
\def \syl@test@voc ##1{% vowel or shewa ?
\ifch@lem \ch@lemfalse \add@hamza \fi % rdot
\if\is@vowel ##1\def \next {\syl@voc ##1}\else % test for vowel
\ifx ##1|\add@madda \def \next {\syl@shewa }% % meteg
\else \def \next {\syl@shewa ##1}% non-vowel follows
\fi\fi \next }
\def \add@wasla {\ifv@c \last@voc \c@wasla \fi }
\def \check@high ##1{\relax }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}% end of dynamic definitions for Hebrew
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% static definitions for Hebrew
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif \ifp@tach \newif \ifch@lem
\def \sv@patach #1{% a: patach
\test@meteg #1\add@fatha \put@syl \next }
\def \sv@segol #1{% e: segol
\test@meteg #1\add@zwarakay \put@syl \next }
\def \sv@chireq #1{% i: chireq
\test@meteg #1\add@kasra \put@syl \next }
\def \sv@qamesqatuf #1{% o: qames qatuf
\test@meteg #1\add@ammad \put@syl \next }
\def \sv@qibbus #1{% u: qibbus
\test@meteg #1\add@damma \put@syl \next }
\def \sv@qames #1{% long a: qames
\test@meteg #1\add@fathaspec \put@syl \next }
\def \sv@qamesaleph #1{% long a: qames longum
\test@meteg #1\add@fathaspec \put@syl \put@con a\put@syl \next }
\def \sv@sere #1{% long e: sere breve
\test@meteg #1\add@kasraspec \put@syl \next }
\def \sv@serelongum #1{% long e: sere yod
\test@meteg #1\add@kasraspec \put@syl \put@con y\put@syl \next }
\def \sv@chireq #1{% long i: chireq breve
\test@meteg #1\add@kasra \put@syl \next }
\def \sv@chireqlongum #1{% long i: chireq yod
\test@meteg #1\add@kasra \put@syl \put@con y\put@syl \next }
\def \sv@cholemlongum #1{% long o: cholem waw
\put@syl \put@con w\test@meteg #1\add@hamza \put@syl \next } % rdot
\def \sv@cholemlongum #1{% long o: cholem waw
\test@meteg #1\put@syl \put@con w\add@hamza \put@syl \next } % rdot
\def \sv@shureq #1{% long u: shureq
\put@syl \put@con w\test@meteg #1\add@shadda \put@syl \next } % sureq
\def \sv@cholem #1{% short o: cholem breve
\ifx #1|\add@madda \def \next {\syl@con }% % meteg
\else \def \next {\syl@con #1}%
\fi
\xpa\ifx \the\last@con \a@s \else
\case #1\of
{ \a@s a A {\ch@lemtrue }
x {}
\default {\add@wasla } % ldot
}\endcase
\fi \put@syl \next }
\def \sv@cholem #1{% short o: cholem breve
\test@meteg #1% meteg or patach furtivum?
\xpa\ifx \the\last@con \a@s \else
\case #1\of
{ \a@s a A Q{\ch@lemtrue }
% {\a@s a A {\ch@lemtrue }
\default {\add@wasla }}
\endcase
\fi \put@syl \next }
\def \sv@chatef@patach #1{%
\test@meteg #1\add@fathatan \put@syl \next } % chatef patach
\def \sv@chatef@segol #1{%
\test@meteg #1\add@kasratan \put@syl \next } % chatef segol
\def \sv@chatef@qames #1{%
\test@meteg #1\add@dammatan \put@syl \next } % chatef qames
\def \sv@shewa {% put shewa unconditionally
\ifv@c \last@voc \c@sukun \fi \put@syl \syl@con }
\def \syl@shewa #1{% put shewa if appropriate
\ifp@tach \add@patachf \p@tachfalse \else
\xpa\ifx \the\last@con B\else
\ifx #1<\add@shewa \else
\ifcat \nxp #1<\add@shewa \else
\add@sukun % shewa
\fi\fi\fi\fi \put@syl \syl@con #1}
\def \add@shewa {% shewa on final kaf
\xpa\case \the\last@con \of
{ k R {\last@voc \c@sukun }}
\endcase }
\def \add@patachf {\ifv@c \last@voc 13 \fi }
\def \test@meteg #1{\def \next {\test@cont #1}% besetzt \next fuer aussen !!!
\ifx #1|\def \next {\test@cont }\add@madda \else % meteg
\ifx #1\a@A\def \next {\test@cont }\p@tachtrue % patach furtivum
\fi\fi }
\def \test@cont #1{% vowel contact? put dummy
\if\is@vowel #1\def \next {\syl@con N#1}\else
\def \next {\syl@con #1}\fi \next }
\def \sv@sindot {% sin dot
%\advance \last@mod 10 \put@syl \syl@con }
\advance \last@mod 10 \syl@test@voc }
\def \sv@shindot {% shin dot
\advance \last@mod 20 \syl@test@voc }
\def \sv@rdot {% center dot
\advance \last@mod 40 \syl@test@voc }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
|