<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\ProvidesFile{babel-hebrewalph.def}
         [2023/06/01 %
         Expandable definitions for Hebrew numerals]

\newcommand*\hebrewnumeral[1]{%
  \expandafter\@hebrew@numeral\expandafter{\the\numexpr#1}%
}
\newcommand*\Hebrewnumeral[1]{%
  \expandafter\@Hebrew@numeral\expandafter{\the\numexpr#1}%
}
\newcommand*\Hebrewnumeralfinal[1]{%
  \expandafter\@Hebrew@numeralfinal\expandafter{\the\numexpr#1}%
}

\newcommand*\hebrew@div@trancate[2]{%
	\ifnum\numexpr #1 - #2*\numexpr #1/#2\relax&lt;0
	\the\numexpr #1/#2 -1\relax\else\the\numexpr #1/#2\relax\fi
}
 
\newcommand*\@hebrew@@numeral[2]{%
  \ifnum#1&lt;\z@\space\xpg@warning{Illegal value (#1) for Hebrew numeral}%
  \else
    \ifnum #1&lt;1000
		\gim@nomil{#1}{#2}%
    \else
		\hebrewnumeral{\hebrew@div@trancate{#1}{1000}}×³%
        \expandafter\gim@nomil\expandafter{\the\numexpr #1 - 1000*\hebrew@div@trancate{#1}{1000}}{#2}%
    \fi
  \fi
}

\newcommand*\@hebrew@numeral[1]{\@hebrew@@numeral{#1}{0}}
\newcommand*\@Hebrew@numeral[1]{\@hebrew@@numeral{#1}{1}}
\newcommand*\@Hebrew@numeralfinal[1]{\@hebrew@@numeral{#1}{2}}

\newcommand*\hebrew@alph@zero{}
\newcommand*\gim@nomil[2]{%
  \ifcase\hebrew@div@trancate{#1}{100}  % print nothing if no hundreds
     \or ×§\ifnum #2&gt;0\ifnum #1=100 ×³\fi\fi
     \or ×¨\ifnum #2&gt;0\ifnum #1=200 ×³\fi\fi
     \or ×©\ifnum #2&gt;0\ifnum #1=300 ×³\fi\fi
     \or ×ª\ifnum #2&gt;0\ifnum #1=400 ×³\fi\fi
     \or ×ª\ifnum #2&gt;0\ifnum #1=500 ×´\fi\fi ×§%
     \or ×ª\ifnum #2&gt;0\ifnum #1=600 ×´\fi\fi ×¨%
     \or ×ª\ifnum #2&gt;0\ifnum #1=700 ×´\fi\fi ×©%
     \or ×ª\ifnum #2&gt;0\ifnum #1=800 ×´\fi\fi ×ª%
     \or ×ª×ª\ifnum #2&gt;0\ifnum #1=900 ×´\fi\fi ×§%
  \fi
  \ifnum \the\numexpr #1 - 100*\hebrew@div@trancate{#1}{100} = 16
  \ifnum #2&gt;0 ×˜×´×–\else ×˜×–\fi% tet-zayin
  \else\ifnum \the\numexpr #1 - 100*\hebrew@div@trancate{#1}{100} = 15
  \ifnum #2&gt;0  ×˜×´×•\else ×˜×•\fi% tet-vav
  \else
  \ifcase\expandafter\hebrew@div@trancate\expandafter{\the\numexpr #1 - 100*\hebrew@div@trancate{#1}{100}}{10}  % print nothing if no tens
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×™\else\ifnum #2&gt;0\ifnum #1=10 ×™×³\else ×´×™\fi\else ×™\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×›\else\ifnum #2&gt;0\ifnum #1&gt;20 ×´\fi\fi\if #22×š\else ×›\fi\ifnum #2&gt;0\ifnum #1=20 ×³\fi\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×œ\else\ifnum #2&gt;0\ifnum #1=30 ×œ×³\else ×´×œ\fi\else ×œ\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×ž\else\ifnum #2&gt;0\ifnum #1&gt;40 ×´\fi\fi\if #22×\else ×ž\fi\ifnum #2&gt;0\ifnum #1=40 ×³\fi\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×&nbsp;\else\ifnum #2&gt;0\ifnum #1&gt;50 ×´\fi\fi\if #22×Ÿ\else ×&nbsp;\fi\ifnum #2&gt;0\ifnum #1=50 ×³\fi\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×¡\else\ifnum #2&gt;0\ifnum #1=60 ×¡×³\else ×´×¡\fi\else ×¡\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×¢\else\ifnum #2&gt;0\ifnum #1=70 ×¢×³\else ×´×¢\fi\else ×¢\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×¤\else\ifnum #2&gt;0\ifnum #1&gt;80 ×´\fi\fi\if #22×£\else ×¤\fi\ifnum #2&gt;0\ifnum #1=80 ×³\fi\fi\fi
      \or \ifnum \the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}&gt;0 ×¦\else\ifnum #2&gt;0\ifnum #1&gt;90 ×´\fi\fi\if #22×¥\else ×¦\fi\ifnum #2&gt;0\ifnum #1=90 ×³\fi\fi\fi
  \fi
  \ifcase\the\numexpr #1 - 10*\hebrew@div@trancate{#1}{10}
      \hebrew@alph@zero %  empty but can be defined if desired
      \or \ifnum #2&gt;0\ifnum #1=1 ××³\else ×´×\fi\else ×\fi
      \or \ifnum #2&gt;0\ifnum #1=2 ×‘×³\else ×´×‘\fi\else ×‘\fi
      \or \ifnum #2&gt;0\ifnum #1=3 ×’×³\else ×´×’\fi\else ×’\fi
      \or \ifnum #2&gt;0\ifnum #1=4 ×“×³\else ×´×“\fi\else ×“\fi
      \or \ifnum #2&gt;0\ifnum #1=5 ×”×³\else ×´×”\fi\else ×”\fi
      \or \ifnum #2&gt;0\ifnum #1=6 ×•×³\else ×´×•\fi\else ×•\fi
      \or \ifnum #2&gt;0\ifnum #1=7 ×–×³\else ×´×–\fi\else ×–\fi
      \or \ifnum #2&gt;0\ifnum #1=8 ×—×³\else ×´×—\fi\else ×—\fi
      \or \ifnum #2&gt;0\ifnum #1=9 ×˜×³\else ×´×˜\fi\else ×˜\fi
  \fi\fi\fi
}

\newcommand*\Alphfinal[1]{\expandafter\@Alphfinal\csname c@#1\endcsname}
\newcommand*\@Alphfinal[1]{\Hebrewnumeralfinal{#1}}

\endinput
</pre></body></html>