es.py 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # $Id: es.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Marcelo Huerta San Martín <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. Spanish-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. 'atenci\u00f3n': 'attention',
  15. 'atencion': 'attention',
  16. 'precauci\u00f3n': 'caution',
  17. 'code (translation required)': 'code',
  18. 'precaucion': 'caution',
  19. 'peligro': 'danger',
  20. 'error': 'error',
  21. 'sugerencia': 'hint',
  22. 'importante': 'important',
  23. 'nota': 'note',
  24. 'consejo': 'tip',
  25. 'advertencia': 'warning',
  26. 'exhortacion': 'admonition',
  27. 'exhortaci\u00f3n': 'admonition',
  28. 'nota-al-margen': 'sidebar',
  29. 'tema': 'topic',
  30. 'bloque-de-lineas': 'line-block',
  31. 'bloque-de-l\u00edneas': 'line-block',
  32. 'literal-evaluado': 'parsed-literal',
  33. 'firma': 'rubric',
  34. 'ep\u00edgrafe': 'epigraph',
  35. 'epigrafe': 'epigraph',
  36. 'destacado': 'highlights',
  37. 'cita-destacada': 'pull-quote',
  38. 'combinacion': 'compound',
  39. 'combinaci\u00f3n': 'compound',
  40. 'contenedor': 'container',
  41. # 'questions': 'questions',
  42. # 'qa': 'questions',
  43. # 'faq': 'questions',
  44. 'tabla': 'table',
  45. 'tabla-vsc': 'csv-table',
  46. 'tabla-csv': 'csv-table',
  47. 'tabla-lista': 'list-table',
  48. 'meta': 'meta',
  49. 'math (translation required)': 'math',
  50. # 'imagemap': 'imagemap',
  51. 'imagen': 'image',
  52. 'figura': 'figure',
  53. 'incluir': 'include',
  54. 'sin-analisis': 'raw',
  55. 'sin-an\u00e1lisis': 'raw',
  56. 'reemplazar': 'replace',
  57. 'unicode': 'unicode',
  58. 'fecha': 'date',
  59. 'clase': 'class',
  60. 'rol': 'role',
  61. 'rol-por-omision': 'default-role',
  62. 'rol-por-omisi\u00f3n': 'default-role',
  63. 'titulo': 'title',
  64. 't\u00edtulo': 'title',
  65. 'contenido': 'contents',
  66. 'numseccion': 'sectnum',
  67. 'numsecci\u00f3n': 'sectnum',
  68. 'numeracion-seccion': 'sectnum',
  69. 'numeraci\u00f3n-secci\u00f3n': 'sectnum',
  70. 'notas-destino': 'target-notes',
  71. 'cabecera': 'header',
  72. 'pie': 'footer',
  73. # 'footnotes': 'footnotes',
  74. # 'citations': 'citations',
  75. 'restructuredtext-test-directive': 'restructuredtext-test-directive'}
  76. """Spanish name to registered (in directives/__init__.py) directive name
  77. mapping."""
  78. roles = {
  79. 'abreviatura': 'abbreviation',
  80. 'ab': 'abbreviation',
  81. 'acronimo': 'acronym',
  82. 'ac': 'acronym',
  83. 'code (translation required)': 'code',
  84. 'indice': 'index',
  85. 'i': 'index',
  86. 'subindice': 'subscript',
  87. 'sub\u00edndice': 'subscript',
  88. 'superindice': 'superscript',
  89. 'super\u00edndice': 'superscript',
  90. 'referencia-titulo': 'title-reference',
  91. 'titulo': 'title-reference',
  92. 't': 'title-reference',
  93. 'referencia-pep': 'pep-reference',
  94. 'pep': 'pep-reference',
  95. 'referencia-rfc': 'rfc-reference',
  96. 'rfc': 'rfc-reference',
  97. 'enfasis': 'emphasis',
  98. '\u00e9nfasis': 'emphasis',
  99. 'destacado': 'strong',
  100. 'literal': 'literal', # "literal" is also a word in Spanish :-)
  101. 'math (translation required)': 'math',
  102. 'referencia-con-nombre': 'named-reference',
  103. 'referencia-anonima': 'anonymous-reference',
  104. 'referencia-an\u00f3nima': 'anonymous-reference',
  105. 'referencia-nota-al-pie': 'footnote-reference',
  106. 'referencia-cita': 'citation-reference',
  107. 'referencia-sustitucion': 'substitution-reference',
  108. 'referencia-sustituci\u00f3n': 'substitution-reference',
  109. 'destino': 'target',
  110. 'referencia-uri': 'uri-reference',
  111. 'uri': 'uri-reference',
  112. 'url': 'uri-reference',
  113. 'sin-analisis': 'raw',
  114. 'sin-an\u00e1lisis': 'raw',
  115. }
  116. """Mapping of Spanish role names to canonical role names for interpreted text.
  117. """