blob: 33c769328e2e5a83cb439f623eb7cebba6a98b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
% This file is public domain
\documentclass{article}
\usepackage[french]{babel}
\usepackage{fmtcount}
\usepackage{array}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\newcommand*\formatterundertest[1]{}
\makeatletter
\newcommand*{\printrow}[2]{%
\def\@tempa{#1}%
\ifx\@tempa\@empty\else
\texttt{\textbackslash fmtsetoptions\{french=\{#1\}\}}\newline
\fmtcountsetoptions{french={#1}}%
\fi
\begin{tabular}{@{}>{\raggedleft\arraybackslash}p{\dimexpr0.3\linewidth-\tabcolsep}>{\raggedright\arraybackslash}p{\dimexpr0.7\linewidth-\tabcolsep}@{}}%
#2&$\rangle$\formatterundertest{#2}$\langle$\\\hline
\end{tabular}\newline
\def\@tempb{%
\ifx\@tempa\space
\expandafter\@gobble
\fi
}%
\futurelet\@tempa\@tempb
}
\def\fc@frenchoptions@submillion@dos{$\bullet$\-$\bullet$}
\def\fc@frenchoptions@supermillion@dos{$\star$\-$\star$}
\makeatother
\newcommand*\test{\noindent
\printrow{all plural}{1}
\printrow{}{2}
\printrow{}{3}
\printrow{}{4}
\printrow{}{5}
\printrow{}{6}
\printrow{}{7}
\printrow{}{8}
\printrow{}{9}
\printrow{}{10}
\printrow{}{11}
\printrow{}{12}
\printrow{}{13}
\printrow{}{14}
\printrow{}{15}
\printrow{}{16}
\printrow{}{17}
\printrow{}{18}
\printrow{}{19}
\printrow{}{20}
\printrow{}{21}
\printrow{}{22}
\printrow{}{29}
\printrow{scale=long}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=short}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=recursive}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=long}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=short}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=recursive}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000}
\printrow{}{156 404 724 555 428 769 499 217 321 941}
\printrow{}{4 171 764 135 702 262 349 567 001 574 584}
\printrow{}{97 415 427 916 562 250 398 973 107 371 704}
\printrow{}{80}
\printrow{}{81}
\printrow{}{21}
\printrow{}{31}
\printrow{}{200}
\printrow{}{201}
\printrow{}{200 000}
\printrow{}{200 000 000}
\printrow{}{201 000 000}
\printrow{}{80 000}
\printrow{}{80 000 000}
\printrow{}{81 000}
\printrow{}{81 000 000}
\printrow{all plural,mil plural=multiple}{1000}
\printrow{}{2000}
\printrow{}{1001}
\printrow{}{2001}
\printrow{}{1900}
\printrow{}{2012}
\printrow{}{900}
\printrow{all plural,mil plural=multiple,mil plural mark=s}{2000}
}
\begin{document}
\section{\textbackslash numberstringnum\{\#1\}}
\def\formatterundertest#1{\numberstringnum{#1}}
\test
\section{\textbackslash numberstringnum\{\#1\}[f]}
\def\formatterundertest#1{\numberstringnum{#1}[f]}
\test
\section{\textbackslash ordinalstringnum\{\#1\}}
\def\formatterundertest#1{\ordinalstringnum{#1}}
\test
\section{\textbackslash ordinalstringnum\{\#1\}[f]}
\def\formatterundertest#1{\ordinalstringnum{#1}[f]}
\test
\section{\textbackslash Numberstringnum\{\#1\}}
\def\formatterundertest#1{\Numberstringnum{#1}}
\test
\section{\textbackslash Numberstringnum\{\#1\}[f]}
\def\formatterundertest#1{\Numberstringnum{#1}[f]}
\test
\section{\textbackslash Ordinalstringnum\{\#1\}}
\def\formatterundertest#1{\Ordinalstringnum{#1}}
\test
\section{\textbackslash Ordinalstringnum\{\#1\}[f]}
\def\formatterundertest#1{\Ordinalstringnum{#1}[f]}
\test
\end{document}
|