lv.sor 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ^0 nulle
  2. 1 viens
  3. 2 divi
  4. 3 trīs
  5. 4 četri
  6. 5 pieci
  7. 6 seši
  8. 7 septiņi
  9. 8 astoņi
  10. 9 deviņi
  11. 10 desmit
  12. 11 vienpadsmit
  13. 12 divpadsmit
  14. 13 trīspadsmit
  15. 14 četrpadsmit
  16. 15 piecpadsmit
  17. 16 sešpadsmit
  18. 17 septiņpadsmit
  19. 18 astoņpadsmit
  20. 19 deviņpadsmit
  21. (\d)(\d) $(remove-i $1)|desmit[ $2]
  22. "remove-i (.*)i" \1
  23. "remove-i (.*)" \1
  24. 1(\d\d) simts[ $1]
  25. (\d)(\d\d) $1 simti[ $2]
  26. 1(\d{3}) viens tūkstotis[ $1]
  27. (\d{1,3})(\d{3}) $1 tūkstoši[ $2]
  28. 1(\d{6}) viens miljons[ $1]
  29. (\d{1,3})(\d{6}) $1 miljoni[ $2]
  30. 1(\d{9}) viens miljards[ $1]
  31. (\d{1,3})(\d{9}) $1 miljardi[ $2]
  32. 1(\d{12}) viens triljons[ $1]
  33. (\d{1,3})(\d{12}) $1 triljoni[ $2]
  34. 1(\d{15}) viens kvadriljons[ $1]
  35. (\d{1,3})(\d{15}) $1 kvadriljoni[ $2]
  36. 1(\d{18}) viens kvintiljons[ $1]
  37. (\d{1,3})(\d{18}) $1 kvintiljoni[ $2]
  38. 1(\d{21}) viens sekstiljons[ $1]
  39. (\d{1,3})(\d{21}) $1 sekstiljoni[ $2]
  40. 1(\d{24}) viens septiljons[ $1]
  41. (\d{1,3})(\d{24}) $1 septiljoni[ $2]
  42. # negative numbers
  43. [-−](\d+) mīnus |$1
  44. # decimals
  45. ([-−]?\d+)[.,] $1| komats
  46. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  47. # currency
  48. # unit/subunit
  49. us:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \1
  50. up:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \2
  51. ug:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \3
  52. ss:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \4
  53. sp:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \5
  54. sg:([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*) \6
  55. LVL:(\D+) $(\1: lats, lati,latu, santīms, santīmi, santīmu)
  56. EUR:(\D+) $(\1: eiro, eiro, eiro, cents, centi, centu)
  57. RUB:(\D+) $(\1: rublis, rubļi, rubļu, kapeika, kapeikas, kapeiku)
  58. USD:(\D+) $(\1: ASV dolārs, ASV dolāri, ASV dolāru, cents, centi, centu)
  59. "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2|$(\1:us)
  60. "([A-Z]{3}) ([-−]?\d*[02-9]1)([.,]00?)?" $2|$(\1:us)
  61. "([A-Z]{3}) ([-−]?[23456789])([.,]00?)?" $2|$(\1:up)
  62. "([A-Z]{3}) ([-−]?\d*[02-9][23456789])([.,]00?)?" $2|$(\1:up)
  63. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2|$(\1:ug)
  64. "((RUB) [-−]?\d+)[.,]([02-9])1" $1 $(\30) |$(feminine 1)$(\2:ss)
  65. "((RUB) [-−]?\d+)[.,]([02-9][23456789])" $1 $(feminine \3)$(\2:sp)
  66. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 |$(1)$(\2:ss)
  67. "(([A-Z]{3}) [-−]?\d+)[.,]([02-9])1" $1 $(\30) |$(1)$(\2:ss)
  68. "(([A-Z]{3}) [-−]?\d+)[.,]([02-9][23456789])" $1 |$3$(\2:sp)
  69. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 |$(\30)$(\2:sg)
  70. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 |$3$(\2:sg)
  71. == feminine ==
  72. ([-−]?\d+) $(feminine $1)
  73. (.*)viens viena
  74. (.*)i \1as
  75. (.*) \1
  76. == masculine ==
  77. ([-−]?\d+) $1
  78. == ordinal ==
  79. ([-−]?\d+) $(ordinal $1)
  80. (.*)viens \1pirmais
  81. (.*)divi \1otrais
  82. (.*)trīs \1trešais
  83. (.*)četri \1ceturtais
  84. (.*)pieci \1piektais
  85. (.*)seši \1sestais
  86. (.*)septiņi \1septītais
  87. (.*)astoņi \1astotais
  88. (.*)deviņi \1devītais
  89. (.*)mit \1mitais
  90. == ordinal-number ==
  91. (\d+) \1.
  92. == help ==
  93. "" $(help feminine)$(help masculine)$(help ordinal)$(help ordinal-number)
  94. (feminine|masculine|ordinal(-number)?) \1: $(\1 1), $(\1 2), $(\1 3)\n