1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# $Id: pt_br.py 9452 2023-09-27 00:11:54Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
# Two files must be translated for each language: one in docutils/languages,
# the other in docutils/parsers/rst/languages.
"""
Brazilian Portuguese-language mappings for language-dependent features of
reStructuredText.
"""
__docformat__ = 'reStructuredText'
directives = {
# language-dependent: fixed
'atenção': 'attention',
'cuidado': 'caution',
'code (translation required)': 'code',
'perigo': 'danger',
'erro': 'error',
'sugestão': 'hint',
'importante': 'important',
'nota': 'note',
'dica': 'tip',
'aviso': 'warning',
'advertência': 'admonition',
'exortação': 'admonition', # sic! advice/advisory/remark, not reprimand
'barra-lateral': 'sidebar',
'tópico': 'topic',
'bloco-de-linhas': 'line-block',
'literal-interpretado': 'parsed-literal',
'rubrica': 'rubric',
'epígrafo': 'epigraph',
'destaques': 'highlights',
'citação-destacada': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
# 'perguntas': 'questions',
# 'qa': 'questions',
# 'faq': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
# 'imagemap': 'imagemap',
'imagem': 'image',
'figura': 'figure',
'inclusão': 'include',
'cru': 'raw',
'substituição': 'replace',
'unicode': 'unicode',
'data': 'date',
'classe': 'class',
'role (translation required)': 'role',
'default-role (translation required)': 'default-role',
'title (translation required)': 'title',
'índice': 'contents',
'numsec': 'sectnum',
'numeração-de-seções': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
# 'notas-de-rorapé': 'footnotes',
# 'citações': 'citations',
'links-no-rodapé': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Brazilian Portuguese name to registered (in directives/__init__.py)
directive name mapping."""
roles = {
# language-dependent: fixed
'abbreviação': 'abbreviation',
'ab': 'abbreviation',
'acrônimo': 'acronym',
'ac': 'acronym',
'code (translation required)': 'code',
'índice-remissivo': 'index',
'i': 'index',
'subscrito': 'subscript',
'sub': 'subscript',
'sobrescrito': 'superscript',
'sob': 'superscript',
'referência-a-título': 'title-reference',
'título': 'title-reference',
't': 'title-reference',
'referência-a-pep': 'pep-reference',
'pep': 'pep-reference',
'referência-a-rfc': 'rfc-reference',
'rfc': 'rfc-reference',
'ênfase': 'emphasis',
'forte': 'strong',
'literal': 'literal',
'math (translation required)': 'math', # translation required?
'referência-por-nome': 'named-reference',
'referência-anônima': 'anonymous-reference',
'referência-a-nota-de-rodapé': 'footnote-reference',
'referência-a-citação': 'citation-reference',
'referência-a-substituição': 'substitution-reference',
'alvo': 'target',
'referência-a-uri': 'uri-reference',
'uri': 'uri-reference',
'url': 'uri-reference',
'cru': 'raw',
}
"""Mapping of Brazilian Portuguese role names to canonical role names
for interpreted text."""
|