zh_tw.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # $Id: zh_tw.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Joe YS Jaw <joeysj@users.sourceforge.net>
  3. # Copyright: This module has been placed in the public domain.
  4. # New language mappings are welcome. Before doing a new translation, please
  5. # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
  6. # Two files must be translated for each language: one in docutils/languages,
  7. # the other in docutils/parsers/rst/languages.
  8. """
  9. Traditional Chinese language mappings for language-dependent features.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. # fixed: language-dependent
  14. 'author': '\u4f5c\u8005', # '作者' <-- Chinese word
  15. 'authors': '\u4f5c\u8005\u7fa4', # '作者群',
  16. 'organization': '\u7d44\u7e54', # '組織',
  17. 'address': '\u5730\u5740', # '地址',
  18. 'contact': '\u9023\u7d61', # '連絡',
  19. 'version': '\u7248\u672c', # '版本',
  20. 'revision': '\u4fee\u8a02', # '修訂',
  21. 'status': '\u72c0\u614b', # '狀態',
  22. 'date': '\u65e5\u671f', # '日期',
  23. 'copyright': '\u7248\u6b0a', # '版權',
  24. 'dedication': '\u984c\u737b', # '題獻',
  25. 'abstract': '\u6458\u8981', # '摘要',
  26. 'attention': '\u6ce8\u610f\uff01', # '注意!',
  27. 'caution': '\u5c0f\u5fc3\uff01', # '小心!',
  28. 'danger': '\uff01\u5371\u96aa\uff01', # '!危險!',
  29. 'error': '\u932f\u8aa4', # '錯誤',
  30. 'hint': '\u63d0\u793a', # '提示',
  31. 'important': '\u91cd\u8981', # '注意!',
  32. 'note': '\u8a3b\u91cb', # '註釋',
  33. 'tip': '\u79d8\u8a23', # '秘訣',
  34. 'warning': '\u8b66\u544a', # '警告',
  35. 'contents': '\u76ee\u9304', # '目錄'
  36. }
  37. """Mapping of node class name to label text."""
  38. bibliographic_fields = {
  39. # language-dependent: fixed
  40. 'author (translation required)': 'author',
  41. 'authors (translation required)': 'authors',
  42. 'organization (translation required)': 'organization',
  43. 'address (translation required)': 'address',
  44. 'contact (translation required)': 'contact',
  45. 'version (translation required)': 'version',
  46. 'revision (translation required)': 'revision',
  47. 'status (translation required)': 'status',
  48. 'date (translation required)': 'date',
  49. 'copyright (translation required)': 'copyright',
  50. 'dedication (translation required)': 'dedication',
  51. 'abstract (translation required)': 'abstract'}
  52. """Traditional Chinese to canonical name mapping for bibliographic fields."""
  53. author_separators = [';', ',',
  54. '\uff1b', # ';'
  55. '\uff0c', # ','
  56. '\u3001', # '、'
  57. ]
  58. """List of separator strings for the 'Authors' bibliographic field. Tried in
  59. order."""