zh_cn.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # $Id: zh_cn.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Pan Junyong <panjy@zopechina.com>
  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. Simplified Chinese language mappings for language-dependent features
  10. of Docutils.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. labels = {
  14. # fixed: language-dependent
  15. 'author': '作者',
  16. 'authors': '作者群',
  17. 'organization': '组织',
  18. 'address': '地址',
  19. 'contact': '联系',
  20. 'version': '版本',
  21. 'revision': '修订',
  22. 'status': '状态',
  23. 'date': '日期',
  24. 'copyright': '版权',
  25. 'dedication': '献辞',
  26. 'abstract': '摘要',
  27. 'attention': '注意',
  28. 'caution': '小心',
  29. 'danger': '危险',
  30. 'error': '错误',
  31. 'hint': '提示',
  32. 'important': '重要',
  33. 'note': '注解',
  34. 'tip': '技巧',
  35. 'warning': '警告',
  36. 'contents': '目录',
  37. }
  38. """Mapping of node class name to label text."""
  39. bibliographic_fields = {
  40. # language-dependent: fixed
  41. '作者': 'author',
  42. '作者群': 'authors',
  43. '组织': 'organization',
  44. '地址': 'address',
  45. '联系': 'contact',
  46. '版本': 'version',
  47. '修订': 'revision',
  48. '状态': 'status',
  49. '时间': 'date',
  50. '版权': 'copyright',
  51. '献辞': 'dedication',
  52. '摘要': 'abstract'}
  53. """Simplified Chinese to canonical name mapping for bibliographic fields."""
  54. author_separators = [';', ',',
  55. '\uff1b', # ';'
  56. '\uff0c', # ','
  57. '\u3001', # '、'
  58. ]
  59. """List of separator strings for the 'Authors' bibliographic field. Tried in
  60. order."""