vincentb1 / fmtcount

Source for LaTeX fmtcount package
11 stars 5 forks source link

Buggy \Numberstringnum{51} in German #6

Closed UweZiegenhagen closed 10 years ago

UweZiegenhagen commented 10 years ago

Unfortunately the following code generates a false alphabetical translation. Whenever "1" is used in numbers larger 20, it is spelt as "ein" not as "eins".

\documentclass[ngerman]{article} \usepackage{babel} \usepackage[utf8]{inputenc} \usepackage{fmtcount}

\begin{document}

\Numberstringnum{51} generates ''Einsundfünfzig'' but it should be ''Einundfünfzig''

\end{document}

vincentb1 commented 10 years ago

Is that the same problem with 71 that gives einsundsiebzig or 91 that gives einsundneunzig ?

In a nutshell is that just a matter of replacing "eins" by "ein" in all numbers of the type nnnnx1, where nnnn can be any number of digits, and x >= 2

Sorry for not speaking German so well.

nlct commented 10 years ago

I've fixed \@@unitstringgerman in the source so that it has "ein" instead of "eins". This shouldn't affect numbers like 1 or 101 as they don't use that macro. This bug should be gone in the next version uploaded to CTAN. (Version 2.04)