no.sor 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ^0 null
  2. 1 éin # [:nn:] [:nn-NO:]
  3. 1 én
  4. 2 to
  5. 3 tre
  6. 4 fire
  7. 5 fem
  8. 6 seks
  9. 7 sju
  10. 8 åtte
  11. 9 ni
  12. 10 ti
  13. 11 elleve
  14. 12 tolv
  15. 13 tretten
  16. 14 fjorten
  17. 15 femten
  18. 16 seksten
  19. 17 sytten
  20. 18 atten
  21. 19 nitten
  22. 2(\d) tjue[$1]
  23. 3(\d) tretti[$1]
  24. 4(\d) førti[$1]
  25. 5(\d) femti[$1]
  26. 6(\d) seksti[$1]
  27. 7(\d) sytti[$1]
  28. 8(\d) åtti[$1]
  29. 9(\d) nitti[$1]
  30. (\d)(\d\d) $(cardinal-neuter \1) hundre[ og $2]
  31. (\d{1,3})(\d{3}) $(cardinal-neuter \1) tusen[ og $2]
  32. a:1,0+
  33. a:\d+,0+ er
  34. a:1,(\d+) " og $1"
  35. a:\d+,(\d+) "er og $1"
  36. (\d{1,3})(\d{6}) $1 million$(a:\1,\2)
  37. (\d{1,3})(\d{9}) $1 milliard$(a:\1,\2)
  38. (\d{1,3})(\d{12}) $1 billion$(a:\1,\2)
  39. (\d{1,3})(\d{15}) $1 billiard$(a:\1,\2)
  40. (\d{1,3})(\d{18}) $1 trillion$(a:\1,\2)
  41. (\d{1,3})(\d{21}) $1 trilliard$(a:\1,\2)
  42. (\d{1,3})(\d{24}) $1 kvadrillion$(a:\1,\2)
  43. # negative number
  44. [-−](\d+) minus |$1
  45. # decimals
  46. ([-−]?\d+)[.,] $1| komma
  47. "([-−]?\d+[.,]0*)(\d+)" $1 |$2
  48. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  49. # currency
  50. # unit/subunit singular/plural
  51. us:([^,]*),([^,]*),([^,]*),([^,]*) \1
  52. up:([^,]*),([^,]*),([^,]*),([^,]*) \2
  53. ss:([^,]*),([^,]*),([^,]*),([^,]*) \3
  54. sp:([^,]*),([^,]*),([^,]*),([^,]*) \4
  55. CHF:(\D+) $(\1: sveitsisk franc, sveitsisk franc, centime, centimes)
  56. CNY:(\D+) $(\1: renminbi yuan, renminbi yuan, fen, fen)
  57. DKK:(\D+) $(\1: dansk krone, danske kroner, øre, øre)
  58. EUR:(\D+) $(\1: euro, euro, cent, cent)
  59. GBP:(\D+) $(\1: britisk pund, britisk pund, penny, pence)
  60. ISK:(\D+) $(\1: islandsk krone, islandske kroner, eyrir, aurar)
  61. JPY:(\D+) $(\1: yen, yen, sen, sen)
  62. NOK:(\D+) $(\1: norsk krone, norske kroner, øre, øre)
  63. SEK:(\D+) $(\1: svensk krone, svenske kroner, øre, øre)
  64. USD:(\D+) $(\1: amerikansk dollar, amerikansk dollar, cent, cent)
  65. "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2$(\1:us)
  66. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:up)
  67. "(CNY [-−]?\d+)[.,]10?" $1 $2 jiao
  68. "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 jiao
  69. "(CNY [-−]?\d+[.,]\d)1" $1 $2 fen
  70. "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 fen
  71. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 |$(1)$(\2:ss)
  72. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 |$(\30)$(\2:sp)
  73. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 |$3$(\2:sp)
  74. == cardinal-feminine ==
  75. 1 éi
  76. == cardinal-neuter ==
  77. 1 eitt # [:nn:] [:nn-NO:]
  78. 1 ett
  79. == cardinal(-feminine|-masculine|-neuter)? ==
  80. (.*\d+) $2
  81. == ordinal ==
  82. ([-−]?\d+) $(ordinal |$1)
  83. null nullte # 0
  84. (éi?n) første # 1
  85. "(.*) én" \1 først # 1
  86. (.*)to \1annen # 2
  87. (.*)tre \1tredje # 3
  88. (.*)fire \1fjerde # 4
  89. (.*(fem|ellev|tolv|ard|on))(e|er)? \1te # 5, 11, 12, 10^6, 10^9 etc.
  90. (.*)seks \1sjette # 6
  91. (.*)tres \1tressende # 60
  92. (.*(sju|ått|ni|ti|tju|ti))e? \1ende # 7, 8, 9, 10, 20, 30, 40, 50, 70, 80, 90
  93. (.*(en|hundre|tusen)) \1de # 13-19, 100, 1000
  94. == ordinal-number ==
  95. (\d+) \1.
  96. == help ==
  97. "" |$(1)|, |$(2)|, |$(3)|\n$(help cardinal-feminine)$(help cardinal-masculine)$(help cardinal-neuter)$(help ordinal)$(help ordinal-number)
  98. (cardinal(-feminine|-masculine|-neuter)?|ordinal(-number)?) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n