Debian Codegraph @

docutils/parsers/rst/languages/pt_br.py

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