cs.sor 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ^0 nula
  2. 1 jedna
  3. 2 dva
  4. ^2$ dvě
  5. 3 tři
  6. 4 čtyři
  7. 5 pět
  8. 6 šest
  9. 7 sedm
  10. 8 osm
  11. 9 devět
  12. 10 deset
  13. 11 jedenáct
  14. 14 čtrnáct
  15. 15 patnáct
  16. 19 devatenáct
  17. 1(\d) $1náct
  18. ([234])(\d) $1cet[ $2]
  19. 5(\d) padesát[ $1]
  20. 6(\d) šedesát[ $1]
  21. 9(\d) devadesát[ $1]
  22. (\d)(\d) $1desát[ $2]
  23. 1(\d\d) sto[ $1]
  24. 2(\d\d) dvě stě[ $1]
  25. ([34])(\d\d) $1 sta[ $2]
  26. (\d)(\d\d) $1 set[ $2]
  27. 1(\d\d\d) tisíc[ $1]
  28. ([234])(\d\d\d) $1 tisíce[ $2]
  29. (\d{1,3})(\d\d\d) $1 tisíc[ $2]
  30. 1(\d{6}) milión[ $1]
  31. ([234])(\d{6}) $1 milióny[ $2]
  32. (\d{1,3})(\d{6}) $1 miliónů[ $2]
  33. 1(\d{9}) miliarda[ $1]
  34. ([234])(\d{9}) $1 miliardy[ $2]
  35. (\d{1,3})(\d{9}) $1 miliard[ $2]
  36. 1(\d{12}) bilión[ $1]
  37. ([234])(\d{12}) $1 bilióny[ $2]
  38. (\d{1,3})(\d{12}) $1 biliónů[ $2]
  39. 1(\d{15}) biliarda[ $1]
  40. ([234])(\d{15}) $1 biliardy[ $2]
  41. (\d{1,3})(\d{15}) $1 biliard[ $2]
  42. 1(\d{18}) trilion[ $1]
  43. ([234])(\d{18}) $1 trilióny[ $2]
  44. (\d{1,3})(\d{18}) $1 triliónů[ $2]
  45. 1(\d{21}) triliarda[ $1]
  46. ([234])(\d{21}) $1 triliardy[ $2]
  47. (\d{1,3})(\d{21}) $1 triliard[ $2]
  48. 1(\d{24}) kvadrilión[ $1]
  49. ([234])(\d{24}) $1 kvadrilióny[ $2]
  50. (\d{1,3})(\d{24}) $1 kvadriliónů[ $2]
  51. # negative number
  52. [-−](\d+) minus |$1
  53. # decimals
  54. ([-−]?\d+)[.,] $1| čárka
  55. ([-−]?\d+[.,])([^0]\d) $1| |$2
  56. ([-−]?\d+[.,])(\d)(\d)(\d) $1| |$2 |$3 |$4
  57. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  58. # currency
  59. # unit/subunit singular / plural / plural genitiv
  60. us:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \1
  61. up:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \2
  62. ug:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \3
  63. ss:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \4
  64. sp:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \5
  65. sg:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \6
  66. ugender:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \7
  67. sgender:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \8
  68. CHF:(\D+) $(\1: švýcarský frank, švýcarské franky, švýcarských franků, centim, centimy, centimů,masculine,masculine)
  69. CNY:(\D+) $(\1: jüan, jüany, jüanů, fen, feny, fenů,masculine,masculine)
  70. CZK:(\D+) $(\1: koruna česká, koruny české, korun českých, haléř, haléře, haléřů,feminine,masculine)
  71. EUR:(\D+) $(\1: euro, eura, eur, cent, centy, centů,neuter,masculine)
  72. GBP:(\D+) $(\1: libra šterlinků, libry šterlinků, liber šterlinků, pence, pence, pencí,feminine,feminine)
  73. JPY:(\D+) $(\1: jen, jeny, jenů, sen, seny, senů,masculine,masculine)
  74. RUB:(\D+) $(\1: rubl, rubly, rublů, kopějka, kopějky, kopějek,masculine,feminine)
  75. SKK:(\D+) $(\1: slovenská koruna, slovenské koruny, slovenských korun, haléř, haléře, haléřů,feminine,masculine)
  76. USD:(\D+) $(\1: americký dolar, americké dolary, amerických dolarů, cent, centy, centů,masculine,masculine)
  77. "([A-Z]{3}) ([-−]?1)([.,]00?)?" $(cardinal-$(\1:ugender) \2)$(\1:us)
  78. "([A-Z]{3}) ([-−]?[2-4])([.,]00?)?" $(cardinal-$(\1:ugender) \2)$(\1:up)
  79. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $(cardinal-$(\1:ugender) \2)$(\1:ug)
  80. "(CNY [-−]?\d+)[.,]10?" $1 $(cardinal-neuter 1) ťiao
  81. "(CNY [-−]?\d+)[.,](\d)0?" $1 $(cardinal-neuter \2) ťiao
  82. "((CNY) [-−]?\d+[.,]\d)1" $1 $(cardinal-masculine 1)$(\2:ss)
  83. "((CNY) [-−]?\d+[.,]\d)(2|3|4)" $1 $(cardinal-masculine \3)$(\2:sp)
  84. "((CNY) [-−]?\d+[.,]\d)(\d)" $1 $(cardinal-masculine \3)$(\2:sg)
  85. "(([A-Z]{3}) [-−]?\d+)[.,](00)" $1 $(cardinal-$(\2:sgender) \1)$(\2:sg)
  86. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 $(cardinal-$(\2:sgender) \3)$(\2:ss)
  87. "(([A-Z]{3}) [-−]?\d+)[.,](02|03|04)" $1 $(cardinal-$(\2:sgender) \3)$(\2:sp)
  88. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 $(cardinal-$(\2:sgender) \3)$(\2:sg)
  89. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 $(cardinal-$(\2:sgender) \30)$(\2:sg)
  90. == cardinal-neuter ==
  91. 1 jedno
  92. 2 dvě
  93. (.*) $1
  94. == cardinal-feminine ==
  95. 1 jedna
  96. 2 dvě
  97. (.*) $1
  98. == cardinal-masculine ==
  99. 1 jeden
  100. (.*) $1
  101. == ordinal ==
  102. ([-−]?\d+) $(ordinal |$1)
  103. "(.*)dvě stě(.*)" $(ordinal \1dvoustý\2)
  104. "(.*)tři sta(.*)" $(ordinal \1třístý\2)
  105. "(.*)čtyři sta(.*)" $(ordinal \1čtyřstý\2)
  106. "(.*)(pět|šest|sedm|osm) set(.*)" $(ordinal \1\2istý\3)
  107. "(.*)devět set(.*)" $(ordinal \1devítistý\2)
  108. nula nultý
  109. (.*)(jedno|jedna|jeden) $(ordinal \1první)
  110. (.*)(jedenáct) $(ordinal \1jedenáctý)
  111. (.*)(dva|dvě) $(ordinal \1druhý)
  112. (.*)(dvě|dva)\b(.*) $(ordinal \1druhý\3)
  113. (.*)tři\b(.*) $(ordinal \1třetí\2)
  114. (.*)čtyři\b(.*) $(ordinal \1čtvrtý\2)
  115. (.*)pět\b(.*) $(ordinal \1pátý\2)
  116. "(.*)(šest|sedm|osm|desát|náct|sát)( .+|$)" $(ordinal \1\2ý\3)
  117. (.*)devět\b(.*) $(ordinal \1devátý\2)
  118. "(.*)(c|s)et\b(.*)" $(ordinal \1\2átý\3)
  119. (.*)sto\b(.*) $(ordinal \1stý\2)
  120. (.*)tisíce?(.*) \1tisící\2
  121. (.*)milión[yů]?(.*) \1milióntý\2
  122. (.*)miliard[ay]?(.*) \1miliardtý\2
  123. (.*) \1
  124. == ordinal-masculine ==
  125. (.*) $(ordinal |$1)
  126. == ordinal-feminine ==
  127. ([-−]?\d+) $(ordinal-feminine |$(ordinal-masculine \1))
  128. (.*)ý(.*) $(ordinal-feminine \1á\2)
  129. (.*) \1
  130. == ordinal-neuter ==
  131. ([-−]?\d+) $(ordinal-neuter |$(ordinal-masculine \1))
  132. (.*)ý(.*) $(ordinal-neuter \1é\2)
  133. (.*) \1
  134. == ordinal-number ==
  135. (\d+) \1.
  136. == help ==
  137. "" |$(1)|, |$(2)|, |$(3)|\n$(help cardinal-neuter)$(help cardinal-feminine)$(help cardinal-masculine)$(help ordinal)$(help ordinal-masculine)$(help ordinal-feminine)$(help ordinal-neuter)$(help ordinal-number)
  138. (.*) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n