en.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # $Id: en.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: David Goodger <goodger@python.org>
  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. English-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. # language-dependent: fixed
  15. 'attention': 'attention',
  16. 'caution': 'caution',
  17. 'code': 'code',
  18. 'code-block': 'code',
  19. 'sourcecode': 'code',
  20. 'danger': 'danger',
  21. 'error': 'error',
  22. 'hint': 'hint',
  23. 'important': 'important',
  24. 'note': 'note',
  25. 'tip': 'tip',
  26. 'warning': 'warning',
  27. 'admonition': 'admonition',
  28. 'sidebar': 'sidebar',
  29. 'topic': 'topic',
  30. 'line-block': 'line-block',
  31. 'parsed-literal': 'parsed-literal',
  32. 'rubric': 'rubric',
  33. 'epigraph': 'epigraph',
  34. 'highlights': 'highlights',
  35. 'pull-quote': 'pull-quote',
  36. 'compound': 'compound',
  37. 'container': 'container',
  38. # 'questions': 'questions',
  39. 'table': 'table',
  40. 'csv-table': 'csv-table',
  41. 'list-table': 'list-table',
  42. # 'qa': 'questions',
  43. # 'faq': 'questions',
  44. 'meta': 'meta',
  45. 'math': 'math',
  46. # 'imagemap': 'imagemap',
  47. 'image': 'image',
  48. 'figure': 'figure',
  49. 'include': 'include',
  50. 'raw': 'raw',
  51. 'replace': 'replace',
  52. 'unicode': 'unicode',
  53. 'date': 'date',
  54. 'class': 'class',
  55. 'role': 'role',
  56. 'default-role': 'default-role',
  57. 'title': 'title',
  58. 'contents': 'contents',
  59. 'sectnum': 'sectnum',
  60. 'section-numbering': 'sectnum',
  61. 'header': 'header',
  62. 'footer': 'footer',
  63. # 'footnotes': 'footnotes',
  64. # 'citations': 'citations',
  65. 'target-notes': 'target-notes',
  66. 'restructuredtext-test-directive': 'restructuredtext-test-directive'}
  67. """English name to registered (in directives/__init__.py) directive name
  68. mapping."""
  69. roles = {
  70. # language-dependent: fixed
  71. 'abbreviation': 'abbreviation',
  72. 'ab': 'abbreviation',
  73. 'acronym': 'acronym',
  74. 'ac': 'acronym',
  75. 'code': 'code',
  76. 'index': 'index',
  77. 'i': 'index',
  78. 'subscript': 'subscript',
  79. 'sub': 'subscript',
  80. 'superscript': 'superscript',
  81. 'sup': 'superscript',
  82. 'title-reference': 'title-reference',
  83. 'title': 'title-reference',
  84. 't': 'title-reference',
  85. 'pep-reference': 'pep-reference',
  86. 'pep': 'pep-reference',
  87. 'rfc-reference': 'rfc-reference',
  88. 'rfc': 'rfc-reference',
  89. 'emphasis': 'emphasis',
  90. 'strong': 'strong',
  91. 'literal': 'literal',
  92. 'math': 'math',
  93. 'named-reference': 'named-reference',
  94. 'anonymous-reference': 'anonymous-reference',
  95. 'footnote-reference': 'footnote-reference',
  96. 'citation-reference': 'citation-reference',
  97. 'substitution-reference': 'substitution-reference',
  98. 'target': 'target',
  99. 'uri-reference': 'uri-reference',
  100. 'uri': 'uri-reference',
  101. 'url': 'uri-reference',
  102. 'raw': 'raw',
  103. }
  104. """Mapping of English role names to canonical role names for interpreted text.
  105. """