Debian Codegraph @

docutils/parsers/rst/languages/sv.py

raw symbols SCIP
1 # $Id: sv.py 9782 2024-07-29 12:37:02Z milde $
2 # Author: Adam Chodorowski <[email protected]>
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 Swedish language mappings for language-dependent features of reStructuredText.
12 """
13
14 __docformat__ = 'reStructuredText'
15
16 directives = {
17 'observera': 'attention',
18 'akta': 'caution', # also 'försiktigt'
19 'kod': 'code',
20 'fara': 'danger',
21 'fel': 'error',
22 'vink': 'hint', # also 'hint'
23 'viktigt': 'important',
24 'notera': 'note',
25 'tips': 'tip',
26 'varning': 'warning',
27 'anmärkning': 'admonition',
28 'sidorad': 'sidebar',
29 'ämne': 'topic',
30 'tema': 'topic',
31 'rad-block': 'line-block',
32 # 'tolkad-bokstavlig'?
33 'parsed-literal (translation required)': 'parsed-literal',
34 'rubrik': 'rubric',
35 'epigraf': 'epigraph',
36 'höjdpunkter': 'highlights',
37 'pull-quote (translation required)': 'pull-quote',
38 'sammansatt': 'compound',
39 'container': 'container',
40 # 'frågor': 'questions',
41 # NOTE: A bit long, but recommended by http://www.nada.kth.se/dataterm/:
42 # 'frågor-och-svar': 'questions',
43 # 'vanliga-frågor': 'questions',
44 'tabell': 'table',
45 'csv-tabell': 'csv-table',
46 'list-tabell': 'list-table',
47 'meta': 'meta',
48 'matematik': 'math',
49 # 'bildkarta': 'imagemap', # FIXME: Translation might be too literal.
50 'bild': 'image',
51 'figur': 'figure',
52 'inkludera': 'include',
53 'rå': 'raw',
54 'ersätta': 'replace',
55 'unicode': 'unicode',
56 'datum': 'date',
57 'klass': 'class',
58 'roll': 'role',
59 'standardroll': 'default-role',
60 'titel': 'title',
61 'innehåll': 'contents',
62 'sektionsnumrering': 'sectnum',
63 'target-notes (translation required)': 'target-notes',
64 'sidhuvud': 'header',
65 'sidfot': 'footer',
66 # 'fotnoter': 'footnotes',
67 # 'citeringar': 'citations',
68 }
69 """Swedish name to registered (in directives/__init__.py) directive name
70 mapping."""
71
72 roles = {
73 'förkortning': 'abbreviation',
74 'akronym': 'acronym',
75 'kod': 'code',
76 'index': 'index',
77 'nedsänkt': 'subscript',
78 'upphöjd': 'superscript',
79 'titel-referens': 'title-reference',
80 'pep-referens': 'pep-reference',
81 'rfc-referens': 'rfc-reference',
82 'betoning': 'emphasis',
83 'stark': 'strong',
84 'bokstavlig': 'literal', # also 'ordagranna'
85 'matematik': 'math',
86 'namngiven-referens': 'named-reference',
87 'anonym-referens': 'anonymous-reference',
88 'fotnot-referens': 'footnote-reference',
89 'citat-referens': 'citation-reference',
90 'ersättnings-referens': 'substitution-reference',
91 'mål': 'target',
92 'uri-referens': 'uri-reference',
93 'rå': 'raw',
94 }
95 """Mapping of Swedish role names to canonical role names for interpreted text.
96 """