sv.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # $Id: sv.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Adam Chodorowski <chodorowski@users.sourceforge.net>
  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. Swedish language mappings for language-dependent features of reStructuredText.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. directives = {
  13. 'observera': 'attention',
  14. 'akta': 'caution', # also 'försiktigt'
  15. 'kod': 'code',
  16. 'fara': 'danger',
  17. 'fel': 'error',
  18. 'vink': 'hint', # also 'hint'
  19. 'viktigt': 'important',
  20. 'notera': 'note',
  21. 'tips': 'tip',
  22. 'varning': 'warning',
  23. 'anmärkning': 'admonition', # literal 'tillrättavisning', 'förmaning'
  24. 'sidorad': 'sidebar',
  25. 'ämne': 'topic',
  26. 'tema': 'topic',
  27. 'rad-block': 'line-block',
  28. # 'tolkad-bokstavlig'?
  29. 'parsed-literal (translation required)': 'parsed-literal',
  30. 'rubrik': 'rubric',
  31. 'epigraf': 'epigraph',
  32. 'höjdpunkter': 'highlights',
  33. 'pull-quote (translation required)': 'pull-quote',
  34. 'sammansatt': 'compound',
  35. 'container': 'container',
  36. # 'frågor': 'questions',
  37. # NOTE: A bit long, but recommended by http://www.nada.kth.se/dataterm/:
  38. # 'frågor-och-svar': 'questions',
  39. # 'vanliga-frågor': 'questions',
  40. 'tabell': 'table',
  41. 'csv-tabell': 'csv-table',
  42. 'list-tabell': 'list-table',
  43. 'meta': 'meta',
  44. 'matematik': 'math',
  45. # 'bildkarta': 'imagemap', # FIXME: Translation might be too literal.
  46. 'bild': 'image',
  47. 'figur': 'figure',
  48. 'inkludera': 'include',
  49. 'rå': 'raw',
  50. 'ersätta': 'replace',
  51. 'unicode': 'unicode',
  52. 'datum': 'date',
  53. 'klass': 'class',
  54. 'roll': 'role',
  55. 'standardroll': 'default-role',
  56. 'titel': 'title',
  57. 'innehåll': 'contents',
  58. 'sektionsnumrering': 'sectnum',
  59. 'target-notes (translation required)': 'target-notes',
  60. 'sidhuvud': 'header',
  61. 'sidfot': 'footer',
  62. # 'fotnoter': 'footnotes',
  63. # 'citeringar': 'citations',
  64. }
  65. """Swedish name to registered (in directives/__init__.py) directive name
  66. mapping."""
  67. roles = {
  68. 'förkortning': 'abbreviation',
  69. 'akronym': 'acronym',
  70. 'kod': 'code',
  71. 'index': 'index',
  72. 'nedsänkt': 'subscript',
  73. 'upphöjd': 'superscript',
  74. 'titel-referens': 'title-reference',
  75. 'pep-referens': 'pep-reference',
  76. 'rfc-referens': 'rfc-reference',
  77. 'betoning': 'emphasis',
  78. 'stark': 'strong',
  79. 'bokstavlig': 'literal', # also 'ordagranna'
  80. 'matematik': 'math',
  81. 'namngiven-referens': 'named-reference',
  82. 'anonym-referens': 'anonymous-reference',
  83. 'fotnot-referens': 'footnote-reference',
  84. 'citat-referens': 'citation-reference',
  85. 'ersättnings-referens': 'substitution-reference',
  86. 'mål': 'target',
  87. 'uri-referens': 'uri-reference',
  88. 'rå': 'raw',
  89. }
  90. """Mapping of Swedish role names to canonical role names for interpreted text.
  91. """