| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
""" |
| 11 |
English-language mappings for language-dependent features of Docutils. |
| 12 |
""" |
| 13 |
|
| 14 |
__docformat__ = 'reStructuredText' |
| 15 |
|
| 16 |
labels = { |
| 17 |
|
| 18 |
'author': 'dummy Author', |
| 19 |
'authors': 'dummy Authors', |
| 20 |
'organization': 'dummy Organization', |
| 21 |
'address': 'dummy Address', |
| 22 |
'contact': 'dummy Contact', |
| 23 |
'version': 'dummy Version', |
| 24 |
'revision': 'dummy Revision', |
| 25 |
'status': 'dummy Status', |
| 26 |
'date': 'dummy Date', |
| 27 |
'copyright': 'dummy Copyright', |
| 28 |
'dedication': 'dummy Dedication', |
| 29 |
'abstract': 'dummy Abstract', |
| 30 |
'attention': 'dummy Attention!', |
| 31 |
'caution': 'dummy Caution!', |
| 32 |
'danger': 'dummy !DANGER!', |
| 33 |
'error': 'dummy Error', |
| 34 |
'hint': 'dummy Hint', |
| 35 |
'important': 'dummy Important', |
| 36 |
'note': 'dummy Note', |
| 37 |
'tip': 'dummy Tip', |
| 38 |
'warning': 'dummy Warning', |
| 39 |
'contents': 'dummy Contents'} |
| 40 |
"""Mapping of node class name to label text.""" |
| 41 |
|
| 42 |
bibliographic_fields = { |
| 43 |
|
| 44 |
'dummy author': 'author', |
| 45 |
'dummy authors': 'authors', |
| 46 |
'dummy organization': 'organization', |
| 47 |
'dummy address': 'address', |
| 48 |
'dummy contact': 'contact', |
| 49 |
'dummy version': 'version', |
| 50 |
'dummy revision': 'revision', |
| 51 |
'dummy status': 'status', |
| 52 |
'dummy date': 'date', |
| 53 |
'dummy copyright': 'copyright', |
| 54 |
'dummy dedication': 'dedication', |
| 55 |
'dummy abstract': 'abstract'} |
| 56 |
"""English (lowcased) to canonical name mapping for bibliographic fields.""" |
| 57 |
|
| 58 |
author_separators = [';', ','] |
| 59 |
"""List of separator strings for the 'Authors' bibliographic field. Tried in |
| 60 |
order.""" |
| 61 |
|
| 62 |
directives = { |
| 63 |
|
| 64 |
'dummy-attention': 'attention', |
| 65 |
'dummy-caution': 'caution', |
| 66 |
'dummy-code': 'code', |
| 67 |
'dummy-code-block': 'code', |
| 68 |
'dummy-sourcecode': 'code', |
| 69 |
'dummy-danger': 'danger', |
| 70 |
'dummy-error': 'error', |
| 71 |
'dummy-hint': 'hint', |
| 72 |
'dummy-important': 'important', |
| 73 |
'dummy-note': 'note', |
| 74 |
'dummy-tip': 'tip', |
| 75 |
'dummy-warning': 'warning', |
| 76 |
'dummy-admonition': 'admonition', |
| 77 |
'dummy-sidebar': 'sidebar', |
| 78 |
'dummy-topic': 'topic', |
| 79 |
'dummy-line-block': 'line-block', |
| 80 |
'dummy-parsed-literal': 'parsed-literal', |
| 81 |
'dummy-rubric': 'rubric', |
| 82 |
'dummy-epigraph': 'epigraph', |
| 83 |
'dummy-highlights': 'highlights', |
| 84 |
'dummy-pull-quote': 'pull-quote', |
| 85 |
'dummy-compound': 'compound', |
| 86 |
'dummy-container': 'container', |
| 87 |
|
| 88 |
'dummy-table': 'table', |
| 89 |
'dummy-csv-table': 'csv-table', |
| 90 |
'dummy-list-table': 'list-table', |
| 91 |
|
| 92 |
|
| 93 |
'dummy-meta': 'meta', |
| 94 |
'dummy-math': 'math', |
| 95 |
|
| 96 |
'dummy-image': 'image', |
| 97 |
'dummy-figure': 'figure', |
| 98 |
'dummy-include': 'include', |
| 99 |
'dummy-raw': 'raw', |
| 100 |
'dummy-replace': 'replace', |
| 101 |
'dummy-unicode': 'unicode', |
| 102 |
'dummy-date': 'date', |
| 103 |
'dummy-class': 'class', |
| 104 |
'dummy-role': 'role', |
| 105 |
'dummy-default-role': 'default-role', |
| 106 |
'dummy-title': 'title', |
| 107 |
'dummy-contents': 'contents', |
| 108 |
'dummy-sectnum': 'sectnum', |
| 109 |
'dummy-section-numbering': 'sectnum', |
| 110 |
'dummy-header': 'header', |
| 111 |
'dummy-footer': 'footer', |
| 112 |
|
| 113 |
|
| 114 |
'dummy-target-notes': 'target-notes', |
| 115 |
'dummy-restructuredtext-test-directive': 'restructuredtext-test-directive', |
| 116 |
} |
| 117 |
"""English name to registered (in directives/__init__.py) directive name |
| 118 |
mapping.""" |
| 119 |
|
| 120 |
roles = { |
| 121 |
|
| 122 |
'dummy abbreviation': 'abbreviation', |
| 123 |
'dummy ab': 'abbreviation', |
| 124 |
'dummy acronym': 'acronym', |
| 125 |
'dummy ac': 'acronym', |
| 126 |
'dummy code': 'code', |
| 127 |
'dummy index': 'index', |
| 128 |
'dummy i': 'index', |
| 129 |
'dummy subscript': 'subscript', |
| 130 |
'dummy sub': 'subscript', |
| 131 |
'dummy superscript': 'superscript', |
| 132 |
'dummy sup': 'superscript', |
| 133 |
'dummy title-reference': 'title-reference', |
| 134 |
'dummy title': 'title-reference', |
| 135 |
'dummy t': 'title-reference', |
| 136 |
'dummy pep-reference': 'pep-reference', |
| 137 |
'dummy pep': 'pep-reference', |
| 138 |
'dummy rfc-reference': 'rfc-reference', |
| 139 |
'dummy rfc': 'rfc-reference', |
| 140 |
'dummy emphasis': 'emphasis', |
| 141 |
'dummy strong': 'strong', |
| 142 |
'dummy literal': 'literal', |
| 143 |
'dummy math': 'math', |
| 144 |
'dummy named-reference': 'named-reference', |
| 145 |
'dummy anonymous-reference': 'anonymous-reference', |
| 146 |
'dummy footnote-reference': 'footnote-reference', |
| 147 |
'dummy citation-reference': 'citation-reference', |
| 148 |
'dummy substitution-reference': 'substitution-reference', |
| 149 |
'dummy target': 'target', |
| 150 |
'dummy uri-reference': 'uri-reference', |
| 151 |
'dummy uri': 'uri-reference', |
| 152 |
'dummy url': 'uri-reference', |
| 153 |
'dummy raw': 'raw'} |
| 154 |
"""Mapping of English role names to canonical role names for interpreted text. |
| 155 |
""" |