da.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # $Id: da.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: E D
  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. Danish-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. directives = {
  14. # language-dependent: fixed
  15. 'giv agt': 'attention',
  16. 'pas på': 'caution',
  17. 'kode': 'code',
  18. 'kode-blok': 'code',
  19. 'kildekode': 'code',
  20. 'fare': 'danger',
  21. 'fejl': 'error',
  22. 'vink': 'hint',
  23. 'vigtigt': 'important',
  24. 'bemærk': 'note',
  25. 'tips': 'tip',
  26. 'advarsel': 'warning',
  27. 'formaning': 'admonition',
  28. 'sidebjælke': 'sidebar',
  29. 'emne': 'topic',
  30. 'linje-blok': 'line-block',
  31. 'linie-blok': 'line-block',
  32. 'parset-literal': 'parsed-literal',
  33. 'rubrik': 'rubric',
  34. 'epigraf': 'epigraph',
  35. 'fremhævninger': 'highlights',
  36. 'pull-quote (translation required)': 'pull-quote',
  37. 'compound (translation required)': 'compound',
  38. 'container (translation required)': 'container',
  39. # 'questions': 'questions',
  40. 'tabel': 'table',
  41. 'csv-tabel': 'csv-table',
  42. 'liste-tabel': 'list-table',
  43. # 'qa': 'questions',
  44. # 'faq': 'questions',
  45. 'meta': 'meta',
  46. 'math (translation required)': 'math',
  47. # 'imagemap': 'imagemap',
  48. 'billede': 'image',
  49. 'figur': 'figure',
  50. 'inkludér': 'include',
  51. 'inkluder': 'include',
  52. 'rå': 'raw',
  53. 'erstat': 'replace',
  54. 'unicode': 'unicode',
  55. 'dato': 'date',
  56. 'klasse': 'class',
  57. 'rolle': 'role',
  58. 'forvalgt-rolle': 'default-role',
  59. 'titel': 'title',
  60. 'indhold': 'contents',
  61. 'sektnum': 'sectnum',
  62. 'sektions-nummerering': 'sectnum',
  63. 'sidehovede': 'header',
  64. 'sidefod': 'footer',
  65. # 'footnotes': 'footnotes',
  66. # 'citations': 'citations',
  67. 'target-notes (translation required)': 'target-notes',
  68. 'restructuredtext-test-direktiv': 'restructuredtext-test-directive'}
  69. """Danish name to registered (in directives/__init__.py) directive name
  70. mapping."""
  71. roles = {
  72. # language-dependent: fixed
  73. 'forkortelse': 'abbreviation',
  74. 'fork': 'abbreviation',
  75. 'akronym': 'acronym',
  76. 'ac (translation required)': 'acronym',
  77. 'kode': 'code',
  78. 'indeks': 'index',
  79. 'i': 'index',
  80. 'subscript (translation required)': 'subscript',
  81. 'sub (translation required)': 'subscript',
  82. 'superscript (translation required)': 'superscript',
  83. 'sup (translation required)': 'superscript',
  84. 'titel-reference': 'title-reference',
  85. 'titel': 'title-reference',
  86. 't': 'title-reference',
  87. 'pep-reference': 'pep-reference',
  88. 'pep': 'pep-reference',
  89. 'rfc-reference': 'rfc-reference',
  90. 'rfc': 'rfc-reference',
  91. 'emfase': 'emphasis',
  92. 'kraftig': 'strong',
  93. 'literal': 'literal',
  94. 'math (translation required)': 'math',
  95. 'navngivet-reference': 'named-reference',
  96. 'anonym-reference': 'anonymous-reference',
  97. 'fodnote-reference': 'footnote-reference',
  98. 'citation-reference (translation required)': 'citation-reference',
  99. 'substitutions-reference': 'substitution-reference',
  100. 'target (translation required)': 'target',
  101. 'uri-reference': 'uri-reference',
  102. 'uri': 'uri-reference',
  103. 'url': 'uri-reference',
  104. 'rå': 'raw',
  105. }
  106. """Mapping of Danish role names to canonical role names for interpreted text.
  107. """