1
0

af.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # $Id: af.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Jannie Hofmeyr <jhsh@sun.ac.za>
  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. Afrikaans-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. 'aandag': 'attention',
  15. 'versigtig': 'caution',
  16. 'code (translation required)': 'code',
  17. 'gevaar': 'danger',
  18. 'fout': 'error',
  19. 'wenk': 'hint',
  20. 'belangrik': 'important',
  21. 'nota': 'note',
  22. 'tip': 'tip', # hint and tip both have the same translation: wenk
  23. 'waarskuwing': 'warning',
  24. 'vermaning': 'admonition',
  25. 'kantstreep': 'sidebar',
  26. 'onderwerp': 'topic',
  27. 'lynblok': 'line-block',
  28. 'math (translation required)': 'math',
  29. 'parsed-literal (translation required)': 'parsed-literal',
  30. 'rubriek': 'rubric',
  31. 'epigraaf': 'epigraph',
  32. 'hoogtepunte': 'highlights',
  33. 'pull-quote (translation required)': 'pull-quote',
  34. 'compound (translation required)': 'compound',
  35. 'container (translation required)': 'container',
  36. # 'vrae': 'questions',
  37. # 'qa': 'questions',
  38. # 'faq': 'questions',
  39. 'table (translation required)': 'table',
  40. 'csv-table (translation required)': 'csv-table',
  41. 'list-table (translation required)': 'list-table',
  42. 'meta': 'meta',
  43. # 'beeldkaart': 'imagemap',
  44. 'beeld': 'image',
  45. 'figuur': 'figure',
  46. 'insluiting': 'include',
  47. 'rou': 'raw',
  48. 'vervang': 'replace',
  49. 'unicode': 'unicode', # should this be translated? unikode
  50. 'datum': 'date',
  51. 'klas': 'class',
  52. 'role (translation required)': 'role',
  53. 'default-role (translation required)': 'default-role',
  54. 'title (translation required)': 'title',
  55. 'inhoud': 'contents',
  56. 'sectnum': 'sectnum',
  57. 'section-numbering': 'sectnum',
  58. 'header (translation required)': 'header',
  59. 'footer (translation required)': 'footer',
  60. # 'voetnote': 'footnotes',
  61. # 'aanhalings': 'citations',
  62. 'teikennotas': 'target-notes',
  63. 'restructuredtext-test-directive': 'restructuredtext-test-directive'}
  64. """Afrikaans name to registered (in directives/__init__.py) directive name
  65. mapping."""
  66. roles = {
  67. 'afkorting': 'abbreviation',
  68. 'ab': 'abbreviation',
  69. 'akroniem': 'acronym',
  70. 'ac': 'acronym',
  71. 'code (translation required)': 'code',
  72. 'indeks': 'index',
  73. 'i': 'index',
  74. 'voetskrif': 'subscript',
  75. 'sub': 'subscript',
  76. 'boskrif': 'superscript',
  77. 'sup': 'superscript',
  78. 'titelverwysing': 'title-reference',
  79. 'titel': 'title-reference',
  80. 't': 'title-reference',
  81. 'pep-verwysing': 'pep-reference',
  82. 'pep': 'pep-reference',
  83. 'rfc-verwysing': 'rfc-reference',
  84. 'rfc': 'rfc-reference',
  85. 'nadruk': 'emphasis',
  86. 'sterk': 'strong',
  87. 'literal (translation required)': 'literal',
  88. 'math (translation required)': 'math',
  89. 'benoemde verwysing': 'named-reference',
  90. 'anonieme verwysing': 'anonymous-reference',
  91. 'voetnootverwysing': 'footnote-reference',
  92. 'aanhalingverwysing': 'citation-reference',
  93. 'vervangingsverwysing': 'substitution-reference',
  94. 'teiken': 'target',
  95. 'uri-verwysing': 'uri-reference',
  96. 'uri': 'uri-reference',
  97. 'url': 'uri-reference',
  98. 'rou': 'raw',
  99. }
  100. """Mapping of Afrikaans role names to canonical names for interpreted text.
  101. """