pl.py 3.3 KB

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