alphalph defines three methods for continuing a set of symbols if you hit the end.
alphcontinues like so: a,b,c…z,aa,ab,ac…multcontinues like so: a,b,c…z,aa,bb,cc…wrapcontinues like so: a,b,c…z,a,b,c…
I'd like something that works like these, except that it continues as follows:
- a,b,c…z,za,zb,zc…zy,zz,zza…
This looks weird for letters, obviously. But if you were defining something that takes a number as input and outputs that number of dots, say, then it makes sense. The actual use case is the following: I want to define something that takes a counter as input and outputs that number represented by dice (using epsdice). At the moment, I just explicitly define the number function like so:
\newcommand*{\dicecount}[1]{%
\expandafter\@dicecount\csname c@#1\endcsname%
}
\newcommand*{\@dicecount}[1]{%
\ifcase#1\or\epsdice{1}\or\epsdice{2}\or\epsdice{3}%
\or\epsdice{4}\or\epsdice{5}\or\epsdice{6}%
\or\epsdice{3}\epsdice{4}%
\or\epsdice{6}\epsdice{2}%
\or\epsdice{5}\epsdice{4}%
\or\epsdice{5}\epsdice{5}%
\or\epsdice{6}\epsdice{5}%
\or\epsdice{6}\epsdice{6}%
\else\@ctrerr\fi%
}
(Note I added some randomness here, but I'd settle for a case where it just outputs a bunch of sixes and then whatever. Bonus points if you can build in this pseudorandomness)
I tried looking at the code of alphalph, but I'm not at the stage where I can understand that. But I guess for the "one shot" case, patching alphalph is probably not what I want, and there's a simpler way of just testing whether a number is bigger than 6, adding a die if it is, and so on…

alphobey lexical order by prepending a suitable number of "zeroes". This is how we make normal numbers obey lexical order: 01,02,03… – Seamus Dec 07 '11 at 20:08