he.py 3.6 KB

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