chinese.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Chinese numerals map.
  2. #
  3. # All other Chinese mappings are kept in _chinese_base.yml. This mapping only
  4. # adds an overlay for parsing numerals and Scriptshifter-specific features.
  5. ---
  6. general:
  7. name: Chinese
  8. parents:
  9. - _chinese_base
  10. case_sensitive: false
  11. options:
  12. - id: marc_field
  13. label: MARC field
  14. description: >
  15. Romanize according to a specific MARC field format. If indicating a
  16. subfield, append it to the numeric field value , e.g. \'245n\'.
  17. Leave blank if not applicable.
  18. type: string
  19. default:
  20. script_to_roman:
  21. directives:
  22. # Capitalize the first letter of the string only; TODO
  23. # Implement a list that includes all punctuation marks that
  24. # want the following letter capitalized.
  25. capitalize: true
  26. hooks:
  27. pre_assembly:
  28. -
  29. - chinese.parse_numerals_pre_assembly
  30. map:
  31. "〇": "ling#0 "
  32. "零": "ling#0 "
  33. "一": "yi#1 "
  34. "二": "er#2 "
  35. "兩": "liang#2 "
  36. "两": "liang#2 "
  37. "三": "san#3 "
  38. "四": "si#4 "
  39. "五": "wu#5 "
  40. "六": "liu#6 "
  41. "七": "qi#7 "
  42. "八": "ba#8 "
  43. "九": "jiu#9 "
  44. "十": "shi#10 "
  45. "廾": "gong#20 "
  46. "廿": "nian#20 "
  47. "卅": "sa#30 "
  48. "卌": "xi#40 "
  49. "百": "bai#100 "
  50. "千": "qian#1000 "
  51. "万": "wan#10000 "
  52. "萬": "wan#10000 "
  53. "亿": "yi#100000000 "
  54. "億": "yi#100000000 "
  55. "及": "ji# "
  56. "至": "zhi# "
  57. "年": "nian# "
  58. "月": "yue# "
  59. "日": "ri# "
  60. "第": "di# "