\relax 

TeX has a problem when there are tow many different heights, widths,
depths, etc.  The instructions in this file will standardize some of
the glyph heights and depths.

This file, newdim.mtx, is part of the Makor2 system for typesetting
Hebrew with the Omega superset of TeX.

---Alan Hoenig
   ahoenig@suffolk.lib.ny.us

   Jul-Aug, 2002 

\metrics

\setcommand\Glyph#1{\ifisglyph{#1}\then
	\resetglyph{#1}
		\glyph{#1}{1000}
		\resetheight{\height{\heightref}}
		\resetdepth{\depth{\depthref}}
	\endsetglyph\fi}
\setcommand\GlyphNewHeight#1{\ifisglyph{#1}\then
	\resetglyph{#1}
		\glyph{#1}{1000}
		\xheight
	\endsetglyph\fi}
\setcommand\Glyphs#1{\Glyph{#1}\Glyph{#1dagesh}}
\setcommand\xheight{\resetheight{\height{bet}}}
\setcommand\nulldepth{\resetdepth{0}}	

\resetint{fontdimen(5)}{\height{bet}} % x-height

\def\heightref{bet}
\GlyphNewHeight{closedqof}
\GlyphNewHeight{finalkhaf}
\GlyphNewHeight{finalkhafsheva}
\GlyphNewHeight{finalkhafshevaalt}
\GlyphNewHeight{finalkhafqamats}
\GlyphNewHeight{finalkhafqamatsalt}
\GlyphNewHeight{finalkaf}
\GlyphNewHeight{finalkafqamats}
\GlyphNewHeight{finalkafsheva}
\GlyphNewHeight{finalnun}
\GlyphNewHeight{finalnunqamats}
\GlyphNewHeight{finalphe}
\GlyphNewHeight{finalpe}
\GlyphNewHeight{finaltsadi}
\GlyphNewHeight{finaltsadidagesh}

\def\heightref{bet}\def\depthref{bet}
\Glyphs{alef}
\Glyphs{gimel}
\Glyphs{dalet}
\Glyphs{he}
\Glyphs{zayin}
\Glyphs{het}
\Glyphs{tet}
\Glyphs{yod}
\Glyphs{finalmem}
\Glyphs{mem}
\Glyphs{finalnun}
\Glyphs{nun}
\Glyphs{samekh}
\Glyphs{ayin}
\Glyphs{tsadi}
\Glyphs{qof}
\Glyphs{resh}
\Glyphs{shin}
\Glyphs{shinrightdot}
\Glyphs{sinleftdot}
\Glyphs{alefsubdot}
\Glyph{dagesh}
\Glyph{vet}
\Glyph{vav}
\Glyph{shuruk}
\Glyph{holam}
\Glyph{kaf}
\Glyph{khaf}
\Glyph{phe}
\Glyph{pe}
\Glyph{sav}
\Glyph{tav}
\Glyph{tsveyvovn}
\Glyph{vavyod}
\Glyph{tsveyyudn}
\Glyph{yudhiriq}
\Glyph{yudhiriqyud}
\Glyph{patahtsveyyudn}
\Glyph{reflectednun}
\Glyph{brokenholam}
\Glyph{gimelbar}
\Glyph{fey}
\Glyph{veyz}
\Glyph{genericbox}

\def\heightref{lamed}\def\depthref{bet}
\Glyph{aleflamedvar}
\Glyph{aleflamed}
\Glyph{lamedholam}
\Glyph{lameddageshholam}
\Glyphs{bentlamed}
\Glyph{bentlamedholam}
\Glyph{bentlameddagesh}
\Glyph{bentlameddageshholam}
\Glyph{upperdot}
\Glyph{holamdot}
\Glyph{parenleft}
\Glyph{parenright}
\Glyph{braceleft}
\Glyph{braceright}
\Glyph{bracketleft}
\Glyph{bracketright}

\def\heightref{specialone}
\Glyph{specialzero}
\Glyph{specialtwo}
\Glyph{specialthree}
\Glyph{specialfour}
\Glyph{specialfive}
\Glyph{specialsix}
\Glyph{specialseven}
\Glyph{specialeight}
\Glyph{specialnine}
\Glyph{specialten}
\Glyph{specialeleven}
\Glyph{specialtwelve}
\Glyph{specialtirteen}
\Glyph{specialfourteen}
\Glyph{specialfifteen}
\Glyph{specialsixteen}

\def\heightref{quotedbl}
\Glyph{nullchar}
\Glyph{exclam}
\Glyph{numbersign}
\Glyph{dollar}
\Glyph{percent}
\Glyph{ampersand}
\Glyph{quoteright}
\Glyph{asterisk}
\Glyph{plus}
\Glyph{slash}
\Glyph{backslash}
\Glyph{colon}
\Glyph{semicolon}
\Glyph{less}
\Glyph{equal}
\Glyph{greater}
\Glyph{at}
\Glyph{paseq}
\Glyph{circumflex}
\Glyph{newshekel}
\Glyph{question}
\Glyph{interrobang}

\def\heightref{zero}\def\depthref{zero}
\Glyph{one}
\Glyph{two}
\Glyph{three}
\Glyph{four}
\Glyph{five}
\Glyph{six}
\Glyph{seven}
\Glyph{eight}
\Glyph{nine}

\def\heightref{qamats}\def\depthref{qamats}
\Glyph{hatafpatah}
\Glyph{hatafsegol}
\Glyph{hatafqamats}
\Glyph{hiriq}
\Glyph{tsere}
\Glyph{segol}
\Glyph{patah}
\Glyph{sheva}
\Glyph{qubuts}
\Glyph{meteg}
\Glyph{meteghiriq}
\Glyph{metegsheva}
\Glyph{metegpatah}
\Glyph{metegsegol}
\Glyph{metegqamats}
\Glyph{metegtsere}

\def\heightref{etnahta}\def\depthref{etnahta} % lower trope
\Glyph{tipeha}
\Glyph{yetiv}
\Glyph{tevir}
\Glyph{munah}
\Glyph{mahapakh}
\Glyph{merkha}
\Glyph{merhkakefula}
\Glyph{darga}
\Glyph{yerahbenyomo}
\Glyph{dehi}

\def\heightref{zinor}\def\depthref{zinor} % upper trope
\Glyph{accentsegol}
\Glyph{shalshelet}
\Glyph{zaqefqatan}
\Glyph{zaqefgadol}
\Glyph{revia}
\Glyph{zarqa}
\Glyph{pashta}
\Glyph{geresh}
\Glyph{gereshmuqdam}
\Glyph{gershayim}
\Glyph{qarneypara}
\Glyph{telishagedola}
\Glyph{pazer}
\Glyph{qadma}
\Glyph{ole}
\Glyph{iluy}
\Glyph{masoracircle}

\endmetrics