Debian Codegraph @

docutils/parsers/rst/languages/ca.py

raw symbols SCIP
1 # $Id: ca.py 9457 2023-10-02 16:25:50Z milde $
2 # Authors: Ivan Vilata i Balaguer <[email protected]>;
3 # Antoni Bella Pérez <[email protected]>
4 # Copyright: This module has been placed in the public domain.
5
6 # New language mappings are welcome. Before doing a new translation,
7 # please read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
8 # Two files must be translated for each language: one in docutils/languages,
9 # the other in docutils/parsers/rst/languages.
10
11 # These translations can be used without changes for
12 # Valencian variant of Catalan (use language tag "ca-valencia").
13 # Checked by a native speaker of Valentian.
14
15 """
16 Catalan-language mappings for language-dependent features of
17 reStructuredText.
18 """
19
20 __docformat__ = 'reStructuredText'
21
22
23 directives = {
24 # language-dependent: fixed
25 'atenció': 'attention',
26 'compte': 'caution',
27 'perill': 'danger',
28 'error': 'error',
29 'suggeriment': 'hint',
30 'important': 'important',
31 'nota': 'note',
32 'consell': 'tip',
33 'avís': 'warning',
34 'advertiment': 'admonition',
35 'nota-al-marge': 'sidebar',
36 'nota-marge': 'sidebar',
37 'tema': 'topic',
38 'bloc-de-línies': 'line-block',
39 'bloc-línies': 'line-block',
40 'literal-analitzat': 'parsed-literal',
41 'codi': 'code',
42 'bloc-de-codi': 'code',
43 'matemàtiques': 'math',
44 'rúbrica': 'rubric',
45 'epígraf': 'epigraph',
46 'sumari': 'highlights',
47 'cita-destacada': 'pull-quote',
48 'compost': 'compound',
49 'contenidor': 'container',
50 'taula': 'table',
51 'taula-csv': 'csv-table',
52 'taula-llista': 'list-table',
53 'meta': 'meta',
54 # 'imagemap': 'imagemap',
55 'imatge': 'image',
56 'figura': 'figure',
57 'inclou': 'include',
58 'incloure': 'include',
59 'cru': 'raw',
60 'reemplaça': 'replace',
61 'reemplaçar': 'replace',
62 'unicode': 'unicode',
63 'data': 'date',
64 'classe': 'class',
65 'rol': 'role',
66 'rol-predeterminat': 'default-role',
67 'títol': 'title',
68 'contingut': 'contents',
69 'numsec': 'sectnum',
70 'numeració-de-seccions': 'sectnum',
71 'numeració-seccions': 'sectnum',
72 'capçalera': 'header',
73 'peu-de-pàgina': 'footer',
74 'peu-pàgina': 'footer',
75 # 'footnotes': 'footnotes',
76 # 'citations': 'citations',
77 'notes-amb-destinacions': 'target-notes',
78 'notes-destinacions': 'target-notes',
79 'directiva-de-prova-de-restructuredtext': 'restructuredtext-test-directive'} # noqa:E501
80 """Catalan name to registered (in directives/__init__.py) directive name
81 mapping."""
82
83 roles = {
84 # language-dependent: fixed
85 'abreviatura': 'abbreviation',
86 'abreviació': 'abbreviation',
87 'abrev': 'abbreviation',
88 'ab': 'abbreviation',
89 'acrònim': 'acronym',
90 'ac': 'acronym',
91 'codi': 'code',
92 'èmfasi': 'emphasis',
93 'literal': 'literal',
94 'matemàtiques': 'math',
95 'referència-a-pep': 'pep-reference',
96 'referència-pep': 'pep-reference',
97 'pep': 'pep-reference',
98 'referència-a-rfc': 'rfc-reference',
99 'referència-rfc': 'rfc-reference',
100 'rfc': 'rfc-reference',
101 'destacat': 'strong',
102 'subíndex': 'subscript',
103 'sub': 'subscript',
104 'superíndex': 'superscript',
105 'sup': 'superscript',
106 'referència-a-títol': 'title-reference',
107 'referència-títol': 'title-reference',
108 'títol': 'title-reference',
109 't': 'title-reference',
110 'cru': 'raw',
111 # the following roles are not implemented in Docutils
112 'índex': 'index',
113 'i': 'index',
114 'referència-anònima': 'anonymous-reference',
115 'referència-a-cita': 'citation-reference',
116 'referència-cita': 'citation-reference',
117 'referència-a-nota-al-peu': 'footnote-reference',
118 'referència-nota-al-peu': 'footnote-reference',
119 'referència-amb-nom': 'named-reference',
120 'referència-nom': 'named-reference',
121 'referència-a-substitució': 'substitution-reference',
122 'referència-substitució': 'substitution-reference',
123 'referència-a-uri': 'uri-reference',
124 'referència-uri': 'uri-reference',
125 'uri': 'uri-reference',
126 'url': 'uri-reference',
127 'destinació': 'target',
128 }
129 """Mapping of Catalan role names to canonical role names for interpreted text.
130 """