Debian Codegraph @

docutils/languages/sv.py

raw symbols SCIP
1 # $Id: sv.py 9452 2023-09-27 00:11:54Z 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 Docutils.
12 """
13
14 __docformat__ = 'reStructuredText'
15
16 labels = {
17 'author': 'Författare',
18 'authors': 'Författare',
19 'organization': 'Organisation',
20 'address': 'Adress',
21 'contact': 'Kontakt',
22 'version': 'Version',
23 'revision': 'Revision',
24 'status': 'Status',
25 'date': 'Datum',
26 'copyright': 'Copyright',
27 'dedication': 'Dedikation',
28 'abstract': 'Sammanfattning',
29 'attention': 'Observera!',
30 'caution': 'Akta!', # 'Varning' already used for 'warning'
31 'danger': 'FARA!',
32 'error': 'Fel',
33 'hint': 'Vink',
34 'important': 'Viktigt',
35 'note': 'Notera',
36 'tip': 'Tips',
37 'warning': 'Varning',
38 'contents': 'Innehåll'}
39 """Mapping of node class name to label text."""
40
41 bibliographic_fields = {
42 # 'Author' and 'Authors' identical in Swedish; assume the plural:
43 'författare': 'authors',
44 ' n/a': 'author', # removing leads to (spurious) test failure
45 'organisation': 'organization',
46 'adress': 'address',
47 'kontakt': 'contact',
48 'version': 'version',
49 'revision': 'revision',
50 'status': 'status',
51 'datum': 'date',
52 'copyright': 'copyright',
53 'dedikation': 'dedication',
54 'sammanfattning': 'abstract'}
55 """Swedish (lowcased) to canonical name mapping for bibliographic fields."""
56
57 author_separators = [';', ',']
58 """List of separator strings for the 'Authors' bibliographic field. Tried in
59 order."""