I'm looking for a way to use enumerate from package enumitem with a custom alphabet. For starting, I just wanted to use letters instead of numbers, so I renewed the command that outputs item labels. I did:
\renewcommand{\labelenumi}{\alph{enumi}}
before \begin{enumerate}. But soon after I realised that I need letters č, š and ž, and that my alphabet has 25 characters, so I decided to create a command that would output a letter corresponding to a number. I did:
\newcommand*{\xslalph}[1]{%
\ifcase#1\or a\or b\or c\or \v{c}\or d\or e\or f\or g\or h\or i%
\or j\or k\or l\or m\or n\or o\or p\or r\or s\or \v{s}%
\or t\or u\or v\or z\or \v{z}%
\else\@ctrerr\fi
}
That would work if I wanted to get a character from this alphabet in the middle of text, for example in a sentence, I'd write \xslalph{3} and I'd get "c". But this didn't work in the above situation. Both \renewcommand{\labelenumi}{\xslalph{enumi}}, \renewcommand{\labelenumi}{\xslalph{\value{enumi}}} and \renewcommand{\labelenumi}{\xslalph{\theenumi}} would output "Missing number, treated as zero. \item" in the error log and no text would appear as the label of the item.
What would be the appropriate way to "pass" some number into my \xslalph command from the enumi counter? I'm sorry for misunderstanding, but I come from the world of C-like languages and am not used to LaTeX.

\@xslalph. So you should replacea,b,c,\vc{c}, etc. with the letters of the alphabet that you want to use, placed in correct order. – Vincent May 21 '20 at 14:07