ko.sor 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ^0 령 # [:ko-KP:]
  2. ^0 영
  3. 1 일
  4. 2 이
  5. 3 삼
  6. 4 사
  7. 5 오
  8. 6 륙 # [:ko-KP:]
  9. 6 육
  10. 7 칠
  11. 8 팔
  12. 9 구
  13. 1(\d) 십$1
  14. (\d)(\d) $1십$2
  15. 1(\d\d) 백$1
  16. (\d)(\d\d) $1백$2
  17. 1(\d\d\d) 천$1
  18. (\d)(\d\d\d) $1천$2
  19. (\d{1,4})(\d{4}) $1만$2
  20. (\d{1,4})(\d{8}) $1억$2
  21. (\d{1,4})(\d{12}) $1조$2
  22. (\d{1,4})(\d{16}) $1경$2
  23. (\d{1,4})(\d{20}) $1해$2
  24. (\d{1,4})(\d{24}) $1자$2
  25. (\d{1,4})(\d{28}) $1양$2
  26. (\d{1,4})(\d{32}) $1구$2
  27. (\d{1,4})(\d{36}) $1간$2
  28. (\d{1,4})(\d{40}) $1정$2
  29. (\d{1,4})(\d{44}) $1재$2
  30. (\d{1,4})(\d{52}) $1극$2
  31. # negative numbers
  32. [-−](\d+) 음수|$1
  33. # decimals?
  34. "([-−]?\d+)[.]" "$1|점"
  35. "([-−]?\d+[.]\d*)(\d)" $1||$2
  36. # currency
  37. # unit/subunit
  38. us:([^,]*),([^,]*),([^,]*),([^,]*) \1
  39. up:([^,]*),([^,]*),([^,]*),([^,]*) \2
  40. ss:([^,]*),([^,]*),([^,]*),([^,]*) \3
  41. sp:([^,]*),([^,]*),([^,]*),([^,]*) \4
  42. AUD:(\D+) $(\1: 호주달러, 호주달러, 센트, 센트)
  43. EUR:(\D+) $(\1: 유로, 유로, 센트, 센트)
  44. GBP:(\D+) $(\1: 파운드, 파운드, 페니, 펜스)
  45. CNY:(\D+) $(\1:위안, 위안, 펀, 펀)
  46. TWD:(\D+) $(\1:대만달러, 대만달러, 펀, 펀)
  47. HKD:(\D+) $(\1:홍콩달러, 홍콩달러, 센트, 센트)
  48. JPY:(\D+) $(\1:엔, 엔, 센, 센)
  49. KPW:(\D+) $(\1:원, 원 전, 전)
  50. KRW:(\D+) $(\1:원, 원, 전, 전)
  51. SGD:(\D+) $(\1: 싱가포르달러, 싱가포르달러, 센트, 센트)
  52. THB:(\D+) $(\1: 바트, 바트, 사탕, 사탕)
  53. USD:(\D+) $(\1:달러, 달러, 센트, 센트)
  54. "(JPY [-−]?\d+)[.](\d\d)0" $1
  55. "(JPY [-−]?\d+[.]\d\d)(\d)" $1 $2 린
  56. "([A-Z]{3}) ([-−]?1)([.]00?)?" $2$(\1:us)
  57. "([A-Z]{3}) ([-−]?\d+)([.]00?)?" $2$(\1:up)
  58. "(CNY [-−]?\d+)[.](\d)0?" $1 $2 자오
  59. "(CNY [-−]?\d+[.]\d)(\d)" $1 $2 펀
  60. "(TWD [-−]?\d+)[.](\d)0?" $1 $2 자오
  61. "(TWD [-−]?\d+[.]\d)(\d)" $1 $2 펀
  62. "(([A-Z]{3}) [-−]?\d+)[.](01)" $1 |$(1)$(\2:ss)
  63. "(([A-Z]{3}) [-−]?\d+)[.](\d)" $1 |$(\30)$(\2:sp)
  64. "(([A-Z]{3}) [-−]?\d+)[.](\d\d)" $1 |$3$(\2:sp)
  65. == money ==
  66. "(JPY [-−]?\d+)[.](\d\d)0" $1
  67. "(JPY [-−]?\d+[.]\d\d)(\d)" $1 $2 린
  68. "([A-Z]{3}) ([-−]?1)([.]00?)?" $2$(\1:us)
  69. "([A-Z]{3}) ([-−]?\d+)([.]00?)?" $2$(\1:up)
  70. "(CNY [-−]?\d+)[.](\d)0?" $1 $2 자오
  71. "(CNY [-−]?\d+[.]\d)(\d)" $1 $2 펀
  72. "(TWD [-−]?\d+)[.](\d)0?" $1 $2 자오
  73. "(TWD [-−]?\d+[.]\d)(\d)" $1 $2 펀
  74. "([A-Z]{3}) ([-−]?1)" $2$(\1:us)
  75. "([A-Z]{3}) ([-−]?\d+)" $2$(\1:up)
  76. "(([A-Z]{3}) ([-−]?\d+))[.](01)" $3 and 1/100$(\2:us)
  77. "(([A-Z]{3}) ([-−]?\d+))[.](\d)" $3 and \40/100$(\2:up)
  78. "(([A-Z]{3}) ([-−]?\d+))[.](\d\d)" $3 and \4/100$(\2:up)
  79. "(([A-Z]{3}) ([-−]?\d+))[.](\d\d\d)" $3 and \4/1000$(\2:up)