| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 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 |
|
| 30 |
|
| 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 |
|
| 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 |
|
| 70 |
|
| 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 |
|
| 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 |
""" |