| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
""" |
| 11 |
Simplified Chinese language mappings for language-dependent features of |
| 12 |
reStructuredText. |
| 13 |
""" |
| 14 |
|
| 15 |
__docformat__ = 'reStructuredText' |
| 16 |
|
| 17 |
|
| 18 |
directives = { |
| 19 |
|
| 20 |
'注意': 'attention', |
| 21 |
'小心': 'caution', |
| 22 |
'code (translation required)': 'code', |
| 23 |
'危险': 'danger', |
| 24 |
'错误': 'error', |
| 25 |
'提示': 'hint', |
| 26 |
'重要': 'important', |
| 27 |
'注解': 'note', |
| 28 |
'技巧': 'tip', |
| 29 |
'警告': 'warning', |
| 30 |
'忠告': 'admonition', |
| 31 |
'侧框': 'sidebar', |
| 32 |
'主题': 'topic', |
| 33 |
'line-block (translation required)': 'line-block', |
| 34 |
'parsed-literal (translation required)': 'parsed-literal', |
| 35 |
'醒目': 'rubric', |
| 36 |
'铭文': 'epigraph', |
| 37 |
'要点': 'highlights', |
| 38 |
'pull-quote (translation required)': 'pull-quote', |
| 39 |
'复合': 'compound', |
| 40 |
'容器': 'container', |
| 41 |
|
| 42 |
'表格': 'table', |
| 43 |
'csv表格': 'csv-table', |
| 44 |
'列表表格': 'list-table', |
| 45 |
|
| 46 |
|
| 47 |
'元数据': 'meta', |
| 48 |
'math (translation required)': 'math', |
| 49 |
|
| 50 |
'图片': 'image', |
| 51 |
'图例': 'figure', |
| 52 |
'包含': 'include', |
| 53 |
'原文': 'raw', |
| 54 |
'代替': 'replace', |
| 55 |
'统一码': 'unicode', |
| 56 |
'日期': 'date', |
| 57 |
'类型': 'class', |
| 58 |
'角色': 'role', |
| 59 |
'默认角色': 'default-role', |
| 60 |
'标题': 'title', |
| 61 |
'目录': 'contents', |
| 62 |
'章节序号': 'sectnum', |
| 63 |
'题头': 'header', |
| 64 |
'页脚': 'footer', |
| 65 |
|
| 66 |
|
| 67 |
'target-notes (translation required)': 'target-notes', |
| 68 |
'restructuredtext-test-directive': 'restructuredtext-test-directive'} |
| 69 |
"""Simplified Chinese name to registered (in directives/__init__.py) |
| 70 |
directive name mapping.""" |
| 71 |
|
| 72 |
roles = { |
| 73 |
|
| 74 |
'缩写': 'abbreviation', |
| 75 |
'简称': 'acronym', |
| 76 |
'code (translation required)': 'code', |
| 77 |
'index (translation required)': 'index', |
| 78 |
'i (translation required)': 'index', |
| 79 |
'下标': 'subscript', |
| 80 |
'上标': 'superscript', |
| 81 |
'title-reference (translation required)': 'title-reference', |
| 82 |
'title (translation required)': 'title-reference', |
| 83 |
't (translation required)': 'title-reference', |
| 84 |
'pep-reference (translation required)': 'pep-reference', |
| 85 |
'pep (translation required)': 'pep-reference', |
| 86 |
'rfc-reference (translation required)': 'rfc-reference', |
| 87 |
'rfc (translation required)': 'rfc-reference', |
| 88 |
'强调': 'emphasis', |
| 89 |
'加粗': 'strong', |
| 90 |
'字面': 'literal', |
| 91 |
'math (translation required)': 'math', |
| 92 |
'named-reference (translation required)': 'named-reference', |
| 93 |
'anonymous-reference (translation required)': 'anonymous-reference', |
| 94 |
'footnote-reference (translation required)': 'footnote-reference', |
| 95 |
'citation-reference (translation required)': 'citation-reference', |
| 96 |
'substitution-reference (translation required)': 'substitution-reference', |
| 97 |
'target (translation required)': 'target', |
| 98 |
'uri-reference (translation required)': 'uri-reference', |
| 99 |
'uri (translation required)': 'uri-reference', |
| 100 |
'url (translation required)': 'uri-reference', |
| 101 |
'raw (translation required)': 'raw', |
| 102 |
} |
| 103 |
"""Mapping of Simplified Chinese role names to canonical role names |
| 104 |
for interpreted text.""" |