File size: 7,026 Bytes
11e61f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
"""
See https://github.com/savoirfairelinux/num2words/blob/master/num2words/lang_HE.py
"""

# TODO: add niqqud hints

ZERO = {"ืืคืก": "ืึถืคึถืก"}


ONES = {
    "ืื—ืช": "ืึทื—ึทืช",
    "ืื—ื“": "ืึถื—ึธื“",
    "ืจืืฉื•ื ื”": "ืจึดืืฉืื•ึนื ึธื”",
    "ืจืืฉื•ืŸ": "ืจึดืืฉืื•ึนืŸ",
    "ืจืืฉื•ื ื•ืช": "ืจึดืืฉืื•ึนื ื•ึนืช",
    "ืจืืฉื•ื ื™ื": "ืจึดืืฉืื•ึนื ึดื™ื",
    "ืฉืชื™ื™ื": "ืฉืึฐืชึทึผื™ึดื",
    "ืฉื ื™ื™ื": "ืฉึฐืื ึทื™ึดื",
    "ืฉืชื™": "ืฉึฐืืชึตึผื™",
    "ืฉื ื™": "ืฉืึฐื ึตื™",
    "ืฉื ื™ื™ื”": "ืฉึฐืื ึดื™ึธึผื”",
    "ืฉื ื™ื•ืช": "ืฉึฐืื ึดื™ึผื•ึนืช",
    "ืฉืœื•ืฉ": "ืฉืึธืœื•ึนืฉื",
    "ืฉืœื•ืฉื”": "ืฉืึฐืœื•ึนืฉืึธื”",
    "ืฉืœื•ืฉืช": "ืฉืึฐืœื•ึนืฉืึถืช",
    "ืฉืœื™ืฉื™ืช": "ืฉืึฐืœึดื™ืฉืึดื™ืช",
    "ืฉืœื™ืฉื™": "ืฉืึฐืœึดื™ืฉืึดื™",
    "ืฉืœื™ืฉื™ื•ืช": "ืฉืึฐืœึดื™ืฉืึดื™ึผื•ึนืช",
    "ืฉืœื™ืฉื™ื™ื": "ืฉืึฐืœึดื™ืฉืึดื™ึดึผื™ื",
    "ืืจื‘ืข": "ืึทืจึฐื‘ึทึผืข",
    "ืืจื‘ืขื”": "ืึทืจึฐื‘ึทึผืขึธื”",
    "ืืจื‘ืขืช": "ืึทืจึฐื‘ึผึทืขึทืช",
    "ืจื‘ื™ืขื™ืช": "ืจึตื‘ึดื™ืขึดื™ืช",
    "ืจื‘ื™ืขื™": "ืจึตื‘ึดื™ืขึดื™",
    "ืจื‘ื™ืขื™ื•ืช": "ืจึตื‘ึดื™ืขึดื™ื•ึนืช",
    "ืจื‘ื™ืขื™ื™ื": "ืจึตื‘ึดื™ืขึดื™ึดึผื™ื",
    "ื—ืžืฉ": "ื—ึธืžึตืฉื",
    "ื—ืžื™ืฉื”": "ื—ึฒืžึดืฉึธึผืื”",
    "ื—ืžืฉืช": "ื—ึฒืžึตืฉืึถืช",
    "ื—ืžื™ืฉื™ืช": "ื—ึฒืžึดื™ืฉึดึผืื™ืช",
    "ื—ืžื™ืฉื™": "ื—ึฒืžึดื™ืฉึดึผืื™",
    "ื—ืžื™ืฉื™ื•ืช": "ื—ึฒืžึดื™ืฉึดึผืื™ื•ึนืช",
    "ื—ืžื™ืฉื™ื™ื": "ื—ึฒืžึดื™ืฉึดึผืื™ึดึผื™ื",
    "ืฉืฉ": "ืฉึตืืฉื",
    "ืฉื™ืฉื”": "ืฉึดืืฉึธึผืื”",
    "ืฉืฉืช": "ืฉืึตืฉืึถืช",
    "ืฉื™ืฉื™ืช": "ืฉึดืืฉึดึผืื™ืช",
    "ืฉื™ืฉื™": "ืฉึดืืฉึดึผืื™",
    "ืฉื™ืฉื™ื•ืช": "ืฉึดืืฉึดึผืื™ื•ึนืช",
    "ืฉื™ืฉื™ื™ื": "ืฉึดืืฉึดึผืื™ึดึผื™ื",
    "ืฉื‘ืข": "ืฉึถืื‘ึทืข",
    "ืฉื‘ืขื”": "ืฉึดืื‘ึฐืขึธื”",
    "ืฉื‘ืขืช": "ืฉืึดื‘ึฐืขึทืช",
    "ืฉื‘ื™ืขื™ืช": "ืฉึฐืื‘ึดื™ืขึดื™ืช",
    "ืฉื‘ื™ืขื™": "ืฉึฐืื‘ึดื™ืขึดื™",
    "ืฉื‘ื™ืขื™ื•ืช": "ืฉึฐืื‘ึดื™ืขึดื™ื•ึนืช",
    "ืฉื‘ื™ืขื™ื™ื": "ืฉึฐืื‘ึดื™ืขึดื™ึดึผื™ื",
    "ืฉืžื•ื ื”": "ืฉืึฐืžื•ึนื ึถื”",
    "ืฉืžื•ื ืช": "ืฉืึฐืžื•ึนื ึทืช",
    "ืฉืžื™ื ื™ืช": "ืฉึฐืืžึดื™ื ึดื™ืช",
    "ืฉืžื™ื ื™": "ืฉึฐืืžึดื™ื ึดื™",
    "ืฉืžื™ื ื™ื•ืช": "ืฉึฐืืžึดื™ื ึดื™ื•ึนืช",
    "ืฉืžื™ื ื™ื™ื": "ืฉึฐืืžึดื™ื ึดื™ึดึผื™ื",
    "ืชืฉืข": "ืชึตึผืฉึทืืข",
    "ืชืฉืขื”": "ืชึดึผืฉึฐืืขึธื”",
    "ืชืฉืขืช": "ืชึผึดืฉืึฐืขึทืช",
    "ืชืฉื™ืขื™ืช": "ืชึผึฐืฉืึดื™ืขึดื™ืช",
    "ืชืฉื™ืขื™": "ืชึผึฐืฉืึดื™ืขึดื™",
    "ืชืฉื™ืขื™ื•ืช": "ืชึผึฐืฉืึดื™ืขึดื™ึผื•ึนืช",
    "ืชืฉื™ืขื™ื™ื": "ืชึผึฐืฉืึดื™ืขึดื™ึผึดื™ื",
}


TENS = {
    "ืขืฉืจ": "ืขึถืฉื‚ึถืจ",
    "ืขืฉืจื”": "ืขึฒืฉึธืืจึธื”",
    "ืขืฉืจืช": "ืขึฒืฉึถืืจึถืช",
    "ืขืฉื™ืจื™ืช": "ืขึฒืฉึดืื™ืจึดื™ืช",
    "ืขืฉื™ืจื™": "ืขึฒืฉึดืื™ืจึดื™",
    "ืขืฉื™ืจื™ื•ืช": "ืขึฒืฉึดืื™ืจึดื™ื•ึนืช",
    "ืขืฉื™ืจื™ื™ื": "ืขึฒืฉึดืื™ืจึดื™ึดึผื™ื",
    "ืฉืชื™ื ืขืฉืจื”": "ืฉืึฐืชึผึตื™ื ืขึถืฉื‚ึฐืจึตื”",
    "ืฉื ื™ื ืขืฉืจ": "ืฉืึฐื ึตื™ื ืขึธืฉื‚ึธืจ",
}


TWENTIES = {
    "ืขืฉืจื™ื": "ืขึถืฉึฐื‚ืจึดึซื™ื",
    "ืฉืœื•ืฉื™ื": "ืฉึฐืืœื•ึนืฉึดืื™ื",
    "ืืจื‘ืขื™ื": "ืึทืจึฐื‘ึธึผืขึดื™ื",
    "ื—ืžื™ืฉื™ื": "ื—ึฒืžึดืฉึดึผืื™ื",
    "ืฉื™ืฉื™ื": "ืฉึดืืฉึดึผืื™ื",
    "ืฉื‘ืขื™ื": "ืฉึดืื‘ึฐืขึดื™ื",
    "ืฉืžื•ื ื™ื": "ืฉึฐืืžื•ึนื ึดื™ื",
    "ืชืฉืขื™ื": "ืชึดึผืฉึฐืืขึดื™ื",
}


HUNDREDS = {
    "ืžืื”": "ืžึตืึธื”",
    "ืžืืช": "ืžึตืึทืช",
    "ืžืืชื™ื™ื": "ืžึธืืชึทื™ึดื",
    "ืžืื•ืช": "ืžึตืื•ึนืช",
}

THOUSANDS = {
    "ืืœืฃ": "ืึถืœึถืฃ",
    "ืืœืคื™ื™ื": "ืึทืœึฐืคึทึผื™ึดื",
    "ืืœืคื™ื": "ืึฒืœึธืคึดื™ื",
    "ืืœืคื™": "ืึทืœึฐืคึดึผื™",
}


LARGE = {
    "ืžื™ืœื™ื•ืŸ": "ืžึดื™ืœึฐื™ื•ึนืŸ",
    "ืžื™ืœื™ื•ื ื™": "ืžึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืžื™ืœื™ืืจื“": "ืžึดื™ืœึฐื™ึทืืจึฐื“",
    "ืžื™ืœื™ืืจื“ื™": "ืžึดื™ืœึฐื™ึทืืจึฐื“ึดึผื™",
    "ื˜ืจื™ืœื™ื•ืŸ": "ื˜ึฐืจึดื™ืœึฐื™ื•ึนืŸ",
    "ื˜ืจื™ืœื™ื•ื ื™": "ื˜ึฐืจึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืงื•ื•ื“ืจื™ืœื™ื•ืŸ": "ืงื•ึนื•ึทื“ึฐืจึดื™ืœึฐื™ื•ึนืŸ",
    "ืงื•ื•ื“ืจื™ืœื™ื•ื ื™": "ืงื•ึนื•ึทื“ึฐืจึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืงื•ื•ื™ื ื˜ื™ืœื™ื•ืŸ": "ืงื•ึดื•ึดึผื ึฐื˜ึดื™ืœึฐื™ื•ึนืŸ",
    "ืงื•ื•ื™ื ื˜ื™ืœื™ื•ื ื™": "ืงื•ึดื•ึดึผื ึฐื˜ึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืกืงืกื˜ื™ืœื™ื•ืŸ": "ืกึฐืงึถืกึฐื˜ึดื™ืœึฐื™ื•ึนืŸ",
    "ืกืงืกื˜ื™ืœื™ื•ื ื™": "ืกึฐืงึถืกึฐื˜ึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืกืคื˜ื™ืœื™ื•ืŸ": "ืกึฐืคึถึผื˜ึดื™ืœึฐื™ื•ึนืŸ",
    "ืกืคื˜ื™ืœื™ื•ื ื™": "ืกึฐืคึถึผื˜ึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืื•ืงื˜ื™ืœื™ื•ืŸ": "ืื•ึนืงึฐื˜ึดื™ืœึฐื™ื•ึนืŸ",
    "ืื•ืงื˜ื™ืœื™ื•ื ื™": "ืื•ึนืงึฐื˜ึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื ื•ื ื™ืœื™ื•ืŸ": "ื ื•ึผื ึดื™ืœึฐื™ื•ึนืŸ",
    "ื ื•ื ื™ืœื™ื•ื ื™": "ื ื•ึผื ึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื“ืกื™ืœื™ื•ืŸ": "ื“ึถึผืกึดื™ืœึฐื™ื•ึนืŸ",
    "ื“ืกื™ืœื™ื•ื ื™": "ื“ึถึผืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืื•ื ื“ืกื™ืœื™ื•ืŸ": "ืื•ึผื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืื•ื ื“ืกื™ืœื™ื•ื ื™": "ืื•ึผื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื“ื•ืื•ื“ืกื™ืœื™ื•ืŸ": "ื“ื•ึผืื•ื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ื“ื•ืื•ื“ืกื™ืœื™ื•ื ื™": "ื“ื•ึผืื•ื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื˜ืจื“ืกื™ืœื™ื•ืŸ": "ื˜ึถืจึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ื˜ืจื“ืกื™ืœื™ื•ื ื™": "ื˜ึถืจึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืงื•ื•ื˜ื•ืื•ืจื“ืกื™ืœื™ื•ืŸ": "ืงื•ึผื•ื˜ึฐื•ึธืื•ืจึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืงื•ื•ื˜ื•ืื•ืจื“ืกื™ืœื™ื•ื ื™": "ืงื•ึผื•ื˜ึฐื•ึธืื•ืจึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืงื•ื•ื™ื ื“ืกื™ืœื™ื•ืŸ": "ืงื•ึดื•ึดึผื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืงื•ื•ื™ื ื“ืกื™ืœื™ื•ื ื™": "ืงื•ึดื•ึดึผื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืกืงืกื“ืกื™ืœื™ื•ืŸ": "ืกึถืงึฐืกึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืกืงืกื“ืกื™ืœื™ื•ื ื™": "ืกึถืงึฐืกึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืกืคื˜ื ื“ืกื™ืœื™ื•ืŸ": "ืกึฐืคึถึผื˜ึทื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืกืคื˜ื ื“ืกื™ืœื™ื•ื ื™": "ืกึฐืคึถึผื˜ึทื ึฐื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ืื•ืงื˜ื•ื“ืกื™ืœื™ื•ืŸ": "ืื•ึนืงึฐื˜ื•ึนื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ืื•ืงื˜ื•ื“ืกื™ืœื™ื•ื ื™": "ืื•ึนืงึฐื˜ื•ึนื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื ื•ื‘ืžื“ืกื™ืœื™ื•ืŸ": "ื ื•ึนื‘ึฐืžึทื“ึฐืกึดื™ืœึฐื™ื•ึนืŸ",
    "ื ื•ื‘ืžื“ืกื™ืœื™ื•ื ื™": "ื ื•ึนื‘ึฐืžึทื“ึฐืกึดื™ืœึฐื™ื•ึนื ึดื™",
    "ื•ื™ื’ื™ื ื˜ื™ืœื™ื•ืŸ": "ื•ึดื™ื’ึดึผื™ื ึฐื˜ึดื™ืœึฐื™ื•ึนืŸ",
    "ื•ื™ื’ื™ื ื˜ื™ืœื™ื•ื ื™": "ื•ึดื™ื’ึดึผื™ื ึฐื˜ึดื™ืœึฐื™ื•ึนื ึดื™",
}


LETTERS = {
    "ื•": "ื•ึต",
    "ื”": "ื”ึท",
}


CURRENCY = {
    "ืฉืงืœ": "ืฉึตืืงึถืœ",
    "ืฉืงืœื™ื": "ืฉึฐืืงึธืœึดื™ื",
    "ืื’ื•ืจื”": "ืึฒื’ื•ึนืจึธื”",
    "ืื’ื•ืจื•ืช": "ืึฒื’ื•ึนืจื•ึนืช",
    "ืื™ืจื•": "ืึตื™ืจื•ึน",
    "ืกื ื˜": "ืกึตื ึฐื˜",
    "ืกื ื˜ื™ื": "ืกึตื ึฐื˜ึดื™ื",
    "ื“ื•ืœืจ": "ื“ื•ึนืœึธืจ",
    "ื“ื•ืœืจื™ื": "ื“ื•ึนืœึธืจึดื™ื",
}


POINTS = {
    "ืžื™ื ื•ืก": "ืžึดื™ื ึผื•ึผืก",
    "ื ืงื•ื“ื”": "ื ึฐืงึปื“ึผึธื”",
}

NUMBER_NAMES = {
    **CURRENCY,
    **HUNDREDS,
    **LARGE,
    **LETTERS,
    **ONES,
    **POINTS,
    **TENS,
    **THOUSANDS,
    **TWENTIES,
    **ZERO,
}