Debian Codegraph @

docutils/parsers/rst/languages/da.py

raw symbols SCIP
1 # $Id: da.py 9782 2024-07-29 12:37:02Z milde $
2 # Author: E D
3 # Copyright: This module has been placed in the public domain.
4
5 # New language mappings are welcome. Before doing a new translation, please
6 # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
7 # Two files must be translated for each language: one in docutils/languages,
8 # the other in docutils/parsers/rst/languages.
9
10 """
11 Danish-language mappings for language-dependent features of
12 reStructuredText.
13 """
14
15 __docformat__ = 'reStructuredText'
16
17
18 directives = {
19 # language-dependent: fixed
20 'giv agt': 'attention',
21 'pas på': 'caution',
22 'kode': 'code',
23 'kode-blok': 'code',
24 'kildekode': 'code',
25 'fare': 'danger',
26 'fejl': 'error',
27 'vink': 'hint',
28 'vigtigt': 'important',
29 'bemærk': 'note',
30 'tips': 'tip',
31 'advarsel': 'warning',
32 'varsel': 'admonition',
33 'sidebjælke': 'sidebar',
34 'emne': 'topic',
35 'linje-blok': 'line-block',
36 'linie-blok': 'line-block',
37 'parset-literal': 'parsed-literal',
38 'rubrik': 'rubric',
39 'epigraf': 'epigraph',
40 'fremhævninger': 'highlights',
41 'pull-quote (translation required)': 'pull-quote',
42 'compound (translation required)': 'compound',
43 'container (translation required)': 'container',
44 # 'questions': 'questions',
45 'tabel': 'table',
46 'csv-tabel': 'csv-table',
47 'liste-tabel': 'list-table',
48 # 'qa': 'questions',
49 # 'faq': 'questions',
50 'meta': 'meta',
51 'math (translation required)': 'math',
52 # 'imagemap': 'imagemap',
53 'billede': 'image',
54 'figur': 'figure',
55 'inkludér': 'include',
56 'inkluder': 'include',
57 'rå': 'raw',
58 'erstat': 'replace',
59 'unicode': 'unicode',
60 'dato': 'date',
61 'klasse': 'class',
62 'rolle': 'role',
63 'forvalgt-rolle': 'default-role',
64 'titel': 'title',
65 'indhold': 'contents',
66 'sektnum': 'sectnum',
67 'sektions-nummerering': 'sectnum',
68 'sidehovede': 'header',
69 'sidefod': 'footer',
70 # 'footnotes': 'footnotes',
71 # 'citations': 'citations',
72 'target-notes (translation required)': 'target-notes',
73 'restructuredtext-test-direktiv': 'restructuredtext-test-directive'}
74 """Danish name to registered (in directives/__init__.py) directive name
75 mapping."""
76
77 roles = {
78 # language-dependent: fixed
79 'forkortelse': 'abbreviation',
80 'fork': 'abbreviation',
81 'akronym': 'acronym',
82 'ac (translation required)': 'acronym',
83 'kode': 'code',
84 'indeks': 'index',
85 'i': 'index',
86 'subscript (translation required)': 'subscript',
87 'sub (translation required)': 'subscript',
88 'superscript (translation required)': 'superscript',
89 'sup (translation required)': 'superscript',
90 'titel-reference': 'title-reference',
91 'titel': 'title-reference',
92 't': 'title-reference',
93 'pep-reference': 'pep-reference',
94 'pep': 'pep-reference',
95 'rfc-reference': 'rfc-reference',
96 'rfc': 'rfc-reference',
97 'emfase': 'emphasis',
98 'kraftig': 'strong',
99 'literal': 'literal',
100 'math (translation required)': 'math',
101 'navngivet-reference': 'named-reference',
102 'anonym-reference': 'anonymous-reference',
103 'fodnote-reference': 'footnote-reference',
104 'citation-reference (translation required)': 'citation-reference',
105 'substitutions-reference': 'substitution-reference',
106 'target (translation required)': 'target',
107 'uri-reference': 'uri-reference',
108 'uri': 'uri-reference',
109 'url': 'uri-reference',
110 'rå': 'raw',
111 }
112 """Mapping of Danish role names to canonical role names for interpreted text.
113 """