0

Can someone explain this piece of Unicode to me at some detail? It is supposed to print the numbers 1-9 in Babylonian notation, but I do not follow the carrets ^ and the syntax

^^^^^^0133fa\or

\usepackage{fontspec}
\newfontfamily\hg{Segoe UI Historic}

\def\hgunits#1{\ifcase#1\relax\or
^^^^^^0133fa\or
^^^^^^0133fb\or
^^^^^^0133fc\or
^^^^^^0133fd\or
^^^^^^0133fe\or
^^^^^^0133ff\or
^^^^^^013400\or
^^^^^^013401\or
^^^^^^013402\else
?\fi}


\hg\hgunits{3}
  • in classic tex ^^1f adds the character with code hex 1f luatex and xetex extend that to allow 4 or 6 ^ followed by 4 or 6 hex digits which adds the character with that code (this must be a duplicate) – David Carlisle Oct 8 at 19:18