Debian Codegraph @

docutils/parsers/rst/languages/lv.py

raw symbols SCIP
1 # $Id: lv.py 10039 2025-03-08 18:53:20Z aa-turner $
2 # Copyright: This module has been placed in the public domain.
3
4 # New language mappings are welcome. Before doing a new translation, please
5 # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
6 # Two files must be translated for each language: one in docutils/languages,
7 # the other in docutils/parsers/rst/languages.
8
9 """
10 Latvian-language mappings for language-dependent features of
11 reStructuredText.
12 """
13
14 __docformat__ = 'reStructuredText'
15
16
17 directives = {
18 # language-dependent: fixed
19 'uzmanību': 'attention',
20 'piesardzību': 'caution',
21 'kods': 'code',
22 'koda-bloks': 'code',
23 'pirmkods': 'code',
24 'bīstami': 'danger',
25 'kļūda': 'error',
26 'ieteikums': 'hint',
27 'svarīgi': 'important',
28 'piezīme': 'note',
29 'padoms': 'tip',
30 'brīdinājums': 'warning',
31 'aizrādījums': 'admonition',
32 'sānjosla': 'sidebar',
33 'tēma': 'topic',
34 'rindu-bloks': 'line-block',
35 'parsēts-literālis': 'parsed-literal',
36 'rubrika': 'rubric',
37 'epigrāfs': 'epigraph',
38 'apskats': 'highlights',
39 'izvilkuma-citāts': 'pull-quote',
40 'savienojums': 'compound',
41 'konteiners': 'container',
42 # 'questions': 'questions',
43 'tabula': 'table',
44 'csv-tabula': 'csv-table',
45 'sarakstveida-tabula': 'list-table',
46 # 'qa': 'questions',
47 # 'faq': 'questions',
48 'meta': 'meta',
49 'matemātika': 'math',
50 # 'imagemap': 'imagemap',
51 'attēls': 'image',
52 'figūra': 'figure',
53 'ietvert': 'include',
54 'burtiski': 'raw',
55 'aizvieto': 'replace',
56 'unicode': 'unicode',
57 'datums': 'date',
58 'klase': 'class',
59 'role': 'role',
60 'noklusējuma-role': 'default-role',
61 'virsraksts': 'title',
62 'saturs': 'contents',
63 'numurēt-sekcijas': 'sectnum',
64 'galvene': 'header',
65 'kājene': 'footer',
66 # 'footnotes': 'footnotes',
67 # 'citations': 'citations',
68 'atsauces-apakšā': 'target-notes',
69 'restructuredtext-testa-direktīva': 'restructuredtext-test-directive'}
70 """English name to registered (in directives/__init__.py) directive name
71 mapping."""
72
73 roles = {
74 # language-dependent: fixed
75 'saīsinājums': 'abbreviation',
76 'īsi': 'abbreviation',
77 'akronīms': 'acronym',
78 'kods': 'code',
79 'indekss': 'index',
80 'i': 'index',
81 'apakšraksts': 'subscript',
82 'apakšā': 'subscript',
83 'augšraksts': 'superscript',
84 'augšā': 'superscript',
85 'virsraksta-atsauce': 'title-reference',
86 'virsraksts': 'title-reference',
87 'v': 'title-reference',
88 'atsauce-uz-pep': 'pep-reference',
89 'pep': 'pep-reference',
90 'atsauce-uz-rfc': 'rfc-reference',
91 'rfc': 'rfc-reference',
92 'izcēlums': 'emphasis',
93 'blīvs': 'strong',
94 'literālis': 'literal',
95 'matemātika': 'math',
96 'nosaukta-atsauce': 'named-reference',
97 'nenosaukta-atsauce': 'anonymous-reference',
98 'kājenes-atsauce': 'footnote-reference',
99 'citātā-atsauce': 'citation-reference',
100 'aizvietojuma-atsauce': 'substitution-reference',
101 'mērkis': 'target',
102 'atsauce-uz-uri': 'uri-reference',
103 'uri': 'uri-reference',
104 'url': 'uri-reference',
105 'burtiski': 'raw',
106 }
107 """Mapping of English role names to canonical role names for interpreted text.
108 """