eo.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # $Id: eo.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Marcelo Huerta San Martin <richieadler@users.sourceforge.net>
  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. Esperanto-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. # language-dependent: fixed
  15. 'atentu': 'attention',
  16. 'zorgu': 'caution',
  17. 'code (translation required)': 'code',
  18. 'dangxero': 'danger',
  19. 'dan\u011dero': 'danger',
  20. 'eraro': 'error',
  21. 'spuro': 'hint',
  22. 'grava': 'important',
  23. 'noto': 'note',
  24. 'helpeto': 'tip',
  25. 'averto': 'warning',
  26. 'admono': 'admonition',
  27. 'flankteksto': 'sidebar',
  28. 'temo': 'topic',
  29. 'linea-bloko': 'line-block',
  30. 'analizota-literalo': 'parsed-literal',
  31. 'rubriko': 'rubric',
  32. 'epigrafo': 'epigraph',
  33. 'elstarajxoj': 'highlights',
  34. 'elstara\u0135oj': 'highlights',
  35. 'ekstera-citajxo': 'pull-quote',
  36. 'ekstera-cita\u0135o': 'pull-quote',
  37. 'kombinajxo': 'compound',
  38. 'kombina\u0135o': 'compound',
  39. 'tekstingo': 'container',
  40. 'enhavilo': 'container',
  41. # 'questions': 'questions',
  42. # 'qa': 'questions',
  43. # 'faq': 'questions',
  44. 'tabelo': 'table',
  45. 'tabelo-vdk': 'csv-table', # "valoroj disigitaj per komoj"
  46. 'tabelo-csv': 'csv-table',
  47. 'tabelo-lista': 'list-table',
  48. 'meta': 'meta',
  49. 'math (translation required)': 'math',
  50. # 'imagemap': 'imagemap',
  51. 'bildo': 'image',
  52. 'figuro': 'figure',
  53. 'inkludi': 'include',
  54. 'senanaliza': 'raw',
  55. 'anstatauxi': 'replace',
  56. 'anstata\u016di': 'replace',
  57. 'unicode': 'unicode',
  58. 'dato': 'date',
  59. 'klaso': 'class',
  60. 'rolo': 'role',
  61. 'preterlasita-rolo': 'default-role',
  62. 'titolo': 'title',
  63. 'enhavo': 'contents',
  64. 'seknum': 'sectnum',
  65. 'sekcia-numerado': 'sectnum',
  66. 'kapsekcio': 'header',
  67. 'piedsekcio': 'footer',
  68. # 'footnotes': 'footnotes',
  69. # 'citations': 'citations',
  70. 'celaj-notoj': 'target-notes',
  71. 'restructuredtext-test-directive': 'restructuredtext-test-directive'}
  72. """Esperanto name to registered (in directives/__init__.py) directive name
  73. mapping."""
  74. roles = {
  75. # language-dependent: fixed
  76. 'mallongigo': 'abbreviation',
  77. 'mall': 'abbreviation',
  78. 'komenclitero': 'acronym',
  79. 'kl': 'acronym',
  80. 'code (translation required)': 'code',
  81. 'indekso': 'index',
  82. 'i': 'index',
  83. 'subskribo': 'subscript',
  84. 'sub': 'subscript',
  85. 'supraskribo': 'superscript',
  86. 'sup': 'superscript',
  87. 'titola-referenco': 'title-reference',
  88. 'titolo': 'title-reference',
  89. 't': 'title-reference',
  90. 'pep-referenco': 'pep-reference',
  91. 'pep': 'pep-reference',
  92. 'rfc-referenco': 'rfc-reference',
  93. 'rfc': 'rfc-reference',
  94. 'emfazo': 'emphasis',
  95. 'forta': 'strong',
  96. 'litera': 'literal',
  97. 'math (translation required)': 'math',
  98. 'nomita-referenco': 'named-reference',
  99. 'nenomita-referenco': 'anonymous-reference',
  100. 'piednota-referenco': 'footnote-reference',
  101. 'citajxo-referenco': 'citation-reference',
  102. 'cita\u0135o-referenco': 'citation-reference',
  103. 'anstatauxa-referenco': 'substitution-reference',
  104. 'anstata\u016da-referenco': 'substitution-reference',
  105. 'celo': 'target',
  106. 'uri-referenco': 'uri-reference',
  107. 'uri': 'uri-reference',
  108. 'url': 'uri-reference',
  109. 'senanaliza': 'raw',
  110. }
  111. """Mapping of Esperanto role names to canonical names for interpreted text.
  112. """