Debian Codegraph @

lang/cmu_indic_lang/indic_guj_num_table.h

raw
1 /*************************************************************************/
2 /* */
3 /* Language Technologies Institute */
4 /* Carnegie Mellon University */
5 /* Copyright (c) 2015 */
6 /* All Rights Reserved. */
7 /* */
8 /* Permission is hereby granted, free of charge, to use and distribute */
9 /* this software and its documentation without restriction, including */
10 /* without limitation the rights to use, copy, modify, merge, publish, */
11 /* distribute, sublicense, and/or sell copies of this work, and to */
12 /* permit persons to whom this work is furnished to do so, subject to */
13 /* the following conditions: */
14 /* 1. The code must retain the above copyright notice, this list of */
15 /* conditions and the following disclaimer. */
16 /* 2. Any modifications must be clearly marked as such. */
17 /* 3. Original authors' names are not deleted. */
18 /* 4. The authors' names are not used to endorse or promote products */
19 /* derived from this software without specific prior written */
20 /* permission. */
21 /* */
22 /* CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK */
23 /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
24 /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
25 /* SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE */
26 /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
27 /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
28 /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
29 /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
30 /* THIS SOFTWARE. */
31 /* */
32 /*************************************************************************/
33 /* Number pronunciation for (Gujarati) Indic */
34 /*************************************************************************/
35
36 #ifndef _indic_guj_num_table_h_
37 #define _indic_guj_num_table_h_
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif /* __cplusplus */
42
43 #include "indic_num_table.h"
44
45 static const char * const indic_guj_digit[11][2] =
46 {
47 { "૦", "શૂન્ય" },
48 { "૧", "એક" },
49 { "૨", "બે" },
50 { "૩", "ત્રણ" },
51 { "૪", "ચાર" },
52 { "૫", "પાંચ" },
53 { "૬", "છ" },
54 { "૭", "સાત" },
55 { "૮", "આઠ" },
56 { "૯", "નવ" },
57 { NULL, NULL },
58 };
59
60 static const char * const indic_guj_two_digit[101][4] =
61 {
62 { "૧", "૦", "દસ", NULL },
63 { "૧", "૧", "અગિયાર", NULL },
64 { "૧", "૨", "બાર", NULL },
65 { "૧", "૩", "તેર", NULL },
66 { "૧", "૪", "ચૌદ", NULL },
67 { "૧", "૫", "પંદર", NULL },
68 { "૧", "૬", "સોળ", NULL },
69 { "૧", "૭", "સત્તર", NULL },
70 { "૧", "૮", "અઢાર", NULL },
71 { "૧", "૯", "ઓગણીસ", NULL },
72 { "૨", "૦", "વીસ", NULL },
73 { "૨", "૧", "એકવીસ", NULL },
74 { "૨", "૨", "બાવીસ", NULL },
75 { "૨", "૩", "ત્રેવીસ", NULL },
76 { "૨", "૪", "ચોવીસ", NULL },
77 { "૨", "૫", "પચ્ચીસ", NULL },
78 { "૨", "૬", "છવ્વીસ", NULL },
79 { "૨", "૭", "સત્તાવીસ", NULL },
80 { "૨", "૮", "અઠ્ઠાવીસ", NULL },
81 { "૨", "૯", "ઓગણત્રીસ", NULL },
82 { "૩", "૦", "ત્રીસ", NULL },
83 { "૩", "૧", "એકત્રીસ", NULL },
84 { "૩", "૨", "બત્રીસ", NULL },
85 { "૩", "૩", "તેત્રીસ", NULL },
86 { "૩", "૪", "ચોત્રીસ", NULL },
87 { "૩", "૫", "પાંત્રીસ", NULL },
88 { "૩", "૬", "છત્રીસ", NULL },
89 { "૩", "૭", "સાડત્રીસ", NULL },
90 { "૩", "૮", "આડત્રીસ", NULL },
91 { "૩", "૯", "ઓગણચાલીસ", NULL },
92 { "૪", "૦", "ચાળીસ", NULL },
93 { "૪", "૧", "એકતાળીસ", NULL },
94 { "૪", "૨", "બેતાળીસ", NULL },
95 { "૪", "૩", "તેતાળીસ", NULL },
96 { "૪", "૪", "ચુંમાળીસ", NULL },
97 { "૪", "૫", "પિસ્તાળીસ", NULL },
98 { "૪", "૬", "છેતાળીસ", NULL },
99 { "૪", "૭", "સુડતાળીસ", NULL },
100 { "૪", "૮", "અડતાળીસ", NULL },
101 { "૪", "૯", "ઓગણપચાસ", NULL },
102 { "૫", "૦", "પચાસ", NULL },
103 { "૫", "૧", "એકાવન", NULL },
104 { "૫", "૨", "બાવન", NULL },
105 { "૫", "૩", "ત્રેપન", NULL },
106 { "૫", "૪", "ચોપન", NULL },
107 { "૫", "૫", "પંચાવન", NULL },
108 { "૫", "૬", "છપ્પન", NULL },
109 { "૫", "૭", "સત્તાવન", NULL },
110 { "૫", "૮", "અઠ્ઠાવન", NULL },
111 { "૫", "૯", "ઓગણસાઠ", NULL },
112 { "૬", "૦", "સાઠ", NULL },
113 { "૬", "૧", "એકસઠ", NULL },
114 { "૬", "૨", "બાસઠ", NULL },
115 { "૬", "૩", "ત્રેસઠ", NULL },
116 { "૬", "૪", "ચોસઠ", NULL },
117 { "૬", "૫", "પાંસઠ", NULL },
118 { "૬", "૬", "છાસઠ", NULL },
119 { "૬", "૭", "સડસઠ", NULL },
120 { "૬", "૮", "અડસઠ", NULL },
121 { "૬", "૯", "ઓગણોતેર", NULL },
122 { "૭", "૦", "સિત્તેર", NULL },
123 { "૭", "૧", "એકોતેર", NULL },
124 { "૭", "૨", "બોતેર", NULL },
125 { "૭", "૩", "તોતેર", NULL },
126 { "૭", "૪", "ચુંમોતેર", NULL },
127 { "૭", "૫", "પંચોતેર", NULL },
128 { "૭", "૬", "છોંતેર", NULL },
129 { "૭", "૭", "સિત્યોતેર", NULL },
130 { "૭", "૮", "ઇઠયોતેર", NULL },
131 { "૭", "૯", "ઓગણ્યાએંશી", NULL },
132 { "૮", "૦", "એંશી", NULL },
133 { "૮", "૧", "એક્યાશી", NULL },
134 { "૮", "૨", "બ્યાશી", NULL },
135 { "૮", "૩", "ત્યાશી", NULL },
136 { "૮", "૪", "ચોરાશી", NULL },
137 { "૮", "૫", "પંચાશી", NULL },
138 { "૮", "૬", "છ્યાશી", NULL },
139 { "૮", "૭", "સત્યાશી", NULL },
140 { "૮", "૮", "ઇઠયાશી", NULL },
141 { "૮", "૯", "નેવ્યાશી", NULL },
142 { "૯", "૦", "નેવું", NULL },
143 { "૯", "૧", "એકાણું", NULL },
144 { "૯", "૨", "બાણું", NULL },
145 { "૯", "૩", "ત્રાણું", NULL },
146 { "૯", "૪", "ચોરાણું", NULL },
147 { "૯", "૫", "પંચાણું", NULL },
148 { "૯", "૬", "છન્નું", NULL },
149 { "૯", "૭", "સત્તાણું", NULL },
150 { "૯", "૮", "અઠ્ઠાણું", NULL },
151 { "૯", "૯", "નવ્વાણું", NULL },
152 { NULL, NULL },
153 };
154
155 const static indic_num_table guj_num_table = {
156 "guj",
157 &indic_guj_digit,
158 &indic_guj_two_digit,
159 "સો", /* hundred */
160 "હજાર", /* thousand */
161 "લાખ", /* lakh */
162 "કરોડ઼", /* crore */
163 };
164
165
166 #ifdef __cplusplus
167 } /* extern "C" */
168 #endif /* __cplusplus */
169
170 #endif
171
172