On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen
Yes, only I don't need that complex. I mean \chinesenumber{123} will give "one hundred and twenty-three" but all I want is "one two three." Besides, I don't like to copy such long codes since I really don't want to load font-chi.tex which gives weird spacing problems while typesetting Chinese along with English. Anyway, I'd love to learn something rather than to use something.
Thanks.
\def\dododozhnumber#1% {\ifcase#1 a\or b\or c\or d\or e\or f\or g\or i\or h\or i\fi \dozhnumber} \def\zhnumber#1% {\dozhnumber#1\endzhnumber} \def\endzhnumber{\endzhnumber} \def\dozhnumber {\futurelet\next\dodozhnumber} \def\dodozhnumber {\ifx\next\endzhnumber \expandafter\gobbleoneargument \else \expandafter\dododozhnumber \fi} \starttext \zhnumber{123} \stoptext Wolfgang