Support mathematics with a "math" role and "math-block" directive.
[docutils.git] / docutils / parsers / rst / languages / pl.py
blob520871ad6216e06ec33917b27f4c81f0f776c175
1 # $Id$
2 # Author: Robert Wojciechowicz <rw@smsnet.pl>
3 # Copyright: This module has been placed in the public domain.
5 # New language mappings are welcome. Before doing a new translation, please
6 # read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
7 # translated for each language: one in docutils/languages, the other in
8 # docutils/parsers/rst/languages.
10 """
11 Polish-language mappings for language-dependent features of
12 reStructuredText.
13 """
15 __docformat__ = 'reStructuredText'
18 directives = {
19 # language-dependent: fixed
20 u'uwaga': 'attention',
21 u'ostro\u017cnie': 'caution',
22 u'niebezpiecze\u0144stwo': 'danger',
23 u'b\u0142\u0105d': 'error',
24 u'wskaz\u00f3wka': 'hint',
25 u'wa\u017cne': 'important',
26 u'przypis': 'note',
27 u'rada': 'tip',
28 u'ostrze\u017cenie': 'warning',
29 u'upomnienie': 'admonition',
30 u'ramka': 'sidebar',
31 u'temat': 'topic',
32 u'blok-linii': 'line-block',
33 u'sparsowany-litera\u0142': 'parsed-literal',
34 u'rubryka': 'rubric',
35 u'epigraf': 'epigraph',
36 u'highlights': 'highlights', # FIXME no polish equivalent?
37 u'pull-quote': 'pull-quote', # FIXME no polish equivalent?
38 u'z\u0142o\u017cony': 'compound',
39 u'kontener': 'container',
40 #'questions': 'questions',
41 u'tabela': 'table',
42 u'tabela-csv': 'csv-table',
43 u'tabela-listowa': 'list-table',
44 #'qa': 'questions',
45 #'faq': 'questions',
46 u'meta': 'meta',
47 'math-block (translation required)': 'math-block',
48 #'imagemap': 'imagemap',
49 u'obraz': 'image',
50 u'rycina': 'figure',
51 u'do\u0142\u0105cz': 'include',
52 u'surowe': 'raw',
53 u'zast\u0105p': 'replace',
54 u'unikod': 'unicode',
55 u'data': 'date',
56 u'klasa': 'class',
57 u'rola': 'role',
58 u'rola-domy\u015blna': 'default-role',
59 u'tytu\u0142': 'title',
60 u'tre\u015b\u0107': 'contents',
61 u'sectnum': 'sectnum',
62 u'numeracja-sekcji': 'sectnum',
63 u'nag\u0142\u00f3wek': 'header',
64 u'stopka': 'footer',
65 #'footnotes': 'footnotes',
66 #'citations': 'citations',
67 u'target-notes': 'target-notes', # FIXME no polish equivalent?
68 u'restructuredtext-test-directive': 'restructuredtext-test-directive'}
69 """Polish name to registered (in directives/__init__.py) directive name
70 mapping."""
72 roles = {
73 # language-dependent: fixed
74 u'skr\u00f3t': 'abbreviation',
75 u'akronim': 'acronym',
76 u'indeks': 'index',
77 u'indeks-dolny': 'subscript',
78 u'indeks-g\u00f3rny': 'superscript',
79 u'referencja-tytu\u0142': 'title-reference',
80 u'referencja-pep': 'pep-reference',
81 u'referencja-rfc': 'rfc-reference',
82 u'podkre\u015blenie': 'emphasis',
83 u'wyt\u0142uszczenie': 'strong',
84 u'dos\u0142ownie': 'literal',
85 'math (translation required)': 'math',
86 u'referencja-nazwana': 'named-reference',
87 u'referencja-anonimowa': 'anonymous-reference',
88 u'referencja-przypis': 'footnote-reference',
89 u'referencja-cytat': 'citation-reference',
90 u'referencja-podstawienie': 'substitution-reference',
91 u'cel': 'target',
92 u'referencja-uri': 'uri-reference',
93 u'uri': 'uri-reference',
94 u'url': 'uri-reference',
95 u'surowe': 'raw',}
96 """Mapping of Polish role names to canonical role names for interpreted text.
97 """