ja.sor 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ^0 零
  2. 1 一
  3. 2 二
  4. 3 三
  5. 4 四
  6. 5 五
  7. 6 六
  8. 7 七
  9. 8 八
  10. 9 九
  11. 1(\d) 十$1
  12. (\d)(\d) $1十$2
  13. 1(\d\d) 百$1
  14. (\d)(\d\d) $1百$2
  15. 1(\d\d\d) 千$1
  16. (\d)(\d\d\d) $1千$2
  17. (\d{1,4})(\d{4}) $1万$2
  18. (\d{1,4})(\d{8}) $1億$2
  19. (\d{1,4})(\d{12}) $1兆$2
  20. (\d{1,4})(\d{16}) $1京$2
  21. (\d{1,4})(\d{20}) $1垓$2
  22. (\d{1,4})(\d{24}) $1秭$2
  23. (\d{1,4})(\d{28}) $1穣$2
  24. (\d{1,4})(\d{32}) $1溝$2
  25. (\d{1,4})(\d{36}) $1澗$2
  26. (\d{1,4})(\d{40}) $1正$2
  27. (\d{1,4})(\d{44}) $1載$2
  28. # negative numbers?
  29. [-−](\d+) 負|$1
  30. # decimals?
  31. "([-−]?\d+)[.,]" "$1・"
  32. "([-−]?\d+[.,]\d*)(\d)" $1||$2
  33. # currency
  34. # unit/subunit singular/plural
  35. JPY 円
  36. "([A-Z]{3}) ([-−]?\d+([.,]\d+)?)" $2$1
  37. # formal numbers (大字) for legal and financial documents
  38. == formal ==
  39. ^0 零
  40. 1 壱
  41. 2 弐
  42. 3 参
  43. 4 四
  44. 5 五
  45. 6 六
  46. 7 七
  47. 8 八
  48. 9 九
  49. 1(\d) 拾$(formal \1)
  50. (\d)(\d) $(formal \1)拾$(formal \2)
  51. 1(\d\d) 百$(formal \1)
  52. (\d)(\d\d) $(formal \1)百$(formal \2)
  53. 1(\d\d\d) 千$(formal \1)
  54. (\d)(\d\d\d) $(formal \1)千$(formal \2)
  55. (\d{1,4})(\d{4}) $(formal \1)万$(formal \2)
  56. (\d{1,4})(\d{8}) $(formal \1)億$(formal \2)
  57. (\d{1,4})(\d{12}) $(formal \1)兆$(formal \2)
  58. (\d{1,4})(\d{16}) $(formal \1)京$(formal \2)
  59. (\d{1,4})(\d{20}) $(formal \1)垓$(formal \2)
  60. (\d{1,4})(\d{24}) $(formal \1)秭$(formal \2)
  61. (\d{1,4})(\d{28}) $(formal \1)穣$(formal \2)
  62. (\d{1,4})(\d{32}) $(formal \1)溝$(formal \2)
  63. (\d{1,4})(\d{36}) $(formal \1)澗$(formal \2)
  64. (\d{1,4})(\d{40}) $(formal \1)正$(formal \2)
  65. (\d{1,4})(\d{44}) $(formal \1)載$(formal \2)
  66. # negative numbers?
  67. [-−](\d+) 負|$(formal \1)
  68. # decimals
  69. "([-−]?\d+)[.,]" "$(formal \1)・"
  70. "([-−]?\d+[.,]\d*)(\d)" $(formal \1)||$(formal \2)
  71. # currency
  72. # unit/subunit singular/plural
  73. JPY 円
  74. "([A-Z]{3}) ([-−]?\d+([.,]\d+)?)" $(formal \2)$(formal \1)
  75. == help ==
  76. "" |$(1)|, |$(2)|, |$(3)|\n$(help formal)
  77. (formal) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n