/
31.txt
136 lines (104 loc) · 2.58 KB
/
31.txt
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[1] [[H2H]] の仕様案 [DFN[[CODE[draft-h2h.txt]]]]
[[タイムスタンプ]] [TIME[2001年6月17日、17:51:30][2001-06-17T17:51:30+09:00]]
[PRE[
Block Element
CITE
Semantics: Citation.
Parameter: @{default} | source | uri
HTML: div element.
Link: ok (discouraged)
Text: source as ${CHAR} (discouraged)
Content: ${inline} | ${block}
DIV
Semantics: Content group.
Parameter: @{default}
HTML: div element.
Content: ${CHAR} | ${inline} | ${block}
P
Semantics: A paragraph.
Parameter: @{default}
HTML: p element.
Content: ${CHAR} | ${inline}
End command (/P) is optional.
Example:
P
hogehoge
/P
P
foo
P {class => fooclass}
This paragraph is viewed as red text.
/P
FN {@{default}}
${CHAR} | ${inline}
/FN
Inline/Block command
DEL {@{default},date} ${CHAR}
DEL {@{default},date}
${block}
/DEL
INS {@{default},date} ${CHAR}
INS {@{default},date}
${block}
/INS
YAMI {@{default}} ${CHAR}
YAMI {@{default}}
${block}
/YAMI
Inline command
ABBR {@{default}} $${CHAR} ${CHAR}
ACRONYM {@{default}} $${CHAR} ${CHAR}
LDIARY {@{default}} ${CHAR} $${CHAR}
LIMG {@{default}} ${URI} n ${URI} $${CHAR}
LINK {@{default}} ${URI} $${CHAR}
LMG {@{default}} ${URI} $${CHAR}
PERSON {@{default}} ${ID} $${CHAR}
RUBY {@{default},position} $${CHAR} $${CHAR}
SEE {@{default}} ${ID} $${CHAR}
SPAN {@{default}} $${CHAR}
STRONG {@{default}} $${CHAR}
!
!#
ABBR+ {@{default}} ${CHAR}
${CHAR} | ${inline}
/ABBR
RUBY+ {@{default}}
RB
${CHAR} | ${inline}
/RB
RT {@{default},position}
${CHAR} | ${inline}
/RT
/RUBY
Parameter value
Parameter names are usualy small-case.
class
Semantics: Style class.
HTML: class attribute.
Content: [A-Za-z_-][A-Za-z0-9_-]*
id
Semantics: Unique ID.
HTML: id attribute.
Content: [A-Za-z_-][A-Za-z0-9_-]*
source (CITE command)
Semantics: Description of cited document.
HTML: cite element.
Content: ${CHAR}
title
Semantics: Additional information of command content.
HTML: title attribute.
Content: ${CHAR}
uri
Semantics: URI of cited document.
HTML: cite attribute.
Content: ${URI}
@{default} = (id, class, title);
With most of commands you can use these parameter.
TABLE
HEAD
$str(?:\t$str)+
/HEAD
$str(?:\t$str)+
/TABLE
VOTE
]PRE]