sl.sor 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. ^0 nič
  2. 1 ena
  3. 2$ dve
  4. 2 dva
  5. 3 tri
  6. 4 štiri
  7. 5 pet
  8. 6 šest
  9. 7 sedem
  10. 8 osem
  11. 9 devet
  12. 10 deset
  13. 11 enajst
  14. 1(\d) $1najst
  15. 20 dvajset
  16. 2(\d) $1indvajset
  17. (\d)0 $1deset
  18. (\d)(\d) $2in$1deset
  19. 1(\d\d) sto[ $1]
  20. 2(\d\d) dvesto[ $1]
  21. (\d)(\d\d) $1sto[ $2]
  22. 1(\d\d\d) tisoč[ $1]
  23. (\d{1,3})(\d\d\d) $1 tisoč[ $2]
  24. 1(\d{6}) milijon[ $1]
  25. ([234])(\d{6}) $1 milijona[ $2]
  26. (\d{1,3})(\d{6}) $1 milijonov[ $2]
  27. 1(\d{9}) milijarda[ $1]
  28. ([234])(\d{9}) $1| milijardi[ $2]
  29. (\d{1,3})(\d{9}) $1 milijardov[ $2]
  30. 1(\d{12}) bilijon[ $1]
  31. ([234])(\d{12}) $1 bilijona[ $2]
  32. (\d{1,3})(\d{12}) $1 bilijonov[ $2]
  33. 1(\d{15}) tisoč bilijonov[ $1]
  34. (\d{1,3})(\d{15}) $1 tisoč bilijonov[ $2]
  35. 1(\d{18}) trilijon[ $1]
  36. ([234])(\d{18}) $1 trilijona[ $2]
  37. (\d{1,3})(\d{18}) $1 trilijonov[ $2]
  38. 1(\d{21}) tisoč trilijonov[ $1]
  39. (\d{1,3})(\d{21}) $1 tisoč trilijonov[ $2]
  40. 1(\d{24}) kvadrilijon[ $1]
  41. ([234])(\d{24}) $1 kvadrilijona[ $2]
  42. (\d{1,3})(\d{24}) $1 kvadrilijonov[ $2]
  43. # negative number
  44. [-−] minus
  45. [-−](\d+) minus |$1
  46. # decimals
  47. "([-−]?\d+)[.,]" $1| vejica
  48. "([-−]?\d+[.,])([^0]\d)" $1| |$2
  49. "([-−]?\d+[.,])(\d)(\d)(\d)" $1| |$2 |$3 |$4
  50. "([-−]?\d+[.,]\d*)(\d)" $1| |$2
  51. # currency
  52. # unit/subunit affixation
  53. u1:([^,]*)(,[^,]*){9} \1
  54. u2:([^,]*,){1}([^,]*)(,[^,]*){8} \2
  55. u3:([^,]*,){2}([^,]*)(,[^,]*){7} \2
  56. u4:([^,]*,){3}([^,]*)(,[^,]*){6} \2
  57. u5:([^,]*,){4}([^,]*)(,[^,]*){5} \2
  58. s1:([^,]*,){5}([^,]*)(,[^,]*){4} \2
  59. s2:([^,]*,){6}([^,]*)(,[^,]*){3} \2
  60. s3:([^,]*,){7}([^,]*)(,[^,]*){2} \2
  61. s4:([^,]*,){8}([^,]*)(,[^,]*){1} \2
  62. s5:([^,]*,){9}([^,]*) \2
  63. CHF:(.+) $(\1: švicarski frank, švicarska franka, švicarski franki, švicarske franke, švicarskih frankov, centim, centima, centimi, centime, centimov)
  64. EUR:(.+) $(\1: evro, evra, evri, evre, evrov, cent, centa, centi, cente, centov)
  65. GBP:(.+) $(\1: funt šterling, funta šterlinga, funti šterlingi, funte šterlinge, funtov šterlingov, peni, penija, peniji, penije, penijev)
  66. JPY:(.+) $(\1: japonski jen, japonska jena, japonski jeni, japonske jene, japonskih jenov, sen, sena, seni, sene, senov)
  67. USD:(.+) $(\1: ameriški dolar, ameriška dolarja, ameriški dolarji, ameriške dolarje, ameriških dolarjev, cent, centa, centi, cente, centov)
  68. "([A-Z]{3}) ([-−]?)1([.,]00?)?" $2 en$(\1:u1)
  69. "([A-Z]{3}) ([-−]?\d*01)([.,]00?)?" $2$(\1:u1)
  70. "([A-Z]{3}) ([-−]?(2|\d*02))([.,]00?)?" $2$(\1:u2)
  71. "([A-Z]{3}) ([-−]?(3|\d*03))([.,]00?)?" $2$(\1:u3)
  72. "([A-Z]{3}) ([-−]?(4|\d*04))([.,]00?)?" $2$(\1:u4)
  73. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:u5)
  74. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 en$(\2:s1)
  75. "(([A-Z]{3}) [-−]?\d+)[.,](02)" $1 $3$(\2:s2)
  76. "(([A-Z]{3}) [-−]?\d+)[.,](03)" $1 $3$(\2:s3)
  77. "(([A-Z]{3}) [-−]?\d+)[.,](04)" $1 $3$(\2:s4)
  78. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 $(\30)$(\2:s5)
  79. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 $3$(\2:s5)
  80. == cardinal-feminine ==
  81. (\d+) $1
  82. == cardinal-neuter ==
  83. (\d+) $(cardinal-neuter |$1)
  84. (.*)ena \1eno
  85. (.*) \1
  86. == cardinal-masculine ==
  87. (\d+) $(cardinal-masculine |$1)
  88. (.*)ena \1eden
  89. (.*)dve \1dva
  90. (.*tri) \1je
  91. (.*) \1
  92. == cardinal-adverbial ==
  93. (\d+) $(cardinal-adverbial |$1)
  94. (.*)ena \1enkrat
  95. (.*)dve \1dvakrat
  96. (.*) \1krat
  97. == ordinal(-masculine)? ==
  98. (\d+) $(ordinal |$2)
  99. "(.*) (.*)" $(ordinal \2\3) # remove spaces
  100. (.*)ena \2prvi
  101. (.*)dve \2drugi
  102. (.*)tri \2tretji
  103. (.*)štiri \2četrti
  104. (.*) \2i
  105. == ordinal-feminine ==
  106. (\d+) $(ordinal-feminine $(ordinal \1))
  107. (.*)i \1a
  108. == ordinal-neuter ==
  109. (\d+) $(ordinal-neuter $(ordinal \1))
  110. (.*)i \1o
  111. == ordinal-adverbial ==
  112. (\d+) $(ordinal |$1)č
  113. == ordinal-number ==
  114. (\d+) \1.
  115. == help ==
  116. "" |$(1)|, |$(2)|, |$(3)|\n$(help cardinal-feminine)$(help cardinal-masculine)$(help cardinal-neuter)$(help ordinal-feminine)$(help ordinal-masculine)$(help ordinal-neuter)$(help ordinal-number)
  117. (.*) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n