Debian Codegraph @

docutils/parsers/rst/languages/fr.py

raw symbols SCIP
1 # $Id: fr.py 9782 2024-07-29 12:37:02Z milde $
2 # Authors: David Goodger <[email protected]>; William Dode
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 French-language mappings for language-dependent features of
12 reStructuredText.
13 """
14
15 __docformat__ = 'reStructuredText'
16
17
18 directives = {
19 'attention': 'attention',
20 'précaution': 'caution',
21 'danger': 'danger',
22 'erreur': 'error',
23 'conseil': 'hint',
24 'important': 'important',
25 'note': 'note',
26 'astuce': 'tip',
27 'avertissement': 'warning',
28 'annonce': 'admonition',
29 # suggestions: annonce, avis, indication, remarque, renseignement
30 # see also https://sourceforge.net/p/docutils/bugs/453/
31 'encadré': 'sidebar',
32 'sujet': 'topic',
33 'bloc-textuel': 'line-block',
34 'bloc-interprété': 'parsed-literal',
35 'code-interprété': 'parsed-literal',
36 'code': 'code',
37 'math (translation required)': 'math',
38 'intertitre': 'rubric',
39 'exergue': 'epigraph',
40 'épigraphe': 'epigraph',
41 'chapeau': 'highlights',
42 'accroche': 'pull-quote',
43 'compound (translation required)': 'compound',
44 'container (translation required)': 'container',
45 'tableau': 'table',
46 'csv-table (translation required)': 'csv-table',
47 'list-table (translation required)': 'list-table',
48 'méta': 'meta',
49 # 'imagemap (translation required)': 'imagemap',
50 'image': 'image',
51 'figure': 'figure',
52 'inclure': 'include',
53 'brut': 'raw',
54 'remplacer': 'replace',
55 'remplace': 'replace',
56 'unicode': 'unicode',
57 'date': 'date',
58 'classe': 'class',
59 'role (translation required)': 'role',
60 'default-role (translation required)': 'default-role',
61 'titre (translation required)': 'title',
62 'sommaire': 'contents',
63 'table-des-matières': 'contents',
64 'sectnum': 'sectnum',
65 'section-numérotée': 'sectnum',
66 'liens': 'target-notes',
67 'header (translation required)': 'header',
68 'footer (translation required)': 'footer',
69 # 'footnotes (translation required)': 'footnotes',
70 # 'citations (translation required)': 'citations',
71 }
72 """Mapping of French directive names to registered directive names
73
74 Cf. https://docutils.sourceforge.io/docs/ref/rst/directives.html
75 and `_directive_registry` in ``directives/__init__.py``.
76 """
77
78 roles = {
79 'abréviation': 'abbreviation',
80 'acronyme': 'acronym',
81 'sigle': 'acronym',
82 'code': 'code',
83 'emphase': 'emphasis',
84 'littéral': 'literal',
85 'math (translation required)': 'math',
86 'pep-référence': 'pep-reference',
87 'rfc-référence': 'rfc-reference',
88 'fort': 'strong',
89 'indice': 'subscript',
90 'ind': 'subscript',
91 'exposant': 'superscript',
92 'exp': 'superscript',
93 'titre-référence': 'title-reference',
94 'titre': 'title-reference',
95 'brut': 'raw',
96 # the following roles are not implemented in Docutils
97 'index': 'index',
98 'nommée-référence': 'named-reference',
99 'anonyme-référence': 'anonymous-reference',
100 'note-référence': 'footnote-reference',
101 'citation-référence': 'citation-reference',
102 'substitution-référence': 'substitution-reference',
103 'lien': 'target',
104 'uri-référence': 'uri-reference',
105 }
106 """Mapping of French role names to canonical role names for interpreted text.
107 """