|
""" |
|
See https://github.com/savoirfairelinux/num2words/blob/master/num2words/lang_HE.py |
|
""" |
|
|
|
ZERO = {"ืืคืก": "ืึถืคึถืก"} |
|
|
|
|
|
ONES = { |
|
"ืืืช": "ืึทืึทืช", |
|
"ืืื": "ืึถืึธื", |
|
"ืจืืฉืื ื": "ืจึดืืฉืืึนื ึธื", |
|
"ืจืืฉืื": "ืจึดืืฉืืึนื", |
|
"ืจืืฉืื ืืช": "ืจึดืืฉืืึนื ืึนืช", |
|
"ืจืืฉืื ืื": "ืจึดืืฉืืึนื ึดืื", |
|
"ืฉืชืืื": "ืฉืึฐืชึทึผืึดื", |
|
"ืฉื ืืื": "ืฉึฐืื ึทืึดื", |
|
"ืฉืชื": "ืฉึฐืืชึตึผื", |
|
"ืฉื ื": "ืฉืึฐื ึตื", |
|
"ืฉื ืืื": "ืฉึฐืื ึดืึธึผื", |
|
"ืฉื ืืืช": "ืฉึฐืื ึดืึผืึนืช", |
|
"ืฉืืืฉ": "ืฉืึธืืึนืฉื", |
|
"ืฉืืืฉื": "ืฉืึฐืืึนืฉืึธื", |
|
"ืฉืืืฉืช": "ืฉืึฐืืึนืฉืึถืช", |
|
"ืฉืืืฉืืช": "ืฉืึฐืึดืืฉืึดืืช", |
|
"ืฉืืืฉื": "ืฉืึฐืึดืืฉืึดื", |
|
"ืฉืืืฉืืืช": "ืฉืึฐืึดืืฉืึดืึผืึนืช", |
|
"ืฉืืืฉืืื": "ืฉืึฐืึดืืฉืึดืึดึผืื", |
|
"ืืจืืข": "ืึทืจึฐืึทึผืข", |
|
"ืืจืืขื": "ืึทืจึฐืึทึผืขึธื", |
|
"ืืจืืขืช": "ืึทืจึฐืึผึทืขึทืช", |
|
"ืจืืืขืืช": "ืจึตืึดืืขึดืืช", |
|
"ืจืืืขื": "ืจึตืึดืืขึดื", |
|
"ืจืืืขืืืช": "ืจึตืึดืืขึดืืึนืช", |
|
"ืจืืืขืืื": "ืจึตืึดืืขึดืึดึผืื", |
|
"ืืืฉ": "ืึธืึตืฉื", |
|
"ืืืืฉื": "ืึฒืึดืฉึธึผืื", |
|
"ืืืฉืช": "ืึฒืึตืฉืึถืช", |
|
"ืืืืฉืืช": "ืึฒืึดืืฉึดึผืืืช", |
|
"ืืืืฉื": "ืึฒืึดืืฉึดึผืื", |
|
"ืืืืฉืืืช": "ืึฒืึดืืฉึดึผืืืึนืช", |
|
"ืืืืฉืืื": "ืึฒืึดืืฉึดึผืืึดึผืื", |
|
"ืฉืฉ": "ืฉึตืืฉื", |
|
"ืฉืืฉื": "ืฉึดืืฉึธึผืื", |
|
"ืฉืฉืช": "ืฉืึตืฉืึถืช", |
|
"ืฉืืฉืืช": "ืฉึดืืฉึดึผืืืช", |
|
"ืฉืืฉื": "ืฉึดืืฉึดึผืื", |
|
"ืฉืืฉืืืช": "ืฉึดืืฉึดึผืืืึนืช", |
|
"ืฉืืฉืืื": "ืฉึดืืฉึดึผืืึดึผืื", |
|
"ืฉืืข": "ืฉึถืืึทืข", |
|
"ืฉืืขื": "ืฉึดืืึฐืขึธื", |
|
"ืฉืืขืช": "ืฉืึดืึฐืขึทืช", |
|
"ืฉืืืขืืช": "ืฉึฐืืึดืืขึดืืช", |
|
"ืฉืืืขื": "ืฉึฐืืึดืืขึดื", |
|
"ืฉืืืขืืืช": "ืฉึฐืืึดืืขึดืืึนืช", |
|
"ืฉืืืขืืื": "ืฉึฐืืึดืืขึดืึดึผืื", |
|
"ืฉืืื ื": "ืฉืึฐืืึนื ึถื", |
|
"ืฉืืื ืช": "ืฉืึฐืืึนื ึทืช", |
|
"ืฉืืื ืืช": "ืฉึฐืืึดืื ึดืืช", |
|
"ืฉืืื ื": "ืฉึฐืืึดืื ึดื", |
|
"ืฉืืื ืืืช": "ืฉึฐืืึดืื ึดืืึนืช", |
|
"ืฉืืื ืืื": "ืฉึฐืืึดืื ึดืึดึผืื", |
|
"ืชืฉืข": "ืชึตึผืฉึทืืข", |
|
"ืชืฉืขื": "ืชึดึผืฉึฐืืขึธื", |
|
"ืชืฉืขืช": "ืชึผึดืฉืึฐืขึทืช", |
|
"ืชืฉืืขืืช": "ืชึผึฐืฉืึดืืขึดืืช", |
|
"ืชืฉืืขื": "ืชึผึฐืฉืึดืืขึดื", |
|
"ืชืฉืืขืืืช": "ืชึผึฐืฉืึดืืขึดืึผืึนืช", |
|
"ืชืฉืืขืืื": "ืชึผึฐืฉืึดืืขึดืึผึดืื", |
|
} |
|
|
|
|
|
TENS = { |
|
"ืขืฉืจ": "ืขึถืฉืึถืจ", |
|
"ืขืฉืจื": "ืขึฒืฉึธืืจึธื", |
|
"ืขืฉืจืช": "ืขึฒืฉึถืืจึถืช", |
|
"ืขืฉืืจืืช": "ืขึฒืฉึดืืืจึดืืช", |
|
"ืขืฉืืจื": "ืขึฒืฉึดืืืจึดื", |
|
"ืขืฉืืจืืืช": "ืขึฒืฉึดืืืจึดืืึนืช", |
|
"ืขืฉืืจืืื": "ืขึฒืฉึดืืืจึดืึดึผืื", |
|
"ืฉืชืื ืขืฉืจื": "ืฉืึฐืชึผึตืื ืขึถืฉืึฐืจึตื", |
|
"ืฉื ืื ืขืฉืจ": "ืฉืึฐื ึตืื ืขึธืฉืึธืจ", |
|
} |
|
|
|
|
|
TWENTIES = { |
|
"ืขืฉืจืื": "ืขึถืฉึฐืืจึดืื", |
|
"ืฉืืืฉืื": "ืฉึฐืืืึนืฉึดืืื", |
|
"ืืจืืขืื": "ืึทืจึฐืึธึผืขึดืื", |
|
"ืืืืฉืื": "ืึฒืึดืฉึดึผืืื", |
|
"ืฉืืฉืื": "ืฉึดืืฉึดึผืืื", |
|
"ืฉืืขืื": "ืฉึดืืึฐืขึดืื", |
|
"ืฉืืื ืื": "ืฉึฐืืืึนื ึดืื", |
|
"ืชืฉืขืื": "ืชึดึผืฉึฐืืขึดืื", |
|
} |
|
|
|
|
|
HUNDREDS = { |
|
"ืืื": "ืึตืึธื", |
|
"ืืืช": "ืึตืึทืช", |
|
"ืืืชืืื": "ืึธืืชึทืึดื", |
|
"ืืืืช": "ืึตืืึนืช", |
|
} |
|
|
|
THOUSANDS = { |
|
"ืืืฃ": "ืึถืึถืฃ", |
|
"ืืืคืืื": "ืึทืึฐืคึทึผืึดื", |
|
"ืืืคืื": "ืึฒืึธืคึดืื", |
|
"ืืืคื": "ืึทืึฐืคึดึผื", |
|
} |
|
|
|
|
|
LARGE = { |
|
"ืืืืืื": "ืึดืืึฐืืึนื", |
|
"ืืืืืื ื": "ืึดืืึฐืืึนื ึดื", |
|
"ืืืืืืจื": "ืึดืืึฐืึทืืจึฐื", |
|
"ืืืืืืจืื": "ืึดืืึฐืึทืืจึฐืึดึผื", |
|
"ืืจืืืืื": "ืึฐืจึดืืึฐืืึนื", |
|
"ืืจืืืืื ื": "ืึฐืจึดืืึฐืืึนื ึดื", |
|
"ืงืืืืจืืืืื": "ืงืึนืึทืึฐืจึดืืึฐืืึนื", |
|
"ืงืืืืจืืืืื ื": "ืงืึนืึทืึฐืจึดืืึฐืืึนื ึดื", |
|
"ืงืืืื ืืืืืื": "ืงืึดืึดึผื ึฐืึดืืึฐืืึนื", |
|
"ืงืืืื ืืืืืื ื": "ืงืึดืึดึผื ึฐืึดืืึฐืืึนื ึดื", |
|
"ืกืงืกืืืืืื": "ืกึฐืงึถืกึฐืึดืืึฐืืึนื", |
|
"ืกืงืกืืืืืื ื": "ืกึฐืงึถืกึฐืึดืืึฐืืึนื ึดื", |
|
"ืกืคืืืืืื": "ืกึฐืคึถึผืึดืืึฐืืึนื", |
|
"ืกืคืืืืืื ื": "ืกึฐืคึถึผืึดืืึฐืืึนื ึดื", |
|
"ืืืงืืืืืื": "ืืึนืงึฐืึดืืึฐืืึนื", |
|
"ืืืงืืืืืื ื": "ืืึนืงึฐืึดืืึฐืืึนื ึดื", |
|
"ื ืื ืืืืื": "ื ืึผื ึดืืึฐืืึนื", |
|
"ื ืื ืืืืื ื": "ื ืึผื ึดืืึฐืืึนื ึดื", |
|
"ืืกืืืืื": "ืึถึผืกึดืืึฐืืึนื", |
|
"ืืกืืืืื ื": "ืึถึผืกึดืืึฐืืึนื ึดื", |
|
"ืืื ืืกืืืืื": "ืืึผื ึฐืึฐืกึดืืึฐืืึนื", |
|
"ืืื ืืกืืืืื ื": "ืืึผื ึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืืืืืืกืืืืื": "ืืึผืืืึฐืกึดืืึฐืืึนื", |
|
"ืืืืืืกืืืืื ื": "ืืึผืืืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืืจืืกืืืืื": "ืึถืจึฐืึฐืกึดืืึฐืืึนื", |
|
"ืืจืืกืืืืื ื": "ืึถืจึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืงืืืืืืืจืืกืืืืื": "ืงืึผืืึฐืึธืืืจึฐืึฐืกึดืืึฐืืึนื", |
|
"ืงืืืืืืืจืืกืืืืื ื": "ืงืึผืืึฐืึธืืืจึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืงืืืื ืืกืืืืื": "ืงืึดืึดึผื ึฐืึฐืกึดืืึฐืืึนื", |
|
"ืงืืืื ืืกืืืืื ื": "ืงืึดืึดึผื ึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืกืงืกืืกืืืืื": "ืกึถืงึฐืกึฐืึฐืกึดืืึฐืืึนื", |
|
"ืกืงืกืืกืืืืื ื": "ืกึถืงึฐืกึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืกืคืื ืืกืืืืื": "ืกึฐืคึถึผืึทื ึฐืึฐืกึดืืึฐืืึนื", |
|
"ืกืคืื ืืกืืืืื ื": "ืกึฐืคึถึผืึทื ึฐืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืืืงืืืืกืืืืื": "ืืึนืงึฐืืึนืึฐืกึดืืึฐืืึนื", |
|
"ืืืงืืืืกืืืืื ื": "ืืึนืงึฐืืึนืึฐืกึดืืึฐืืึนื ึดื", |
|
"ื ืืืืืกืืืืื": "ื ืึนืึฐืึทืึฐืกึดืืึฐืืึนื", |
|
"ื ืืืืืกืืืืื ื": "ื ืึนืึฐืึทืึฐืกึดืืึฐืืึนื ึดื", |
|
"ืืืืื ืืืืืื": "ืึดืืึดึผืื ึฐืึดืืึฐืืึนื", |
|
"ืืืืื ืืืืืื ื": "ืึดืืึดึผืื ึฐืึดืืึฐืืึนื ึดื", |
|
} |
|
|
|
|
|
LETTERS = { |
|
"ื": "ืึต", |
|
"ื": "ืึท", |
|
} |
|
|
|
|
|
CURRENCY = { |
|
"ืฉืงื": "ืฉึตืืงึถื", |
|
"ืฉืงืืื": "ืฉึฐืืงึธืึดืื", |
|
"ืืืืจื": "ืึฒืืึนืจึธื", |
|
"ืืืืจืืช": "ืึฒืืึนืจืึนืช", |
|
"ืืืจื": "ืึตืืจืึน", |
|
"ืกื ื": "ืกึตื ึฐื", |
|
"ืกื ืืื": "ืกึตื ึฐืึดืื", |
|
"ืืืืจ": "ืืึนืึธืจ", |
|
"ืืืืจืื": "ืืึนืึธืจึดืื", |
|
} |
|
|
|
|
|
POINTS = { |
|
"ืืื ืืก": "ืึดืื ึผืึผืก", |
|
"ื ืงืืื": "ื ึฐืงึปืึผึธื", |
|
} |
|
|
|
NUMBER_NAMES = { |
|
**CURRENCY, |
|
**HUNDREDS, |
|
**LARGE, |
|
**LETTERS, |
|
**ONES, |
|
**POINTS, |
|
**TENS, |
|
**THOUSANDS, |
|
**TWENTIES, |
|
**ZERO, |
|
} |
|
|