|
1 # -*- coding: utf-8 -*- |
|
2 # $Id: zh_cn.py 4564 2006-05-21 20:44:42Z wiemann $ |
|
3 # Author: Panjunyong <panjy@zopechina.com> |
|
4 # Copyright: This module has been placed in the public domain. |
|
5 |
|
6 # New language mappings are welcome. Before doing a new translation, please |
|
7 # read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be |
|
8 # translated for each language: one in docutils/languages, the other in |
|
9 # docutils/parsers/rst/languages. |
|
10 |
|
11 """ |
|
12 Simplified Chinese language mappings for language-dependent features of |
|
13 reStructuredText. |
|
14 """ |
|
15 |
|
16 __docformat__ = 'reStructuredText' |
|
17 |
|
18 |
|
19 directives = { |
|
20 # language-dependent: fixed |
|
21 u'注意': 'attention', |
|
22 u'小心': 'caution', |
|
23 u'危险': 'danger', |
|
24 u'错误': 'error', |
|
25 u'提示': 'hint', |
|
26 u'重要': 'important', |
|
27 u'注解': 'note', |
|
28 u'技巧': 'tip', |
|
29 u'警告': 'warning', |
|
30 u'忠告': 'admonition', |
|
31 u'侧框': 'sidebar', |
|
32 u'主题': 'topic', |
|
33 u'line-block (translation required)': 'line-block', |
|
34 u'parsed-literal (translation required)': 'parsed-literal', |
|
35 u'醒目': 'rubric', |
|
36 u'铭文': 'epigraph', |
|
37 u'要点': 'highlights', |
|
38 u'pull-quote (translation required)': 'pull-quote', |
|
39 u'复合': 'compound', |
|
40 u'容器': 'container', |
|
41 #u'questions (translation required)': 'questions', |
|
42 u'表格': 'table', |
|
43 u'csv表格': 'csv-table', |
|
44 u'列表表格': 'list-table', |
|
45 #u'qa (translation required)': 'questions', |
|
46 #u'faq (translation required)': 'questions', |
|
47 u'元数据': 'meta', |
|
48 #u'imagemap (translation required)': 'imagemap', |
|
49 u'图片': 'image', |
|
50 u'图例': 'figure', |
|
51 u'包含': 'include', |
|
52 u'原文': 'raw', |
|
53 u'代替': 'replace', |
|
54 u'统一码': 'unicode', |
|
55 u'日期': 'date', |
|
56 u'类型': 'class', |
|
57 u'角色': 'role', |
|
58 u'默认角色': 'default-role', |
|
59 u'标题': 'title', |
|
60 u'目录': 'contents', |
|
61 u'章节序号': 'sectnum', |
|
62 u'题头': 'header', |
|
63 u'页脚': 'footer', |
|
64 #u'footnotes (translation required)': 'footnotes', |
|
65 #u'citations (translation required)': 'citations', |
|
66 u'target-notes (translation required)': 'target-notes', |
|
67 u'restructuredtext-test-directive': 'restructuredtext-test-directive'} |
|
68 """Simplified Chinese name to registered (in directives/__init__.py) |
|
69 directive name mapping.""" |
|
70 |
|
71 roles = { |
|
72 # language-dependent: fixed |
|
73 u'缩写': 'abbreviation', |
|
74 u'简称': 'acronym', |
|
75 u'index (translation required)': 'index', |
|
76 u'i (translation required)': 'index', |
|
77 u'下标': 'subscript', |
|
78 u'上标': 'superscript', |
|
79 u'title-reference (translation required)': 'title-reference', |
|
80 u'title (translation required)': 'title-reference', |
|
81 u't (translation required)': 'title-reference', |
|
82 u'pep-reference (translation required)': 'pep-reference', |
|
83 u'pep (translation required)': 'pep-reference', |
|
84 u'rfc-reference (translation required)': 'rfc-reference', |
|
85 u'rfc (translation required)': 'rfc-reference', |
|
86 u'强调': 'emphasis', |
|
87 u'加粗': 'strong', |
|
88 u'字面': 'literal', |
|
89 u'named-reference (translation required)': 'named-reference', |
|
90 u'anonymous-reference (translation required)': 'anonymous-reference', |
|
91 u'footnote-reference (translation required)': 'footnote-reference', |
|
92 u'citation-reference (translation required)': 'citation-reference', |
|
93 u'substitution-reference (translation required)': 'substitution-reference', |
|
94 u'target (translation required)': 'target', |
|
95 u'uri-reference (translation required)': 'uri-reference', |
|
96 u'uri (translation required)': 'uri-reference', |
|
97 u'url (translation required)': 'uri-reference', |
|
98 u'raw (translation required)': 'raw',} |
|
99 """Mapping of Simplified Chinese role names to canonical role names |
|
100 for interpreted text.""" |