summaryrefslogtreecommitdiff
path: root/docutils/parsers/rst/languages/ja.py
blob: 0bb701d853099155d7aaac0d6c64907ce09b414c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- coding: utf-8 -*-
# Author: David Goodger
# Contact: goodger@python.org
# Revision: $Revision$
# Date: $Date$
# Copyright: This module has been placed in the public domain.

# New language mappings are welcome.  Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
# translated for each language: one in docutils/languages, the other in
# docutils/parsers/rst/languages.

"""
Japanese-language mappings for language-dependent features of
reStructuredText.
"""

__docformat__ = 'reStructuredText'

# Corrections to these translations are welcome!
# 間違いがあれば、どうぞ正しい翻訳を教えて下さい。

directives = {
    # language-dependent: fixed
    u'注目': 'attention',
    u'注意': 'caution',
    u'危険': 'danger',
    u'エラー': 'error',
    u'ヒント': 'hint',
    u'重要': 'important',
    u'備考': 'note',
    u'通報': 'tip',
    u'警告': 'warning',
    u'戒告': 'admonition',
    u'サイドバー': 'sidebar',
    u'トピック': 'topic',
    u'ラインブロック': 'line-block',
    u'パーズドリテラル': 'parsed-literal',
    u'ルブリック': 'rubric',
    u'エピグラフ': 'epigraph',
    u'題言': 'epigraph',
    u'ハイライト': 'highlights',
    u'見所': 'highlights',
    u'プルクオート': 'pull-quote',
    u'合成': 'compound',
    u'コンテナー': 'container',
    u'容器': 'container',
    u'表': 'table',
    u'csv表': 'csv-table',
    u'リスト表': 'list-table',
    #u'質問': 'questions',
    #u'問答': 'questions',
    #u'faq': 'questions',
    u'メタ': 'meta',
    #u'イメージマプ': 'imagemap',
    u'イメージ': 'image',
    u'画像': 'image',
    u'フィグア': 'figure',
    u'図版': 'figure',
    u'インクルード': 'include',
    u'含む': 'include',
    u'組み込み': 'include',
    u'生': 'raw',
    u'原': 'raw',
    u'換える': 'replace',
    u'取り換える': 'replace',
    u'掛け替える': 'replace',
    u'ユニコード': 'unicode',
    u'日付': 'date',
    u'クラス': 'class',
    u'ロール': 'role',
    u'役': 'role',
    u'ディフォルトロール': 'default-role',
    u'既定役': 'default-role',
    u'タイトル': 'title',
    u'題': 'title',                    # 題名 件名
    u'目次': 'contents',
    u'節数': 'sectnum',
    u'ヘッダ': 'header',
    u'フッタ': 'footer',
    #u'脚注': 'footnotes',             # 脚註?
    #u'サイテーション': 'citations',   # 出典 引証 引用
    u'ターゲットノート': 'target-notes', # 的注 的脚注
    }
"""Japanese name to registered (in directives/__init__.py) directive name
mapping."""

roles = {
    # language-dependent: fixed
    u'略': 'abbreviation',
    u'頭字語': 'acronym',
    u'インデックス': 'index',
    u'索引': 'index',
    u'添字': 'subscript',
    u'下付': 'subscript',
    u'下': 'subscript',
    u'上付': 'superscript',
    u'上': 'superscript',
    u'題参照': 'title-reference',
    u'pep参照': 'pep-reference',
    u'rfc参照': 'rfc-reference',
    u'強調': 'emphasis',
    u'強い': 'strong',
    u'リテラル': 'literal',
    u'整形済み': 'literal',
    u'名付参照': 'named-reference',
    u'無名参照': 'anonymous-reference',
    u'脚注参照': 'footnote-reference',
    u'出典参照': 'citation-reference',
    u'代入参照': 'substitution-reference',
    u'的': 'target',
    u'uri参照': 'uri-reference',
    u'uri': 'uri-reference',
    u'url': 'uri-reference',
    u'生': 'raw',}
"""Mapping of Japanese role names to canonical role names for interpreted
text."""