Debian Codegraph @

docutils/parsers/rst/languages/de.py

raw symbols SCIP
1 # $Id: de.py 9782 2024-07-29 12:37:02Z milde $
2 # Authors: Engelbert Gruber <[email protected]>;
3 # Lea Wiemann <[email protected]>
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 <https://docutils.sourceforge.io/docs/howto/i18n.html>.
8 # Two files must be translated for each language: one in docutils/languages,
9 # the other in docutils/parsers/rst/languages.
10
11 """
12 German-language mappings for language-dependent features of
13 reStructuredText.
14 """
15
16 __docformat__ = 'reStructuredText'
17
18
19 directives = {
20 'warnhinweis': 'admonition', # or, more generally, 'anmerkung'?
21 'achtung': 'attention',
22 'vorsicht': 'caution',
23 'code': 'code',
24 'gefahr': 'danger',
25 'fehler': 'error',
26 'hinweis': 'hint', # Wink
27 'wichtig': 'important',
28 'notiz': 'note',
29 'tipp': 'tip',
30 'warnung': 'warning',
31 'kasten': 'sidebar',
32 'seitenkasten': 'sidebar', # kept for backwards compatibiltity
33 'seitenleiste': 'sidebar',
34 'thema': 'topic',
35 'zeilenblock': 'line-block',
36 'parsed-literal (translation required)': 'parsed-literal',
37 'rubrik': 'rubric',
38 'epigraph': 'epigraph',
39 'highlights': 'highlights',
40 'pull-quote': 'pull-quote', # commonly used in German too
41 'seitenansprache': 'pull-quote',
42 # cf. http://www.typografie.info/2/wiki.php?title=Seitenansprache
43 'zusammengesetzt': 'compound',
44 'verbund': 'compound',
45 'container': 'container',
46 # 'fragen': 'questions',
47 'tabelle': 'table',
48 'csv-tabelle': 'csv-table',
49 'listentabelle': 'list-table',
50 'mathe': 'math',
51 'formel': 'math',
52 'meta': 'meta',
53 # 'imagemap': 'imagemap',
54 'bild': 'image',
55 'abbildung': 'figure',
56 'unverändert': 'raw',
57 'roh': 'raw',
58 'einfügen': 'include',
59 'ersetzung': 'replace',
60 'ersetzen': 'replace',
61 'ersetze': 'replace',
62 'unicode': 'unicode',
63 'datum': 'date',
64 'klasse': 'class',
65 'rolle': 'role',
66 'standardrolle': 'default-role',
67 'titel': 'title',
68 'inhalt': 'contents',
69 'kapitelnummerierung': 'sectnum',
70 'abschnittsnummerierung': 'sectnum',
71 'linkziel-fußnoten': 'target-notes',
72 'kopfzeilen': 'header',
73 'fußzeilen': 'footer',
74 # 'fußnoten': 'footnotes',
75 # 'zitate': 'citations',
76 }
77 """German name to registered (in directives/__init__.py) directive name
78 mapping."""
79
80 roles = {
81 'abkürzung': 'abbreviation',
82 'akronym': 'acronym',
83 'code': 'code',
84 'index': 'index',
85 'tiefgestellt': 'subscript',
86 'hochgestellt': 'superscript',
87 'titel-referenz': 'title-reference',
88 'pep-referenz': 'pep-reference',
89 'rfc-referenz': 'rfc-reference',
90 'betonung': 'emphasis', # for backwards compatibility
91 'betont': 'emphasis',
92 'fett': 'strong',
93 'wörtlich': 'literal',
94 'mathe': 'math',
95 'benannte-referenz': 'named-reference',
96 'unbenannte-referenz': 'anonymous-reference',
97 'fußnoten-referenz': 'footnote-reference',
98 'zitat-referenz': 'citation-reference',
99 'ersetzungs-referenz': 'substitution-reference',
100 'ziel': 'target',
101 'uri-referenz': 'uri-reference',
102 'unverändert': 'raw',
103 'roh': 'raw',
104 }
105 """Mapping of German role names to canonical role names for interpreted text.
106 """