aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py')
-rw-r--r--.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py107
1 files changed, 107 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py b/.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py
new file mode 100644
index 00000000..4b7ef8e0
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/docutils/parsers/rst/languages/de.py
@@ -0,0 +1,107 @@
+# $Id: de.py 9428 2023-07-07 06:50:26Z milde $
+# Authors: Engelbert Gruber <grubert@users.sourceforge.net>;
+# Lea Wiemann <LeWiemann@gmail.com>
+# Copyright: This module has been placed in the public domain.
+
+# New language mappings are welcome. Before doing a new translation, please
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
+
+"""
+German-language mappings for language-dependent features of
+reStructuredText.
+"""
+
+__docformat__ = 'reStructuredText'
+
+
+directives = {
+ 'warnhinweis': 'admonition', # or, more generally, 'anmerkung'?
+ 'ermahnung': 'admonition', # sic! kept for backwards compatibiltity
+ 'achtung': 'attention',
+ 'vorsicht': 'caution',
+ 'code': 'code',
+ 'gefahr': 'danger',
+ 'fehler': 'error',
+ 'hinweis': 'hint', # Wink
+ 'wichtig': 'important',
+ 'notiz': 'note',
+ 'tipp': 'tip',
+ 'warnung': 'warning',
+ 'kasten': 'sidebar',
+ 'seitenkasten': 'sidebar', # kept for backwards compatibiltity
+ 'seitenleiste': 'sidebar',
+ 'thema': 'topic',
+ 'zeilenblock': 'line-block',
+ 'parsed-literal (translation required)': 'parsed-literal',
+ 'rubrik': 'rubric',
+ 'epigraph': 'epigraph',
+ 'highlights': 'highlights',
+ 'pull-quote': 'pull-quote', # commonly used in German too
+ 'seitenansprache': 'pull-quote',
+ # cf. http://www.typografie.info/2/wiki.php?title=Seitenansprache
+ 'zusammengesetzt': 'compound',
+ 'verbund': 'compound',
+ 'container': 'container',
+ # 'fragen': 'questions',
+ 'tabelle': 'table',
+ 'csv-tabelle': 'csv-table',
+ 'listentabelle': 'list-table',
+ 'mathe': 'math',
+ 'formel': 'math',
+ 'meta': 'meta',
+ # 'imagemap': 'imagemap',
+ 'bild': 'image',
+ 'abbildung': 'figure',
+ 'unverändert': 'raw',
+ 'roh': 'raw',
+ 'einfügen': 'include',
+ 'ersetzung': 'replace',
+ 'ersetzen': 'replace',
+ 'ersetze': 'replace',
+ 'unicode': 'unicode',
+ 'datum': 'date',
+ 'klasse': 'class',
+ 'rolle': 'role',
+ 'standardrolle': 'default-role',
+ 'titel': 'title',
+ 'inhalt': 'contents',
+ 'kapitelnummerierung': 'sectnum',
+ 'abschnittsnummerierung': 'sectnum',
+ 'linkziel-fußnoten': 'target-notes',
+ 'kopfzeilen': 'header',
+ 'fußzeilen': 'footer',
+ # 'fußnoten': 'footnotes',
+ # 'zitate': 'citations',
+ }
+"""German name to registered (in directives/__init__.py) directive name
+mapping."""
+
+roles = {
+ 'abkürzung': 'abbreviation',
+ 'akronym': 'acronym',
+ 'code': 'code',
+ 'index': 'index',
+ 'tiefgestellt': 'subscript',
+ 'hochgestellt': 'superscript',
+ 'titel-referenz': 'title-reference',
+ 'pep-referenz': 'pep-reference',
+ 'rfc-referenz': 'rfc-reference',
+ 'betonung': 'emphasis', # for backwards compatibility
+ 'betont': 'emphasis',
+ 'fett': 'strong',
+ 'wörtlich': 'literal',
+ 'mathe': 'math',
+ 'benannte-referenz': 'named-reference',
+ 'unbenannte-referenz': 'anonymous-reference',
+ 'fußnoten-referenz': 'footnote-reference',
+ 'zitat-referenz': 'citation-reference',
+ 'ersetzungs-referenz': 'substitution-reference',
+ 'ziel': 'target',
+ 'uri-referenz': 'uri-reference',
+ 'unverändert': 'raw',
+ 'roh': 'raw',
+ }
+"""Mapping of German role names to canonical role names for interpreted text.
+"""