[XeTeX] Is there the primitive \XeTeXcharsclass to set many chars' class simultaneously?
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Oct 21 08:34:13 CEST 2008
On Tue, Oct 21, 2008 at 3:07 AM, SONG Zhiwei <songzw at ustc.edu.cn> wrote:
> I use the primitive \XeTeXcharclass to set the chars "1000-"EFFF to
> the class 4 in a macro like following:
>
> \def\@setclass[#1-#2]#3{%
> \newcount\tmp
> \tmp=#1
> \XeTeXcharclass\tmp=#3
> \loop\ifnum\tmp<#2
> \advance\tmp by 1
> \XeTeXcharclass\tmp=#3
> \repeat}
> \@setclass["1000-"EFFF]4
>
> But the xelatex reports:
>
> ! TeX capacity exceeded, sorry [save size=50000].
>
> Is there a primitive to set the class for a unicode range
> simultaneously, i.e. \XeTeXcharsclass?
\newcount\tmp
\def\setclass[#1-#2]#3{%
\tmp=#1
\XeTeXcharclass\tmp=#3
\loop\ifnum\tmp<#2
\advance\tmp by 1
\XeTeXcharclass\tmp=#3
\repeat}
\setclass["1000-"EFFF]4
Regards,
Wolfgang
More information about the XeTeX
mailing list