Debian Codegraph @

lang/cmu_indic_lang/indic_kan_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 (Kannada) Indic */
34 /*************************************************************************/
35
36 #ifndef _indic_kan_reg_num_table_h_
37 #define _indic_kan_reg_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_kan_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_kan_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 kan_num_table = {
156 "kan",
157 &indic_kan_digit,
158 &indic_kan_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