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,
}
|