summaryrefslogtreecommitdiff
path: root/docutils/languages/zh_cn.py
diff options
context:
space:
mode:
Diffstat (limited to 'docutils/languages/zh_cn.py')
-rw-r--r--docutils/languages/zh_cn.py69
1 files changed, 69 insertions, 0 deletions
diff --git a/docutils/languages/zh_cn.py b/docutils/languages/zh_cn.py
new file mode 100644
index 000000000..4f8e06ee8
--- /dev/null
+++ b/docutils/languages/zh_cn.py
@@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*-
+# Author: Pan Junyong
+# Contact: panjy@zopechina.com
+# Revision: $Revision$
+# Date: $Date$
+# Copyright: This module has been placed in the public domain.
+
+# New language mappings are welcome. Before doing a new translation, please
+# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
+# translated for each language: one in docutils/languages, the other in
+# docutils/parsers/rst/languages.
+
+"""
+Simplified Chinese language mappings for language-dependent features
+of Docutils.
+"""
+
+__docformat__ = 'reStructuredText'
+
+labels = {
+ # fixed: language-dependent
+ 'author': u'作者',
+ 'authors': u'作者群',
+ 'organization': u'组织',
+ 'address': u'地址',
+ 'contact': u'联系',
+ 'version': u'版本',
+ 'revision': u'修订',
+ 'status': u'状态',
+ 'date': u'日期',
+ 'copyright': u'版权',
+ 'dedication': u'献辞',
+ 'abstract': u'摘要',
+ 'attention': u'注意',
+ 'caution': u'小心',
+ 'danger': u'危险',
+ 'error': u'错误',
+ 'hint': u'提示',
+ 'important': u'重要',
+ 'note': u'注解',
+ 'tip': u'技巧',
+ 'warning': u'警告',
+ 'contents': u'目录',
+}
+"""Mapping of node class name to label text."""
+
+bibliographic_fields = {
+ # language-dependent: fixed
+ u'作者': 'author',
+ u'作者群': 'authors',
+ u'组织': 'organization',
+ u'地址': 'address',
+ u'联系': 'contact',
+ u'版本': 'version',
+ u'修订': 'revision',
+ u'状态': 'status',
+ u'时间': 'date',
+ u'版权': 'copyright',
+ u'献辞': 'dedication',
+ u'摘要': 'abstract'}
+"""Simplified Chinese to canonical name mapping for bibliographic fields."""
+
+author_separators = [';', ',',
+ u'\uff1b', # ';'
+ u'\uff0c', # ','
+ u'\u3001', # '、'
+ ]
+"""List of separator strings for the 'Authors' bibliographic field. Tried in
+order."""