ja.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # $Id: ja.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. Japanese-language mappings for language-dependent features of
  10. reStructuredText.
  11. """
  12. __docformat__ = 'reStructuredText'
  13. # Corrections to these translations are welcome!
  14. # 間違いがあれば、どうぞ正しい翻訳を教えて下さい。
  15. directives = {
  16. # language-dependent: fixed
  17. '注目': 'attention',
  18. '注意': 'caution',
  19. 'code (translation required)': 'code',
  20. '危険': 'danger',
  21. 'エラー': 'error',
  22. 'ヒント': 'hint',
  23. '重要': 'important',
  24. '備考': 'note',
  25. '通報': 'tip',
  26. '警告': 'warning',
  27. '戒告': 'admonition',
  28. 'サイドバー': 'sidebar',
  29. 'トピック': 'topic',
  30. 'ラインブロック': 'line-block',
  31. 'パーズドリテラル': 'parsed-literal',
  32. 'ルブリック': 'rubric',
  33. 'エピグラフ': 'epigraph',
  34. '題言': 'epigraph',
  35. 'ハイライト': 'highlights',
  36. '見所': 'highlights',
  37. 'プルクオート': 'pull-quote',
  38. '合成': 'compound',
  39. 'コンテナー': 'container',
  40. '容器': 'container',
  41. '表': 'table',
  42. 'csv表': 'csv-table',
  43. 'リスト表': 'list-table',
  44. # '質問': 'questions',
  45. # '問答': 'questions',
  46. # 'faq': 'questions',
  47. 'math (translation required)': 'math',
  48. 'メタ': 'meta',
  49. # 'イメージマプ': 'imagemap',
  50. 'イメージ': 'image',
  51. '画像': 'image',
  52. 'フィグア': 'figure',
  53. '図版': 'figure',
  54. 'インクルード': 'include',
  55. '含む': 'include',
  56. '組み込み': 'include',
  57. '生': 'raw',
  58. '原': 'raw',
  59. '換える': 'replace',
  60. '取り換える': 'replace',
  61. '掛け替える': 'replace',
  62. 'ユニコード': 'unicode',
  63. '日付': 'date',
  64. 'クラス': 'class',
  65. 'ロール': 'role',
  66. '役': 'role',
  67. 'ディフォルトロール': 'default-role',
  68. '既定役': 'default-role',
  69. 'タイトル': 'title',
  70. '題': 'title', # 題名 件名
  71. '目次': 'contents',
  72. '節数': 'sectnum',
  73. 'ヘッダ': 'header',
  74. 'フッタ': 'footer',
  75. # '脚注': 'footnotes', # 脚註?
  76. # 'サイテーション': 'citations',   # 出典 引証 引用
  77. 'ターゲットノート': 'target-notes', # 的注 的脚注
  78. }
  79. """Japanese name to registered (in directives/__init__.py) directive name
  80. mapping."""
  81. roles = {
  82. # language-dependent: fixed
  83. '略': 'abbreviation',
  84. '頭字語': 'acronym',
  85. 'code (translation required)': 'code',
  86. 'インデックス': 'index',
  87. '索引': 'index',
  88. '添字': 'subscript',
  89. '下付': 'subscript',
  90. '下': 'subscript',
  91. '上付': 'superscript',
  92. '上': 'superscript',
  93. '題参照': 'title-reference',
  94. 'pep参照': 'pep-reference',
  95. 'rfc参照': 'rfc-reference',
  96. '強調': 'emphasis',
  97. '強い': 'strong',
  98. 'リテラル': 'literal',
  99. '整形済み': 'literal',
  100. 'math (translation required)': 'math',
  101. '名付参照': 'named-reference',
  102. '無名参照': 'anonymous-reference',
  103. '脚注参照': 'footnote-reference',
  104. '出典参照': 'citation-reference',
  105. '代入参照': 'substitution-reference',
  106. '的': 'target',
  107. 'uri参照': 'uri-reference',
  108. 'uri': 'uri-reference',
  109. 'url': 'uri-reference',
  110. '生': 'raw',
  111. }
  112. """Mapping of Japanese role names to canonical role names for interpreted
  113. text."""