gl.py 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Author: David Goodger
  2. # Contact: goodger@users.sourceforge.net
  3. # Revision: $Revision: 4229 $
  4. # Date: $Date: 2005-12-23 00:46:16 +0100 (Fri, 23 Dec 2005) $
  5. # Copyright: This module has been placed in the public domain.
  6. # New language mappings are welcome. Before doing a new translation, please
  7. # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
  8. # Two files must be translated for each language: one in docutils/languages,
  9. # the other in docutils/parsers/rst/languages.
  10. """
  11. Galician-language mappings for language-dependent features of
  12. reStructuredText.
  13. """
  14. __docformat__ = 'reStructuredText'
  15. directives = {
  16. # language-dependent: fixed
  17. 'atenci\u00f3n': 'attention',
  18. 'advertencia': 'caution',
  19. 'code (translation required)': 'code',
  20. 'perigo': 'danger',
  21. 'erro': 'error',
  22. 'pista': 'hint',
  23. 'importante': 'important',
  24. 'nota': 'note',
  25. 'consello': 'tip',
  26. 'aviso': 'warning',
  27. 'admonici\u00f3n': 'admonition',
  28. 'barra lateral': 'sidebar',
  29. 't\u00f3pico': 'topic',
  30. 'bloque-li\u00f1a': 'line-block',
  31. 'literal-analizado': 'parsed-literal',
  32. 'r\u00fabrica': 'rubric',
  33. 'ep\u00edgrafe': 'epigraph',
  34. 'realzados': 'highlights',
  35. 'coller-citaci\u00f3n': 'pull-quote',
  36. 'compor': 'compound',
  37. 'recipiente': 'container',
  38. # 'questions': 'questions',
  39. 't\u00e1boa': 'table',
  40. 't\u00e1boa-csv': 'csv-table',
  41. 't\u00e1boa-listaxe': 'list-table',
  42. # 'qa': 'questions',
  43. # 'faq': 'questions',
  44. 'meta': 'meta',
  45. 'math (translation required)': 'math',
  46. # 'imagemap': 'imagemap',
  47. 'imaxe': 'image',
  48. 'figura': 'figure',
  49. 'inclu\u00edr': 'include',
  50. 'cru': 'raw',
  51. 'substitu\u00edr': 'replace',
  52. 'unicode': 'unicode',
  53. 'data': 'date',
  54. 'clase': 'class',
  55. 'regra': 'role',
  56. 'regra-predeterminada': 'default-role',
  57. 't\u00edtulo': 'title',
  58. 'contido': 'contents',
  59. 'seccnum': 'sectnum',
  60. 'secci\u00f3n-numerar': 'sectnum',
  61. 'cabeceira': 'header',
  62. 'p\u00e9 de p\u00e1xina': 'footer',
  63. # 'footnotes': 'footnotes',
  64. # 'citations': 'citations',
  65. 'notas-destino': 'target-notes',
  66. 'texto restruturado-proba-directiva': 'restructuredtext-test-directive'}
  67. """Galician name to registered (in directives/__init__.py) directive name
  68. mapping."""
  69. roles = {
  70. # language-dependent: fixed
  71. 'abreviatura': 'abbreviation',
  72. 'ab': 'abbreviation',
  73. 'acr\u00f3nimo': 'acronym',
  74. 'ac': 'acronym',
  75. 'code (translation required)': 'code',
  76. '\u00edndice': 'index',
  77. 'i': 'index',
  78. 'sub\u00edndice': 'subscript',
  79. 'sub': 'subscript',
  80. 'super\u00edndice': 'superscript',
  81. 'sup': 'superscript',
  82. 'referencia t\u00edtulo': 'title-reference',
  83. 't\u00edtulo': 'title-reference',
  84. 't': 'title-reference',
  85. 'referencia-pep': 'pep-reference',
  86. 'pep': 'pep-reference',
  87. 'referencia-rfc': 'rfc-reference',
  88. 'rfc': 'rfc-reference',
  89. '\u00e9nfase': 'emphasis',
  90. 'forte': 'strong',
  91. 'literal': 'literal',
  92. 'math (translation required)': 'math',
  93. 'referencia-nome': 'named-reference',
  94. 'referencia-an\u00f3nimo': 'anonymous-reference',
  95. 'referencia-nota ao p\u00e9': 'footnote-reference',
  96. 'referencia-citaci\u00f3n': 'citation-reference',
  97. 'referencia-substituci\u00f3n': 'substitution-reference',
  98. 'destino': 'target',
  99. 'referencia-uri': 'uri-reference',
  100. 'uri': 'uri-reference',
  101. 'url': 'uri-reference',
  102. 'cru': 'raw',
  103. }
  104. """Mapping of Galician role names to canonical role names for interpreted text.
  105. """