Debian Codegraph @

docutils/parsers/rst/languages/ja.py

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