it.sor 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ^0 zero
  2. 1 uno
  3. 2 due
  4. ^3$ tre
  5. 3$ tré
  6. 3 tre
  7. 4 quattro
  8. 5 cinque
  9. 6 sei
  10. 7 sette
  11. 8 otto
  12. 9 nove
  13. 10 dieci
  14. 11 undici
  15. 12 dodici
  16. 13 tredici
  17. 14 quattordici
  18. 15 quindici
  19. 16 sedici
  20. 17 diciassette
  21. 18 diciotto
  22. 19 diciannove
  23. 2([18]) vent$1
  24. 2(\d) venti$1
  25. 3([18]) trent$1
  26. 3(\d) trenta$1
  27. 4([18]) quarant$1
  28. 4(\d) quaranta$1
  29. 5([18]) cinquant$1
  30. 5(\d) cinquanta$1
  31. 6([18]) sessant$1
  32. 6(\d) sessanta$1
  33. 7([18]) settant$1
  34. 7(\d) settanta$1
  35. 8([18]) ottant$1
  36. 8(\d) ottanta$1
  37. 9([18]) novant$1
  38. 9(\d) novanta$1
  39. 1(\d\d) cento$1
  40. (\d)(\d\d) $1cento$2
  41. 1(\d{3}) mille$1
  42. (\d{1,2})(\d{3}) $1mila$2
  43. (\d{3})(\d{3}) $1mila[ $2]
  44. 1(\d{6}) un milione[ $1]
  45. (\d{1,3})(\d{6}) $1 milioni[ $2]
  46. 1(\d{9}) un miliardo[ $1]
  47. (\d{1,3})(\d{9}) $1 miliardi[ $2]
  48. 1(\d{12}) un bilione[ $1]
  49. (\d{1,3})(\d{12}) $1 bilioni[ $2]
  50. 1(\d{15}) un biliardo[ $1]
  51. (\d{1,3})(\d{15}) $1 biliardi[ $2]
  52. 1(\d{18}) un trilione[ $1]
  53. (\d{1,3})(\d{18}) $1 trilioni[ $2]
  54. 1(\d{21}) un triliardo[ $1]
  55. (\d{1,3})(\d{21}) $1 triliardi[ $2]
  56. # negative numbers
  57. [-−](\d+) meno |$1
  58. # decimals
  59. ([-−]?\d+)[.,] $1| virgola
  60. ([-−]?\d+[.,])([^0]\d) $1| |$2
  61. ([-−]?\d+[.,])(\d)(\d)(\d) |$1 |$2| |$3| |$4
  62. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  63. # currencies
  64. # unit/subunit
  65. u:([^,]*),([^,]*),([^,]*) \1
  66. s:([^,]*),([^,]*),([^,]*) \2
  67. p:([^,]*),([^,]*),([^,]*) \3
  68. CHF:(.) $(\1: franco svizzero, centesimo, centesimi)
  69. CNY:(.) $(\1: yuan renminbi, fen, fen)
  70. EUR:(.) $(\1: euro, centesimo, centesimi)
  71. GBP:(.) $(\1: lira sterlina, penny, pence)
  72. JPY:(.) $(\1: yen, sen, sen)
  73. USD:(.) $(\1: dollaro USA, cent, cent)
  74. "(JPY [-−]?\d+)[.,](\d\d)0" $1
  75. "(JPY [-−]?\d+[.,]\d\d)(\d)" $1 $2 rin
  76. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:u)
  77. "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 jiao
  78. "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 fen
  79. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 uno$(\2:s)
  80. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 $(\30)$(\2:p)
  81. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 $3$(\2:p)
  82. == cardinal-feminine ==
  83. 1 una
  84. == cardinal-masculine ==
  85. 1 un
  86. == cardinal-(feminine|masculine) ==
  87. (.*) $(\1 $2)
  88. == feminine ==
  89. (.*)uno \1una
  90. == masculine ==
  91. (.*)uno \1un
  92. == (feminine|masculine) ==
  93. (.*) \2
  94. == ordinal-feminine ==
  95. ([-−]?\d+) $(ordinal-feminine |$1)
  96. un[ao] \1prima
  97. (.*)un[ao] \1unesima
  98. due seconda
  99. (.*)due \1duesima
  100. (.*)tre \1terza
  101. (.*)quattro \1quarta
  102. (.*)cinque \1quinta
  103. (.*)sei \1sesta
  104. (.*)sette \1settesima
  105. (.*)ootto \1ottesima
  106. (.*)otto \1ottesima
  107. (.*)nove \1novesima
  108. (.*)dieci \1decima
  109. (.*tr)é \1eesima
  110. (.*sei) \1esima
  111. "(.*)[^ ][ ]*" \1esima
  112. == ordinal(-masculine)? ==
  113. ([-−]?\d+) $(ordinal-masculine $(ordinal-feminine \2))
  114. (.*)a \2o
  115. == (ordinal)-number(-feminine|-masculine)? ==
  116. ([-−]?\d+) \3$(ordinal-number $(\1\2 \3))
  117. .*a ª
  118. .*o º
  119. == help ==
  120. "" $(1), $(2), |$(3)|\n$(help cardinal-feminine)$(help cardinal-masculine)$(help ordinal-feminine)$(help ordinal-masculine)$(help ordinal-number-feminine)$(help ordinal-number-masculine)
  121. (.*) \1: $(\1 1), $(\1 2), |$(\1 3)|\n