| 1 |
#pattern
|
| 2 |
<span class=secno>* </span>Text-level semantics
|
| 3 |
#ja
|
| 4 |
<span class=secno>$1 </span>文章水準の意味
|
| 5 |
|
| 6 |
#en
|
| 7 |
<a href="#interactive1">Interactive content</a>.
|
| 8 |
#ja
|
| 9 |
<a href="#interactive1">対話的内容</a>。
|
| 10 |
|
| 11 |
#en
|
| 12 |
<a href="#phrasing0">Phrasing content</a>, but there must be no <a
|
| 13 |
href="#interactive1">interactive content</a> descendant.
|
| 14 |
#ja
|
| 15 |
<a href="#phrasing0">語句付け内容</a>、ただし<a
|
| 16 |
href="#interactive1">対話的内容</a>な子孫があっては[[MUST NOT:なりません]]。
|
| 17 |
|
| 18 |
#en
|
| 19 |
Where <a href="#phrasing0">phrasing content</a> is expected.
|
| 20 |
#ja
|
| 21 |
<a href="#phrasing0">語句付け内容</a>が期待される場所。
|
| 22 |
|
| 23 |
#en
|
| 24 |
The <code title=command-ro><a href="#command2">Command</a></code>
|
| 25 |
interface must also be implemented by this element.
|
| 26 |
#ja
|
| 27 |
<code title=command-ro><a href="#command2">Command</a></code>
|
| 28 |
界面もこの要素に実装しなければ[[MUST:なりません]]。
|
| 29 |
|
| 30 |
#en
|
| 31 |
If the <code><a href="#a">a</a></code> element has an <code
|
| 32 |
title=attr-hyperlink-href><a href="#href6">href</a></code> attribute, then
|
| 33 |
it represents a <a href="#hyperlinks">hyperlink</a>.
|
| 34 |
#ja
|
| 35 |
<code><a href="#a">a</a></code> 要素が <code
|
| 36 |
title=attr-hyperlink-href><a href="#href6">href</a></code> 属性を持つ場合、
|
| 37 |
<a href="#hyperlinks">ハイパーリンク</a>を表します。
|
| 38 |
|
| 39 |
#en
|
| 40 |
If the <code><a href="#a">a</a></code> element has no <code
|
| 41 |
title=attr-hyperlink-href><a href="#href6">href</a></code> attribute, then
|
| 42 |
the element is a placeholder for where a link might otherwise have been
|
| 43 |
placed, if it had been relevant.
|
| 44 |
#ja
|
| 45 |
<code><a href="#a">a</a></code> 要素が <code
|
| 46 |
title=attr-hyperlink-href><a href="#href6">href</a></code>
|
| 47 |
属性を持たない場合、その要素は、もし関係があったとするとリンクが置かれていたであろう場所に場所持ち子です。
|
| 48 |
|
| 49 |
#en
|
| 50 |
The <code title=attr-hyperlink-target><a
|
| 51 |
href="#target3">target</a></code>, <code title=attr-hyperlink-ping><a
|
| 52 |
href="#ping">ping</a></code>, <code title=attr-hyperlink-rel><a
|
| 53 |
href="#rel3">rel</a></code>, <code title=attr-hyperlink-media><a
|
| 54 |
href="#media12">media</a></code>, <code title=attr-hyperlink-hreflang><a
|
| 55 |
href="#hreflang3">hreflang</a></code>, and <code
|
| 56 |
title=attr-hyperlink-type><a href="#type17">type</a></code> attributes
|
| 57 |
must be omitted if the <code title=attr-hyperlink-href><a
|
| 58 |
href="#href6">href</a></code> attribute is not present.
|
| 59 |
#ja
|
| 60 |
属性 <code title=attr-hyperlink-target><a
|
| 61 |
href="#target3">target</a></code>, <code title=attr-hyperlink-ping><a
|
| 62 |
href="#ping">ping</a></code>, <code title=attr-hyperlink-rel><a
|
| 63 |
href="#rel3">rel</a></code>, <code title=attr-hyperlink-media><a
|
| 64 |
href="#media12">media</a></code>, <code title=attr-hyperlink-hreflang><a
|
| 65 |
href="#hreflang3">hreflang</a></code>, <code
|
| 66 |
title=attr-hyperlink-type><a href="#type17">type</a></code> は、
|
| 67 |
<code title=attr-hyperlink-href><a
|
| 68 |
href="#href6">href</a></code> 属性がない場合、省略しなければ[[MUST:なりません]]。
|
| 69 |
|
| 70 |
#en
|
| 71 |
If a site uses a consistent navigation toolbar on every page, then the
|
| 72 |
link that would normally link to the page itself could be marked up using
|
| 73 |
an <code><a href="#a">a</a></code> element:
|
| 74 |
#ja
|
| 75 |
あるサイトが各頁で共通の誘導ツールバーを用いている場合、
|
| 76 |
通常はその頁自体にリンクしているリンクは <code><a href="#a">a</a></code>
|
| 77 |
要素を用いてマーク付けすることができます。
|
| 78 |
|
| 79 |
#en
|
| 80 |
<nav>
|
| 81 |
<ul>
|
| 82 |
<li> <a href="/">Home</a> </li>
|
| 83 |
<li> <a href="/news">News</a> </li>
|
| 84 |
<li> <a>Examples</a> </li>
|
| 85 |
<li> <a href="/legal">Legal</a> </li>
|
| 86 |
</ul>
|
| 87 |
</nav>
|
| 88 |
#ja
|
| 89 |
<nav>
|
| 90 |
<ul>
|
| 91 |
<li> <a href="/">家</a> </li>
|
| 92 |
<li> <a href="/news">おしらせ</a> </li>
|
| 93 |
<li> <a>例</a> </li>
|
| 94 |
<li> <a href="/legal">法的事項</a> </li>
|
| 95 |
</ul>
|
| 96 |
</nav>
|
| 97 |
|
| 98 |
#en
|
| 99 |
Interactive user agents should allow users to <a href="#following0"
|
| 100 |
title="following hyperlinks">follow hyperlinks</a> created using the
|
| 101 |
<code><a href="#a">a</a></code> element. The <code
|
| 102 |
title=attr-hyperlink-href><a href="#href6">href</a></code>, <code
|
| 103 |
title=attr-hyperlink-target><a href="#target3">target</a></code> and <code
|
| 104 |
title=attr-hyperlink-ping><a href="#ping">ping</a></code> attributes
|
| 105 |
decide how the link is followed. The <code title=attr-hyperlink-rel><a
|
| 106 |
href="#rel3">rel</a></code>, <code title=attr-hyperlink-media><a
|
| 107 |
href="#media12">media</a></code>, <code title=attr-hyperlink-hreflang><a
|
| 108 |
href="#hreflang3">hreflang</a></code>, and <code
|
| 109 |
title=attr-hyperlink-type><a href="#type17">type</a></code> attributes may
|
| 110 |
be used to indicate to the user the likely nature of the target resource
|
| 111 |
before the user follows the link.
|
| 112 |
#ja
|
| 113 |
対話的利用者エージェントは、利用者が <code><a href="#a">a</a></code>
|
| 114 |
要素を使って作られた<a href="#following0"
|
| 115 |
title="following hyperlinks">ハイパーリンクをたどる</a>ことができるようにする[[SHOULD:べきです]]。
|
| 116 |
属性 <code
|
| 117 |
title=attr-hyperlink-href><a href="#href6">href</a></code>, <code
|
| 118 |
title=attr-hyperlink-target><a href="#target3">target</a></code>, <code
|
| 119 |
title=attr-hyperlink-ping><a href="#ping">ping</a></code>
|
| 120 |
は、リンクがどうたどられるかを決めます。属性 <code title=attr-hyperlink-rel><a
|
| 121 |
href="#rel3">rel</a></code>, <code title=attr-hyperlink-media><a
|
| 122 |
href="#media12">media</a></code>, <code title=attr-hyperlink-hreflang><a
|
| 123 |
href="#hreflang3">hreflang</a></code>, <code
|
| 124 |
title=attr-hyperlink-type><a href="#type17">type</a></code>
|
| 125 |
は、利用者がリンクをたどる前に対象資源の性質がどうでありそうかを利用者に示すために使って[[MAY:構いません]]。
|
| 126 |
|
| 127 |
#en
|
| 128 |
The <a href="#activation0">activation behavior</a> of <code><a
|
| 129 |
href="#a">a</a></code> elements that represent <span>hyperlinks</span> is
|
| 130 |
to run the following steps:
|
| 131 |
#ja
|
| 132 |
<span>ハイパーリンク</span>を表す <code><a
|
| 133 |
href="#a">a</a></code> 要素の<a href="#activation0">活性化動作</a>は、
|
| 134 |
次の段階を動作させることです。
|
| 135 |
|
| 136 |
#en
|
| 137 |
If the <code title=event-DOMActivate>DOMActivate</code> event in
|
| 138 |
question is not <span title=concept-events-trusted>trusted</span> (i.e.
|
| 139 |
a <code title=dom-click><a href="#click1">click()</a></code> method call
|
| 140 |
was the reason for the event being dispatched), and the <code><a
|
| 141 |
href="#a">a</a></code> element's <code title=attr-hyperlink-target><a
|
| 142 |
href="#target3">target</a></code> attribute is <span
|
| 143 |
class=big-issue>...</span> then raise an <code>INVALID_ACCESS_ERR</code>
|
| 144 |
exception and abort these steps.
|
| 145 |
#ja
|
| 146 |
当該 <code title=event-DOMActivate>DOMActivate</code> 事象が<span title=concept-events-trusted>信用でき</span>ない場合 (つまり、
|
| 147 |
<code title=dom-click><a href="#click1">click()</a></code>
|
| 148 |
メソッド呼び出しが事象の発送の理由である場合) で、 <code><a
|
| 149 |
href="#a">a</a></code> 要素の <code title=attr-hyperlink-target><a
|
| 150 |
href="#target3">target</a></code> 属性が <span
|
| 151 |
class=big-issue>...</span> である場合、 <code>INVALID_ACCESS_ERR</code>
|
| 152 |
例外を発生させ、これらの段階を停止します。
|
| 153 |
|
| 154 |
#en
|
| 155 |
If the target of the <code title=event-DOMActivate>DOMActivate</code>
|
| 156 |
event is an <code><a href="#img">img</a></code> element with an <code
|
| 157 |
title=attr-img-ismap><a href="#ismap">ismap</a></code> attribute
|
| 158 |
specified, then server-side image map processing must be performed, as
|
| 159 |
follows:
|
| 160 |
#ja
|
| 161 |
<code title=event-DOMActivate>DOMActivate</code> 事象の対象が
|
| 162 |
<code><a href="#img">img</a></code> 要素で、その <code
|
| 163 |
title=attr-img-ismap><a href="#ismap">ismap</a></code> 属性が指定されている場合、
|
| 164 |
鯖側画像写像処理を次のように行わなければ[[MUST:なりません]]。
|
| 165 |
|
| 166 |
#en
|
| 167 |
If the <code title=event-DOMActivate>DOMActivate</code> event was
|
| 168 |
dispatched as the result of a real pointing-device-triggered <code
|
| 169 |
title=event-click>click</code> event on the <code><a
|
| 170 |
href="#img">img</a></code> element, then let <var title="">x</var> be
|
| 171 |
the distance in CSS pixels from the left edge of the image to the
|
| 172 |
location of the click, and let <var title="">y</var> be the distance in
|
| 173 |
CSS pixels from the top edge of the image to the location of the click.
|
| 174 |
Otherwise, let <var title="">x</var> and <var title="">y</var> be zero.
|
| 175 |
#ja
|
| 176 |
<code title=event-DOMActivate>DOMActivate</code> 事象が、現実に指示装置が誘発した
|
| 177 |
<code><a
|
| 178 |
href="#img">img</a></code> 要素上の <code
|
| 179 |
title=event-click>click</code> 事象の結果として発送された場合、
|
| 180 |
<var title="">x</var> を画像の左辺からクリックの位置までの CSS 画素による距離とし、
|
| 181 |
<var title="">y</var> を画像の上辺からクリックの位置までの CSS 画素による距離とします。
|
| 182 |
それ以外の場合、 <var title="">x</var> と <var title="">y</var>
|
| 183 |
を零とします。
|
| 184 |
|
| 185 |
#en
|
| 186 |
Let the <dfn id=hyperlink2><var>hyperlink suffix</var></dfn> be a
|
| 187 |
U+003F QUESTION MARK character, the value of <var title="">x</var>
|
| 188 |
|
| 189 |
expressed as a base-ten integer using ASCII digits (U+0030 DIGIT ZERO
|
| 190 |
to U+0039 DIGIT NINE), a U+002C COMMA character, and the value of <var
|
| 191 |
title="">y</var> expressed as a base-ten integer using ASCII digits.
|
| 192 |
#ja
|
| 193 |
<dfn id=hyperlink2><var>ハイパーリンク接尾辞</var></dfn>をU+003F QUESTION MARK
|
| 194 |
文字、 <var title="">x</var> の値の ASCII 数字 (U+0030 DIGIT ZERO
|
| 195 |
から U+0039 DIGIT NINE) を使った十進整数表現、 U+002C COMMA
|
| 196 |
文字、 <var
|
| 197 |
title="">y</var> の値の ASCII 数字を使った十進整数表現とします。
|
| 198 |
|
| 199 |
#en
|
| 200 |
Finally, the user agent must <a href="#following0" title="following
|
| 201 |
hyperlinks">follow the hyperlink</a> defined by the <code><a
|
| 202 |
href="#a">a</a></code> element. If the steps above defined a <var><a
|
| 203 |
href="#hyperlink2">hyperlink suffix</a></var>, then take that into
|
| 204 |
account when following the hyperlink.
|
| 205 |
#ja
|
| 206 |
最後に、利用者エージェントは <code><a
|
| 207 |
href="#a">a</a></code> 要素で定義される<a href="#following0" title="following
|
| 208 |
hyperlinks">ハイパーリンクをたどら</a>なければ[[MUST:なりません]]。
|
| 209 |
先の段階が<var><a
|
| 210 |
href="#hyperlink2">ハイパーリンク接尾辞</a></var>を定義している場合、
|
| 211 |
これをハイパーリンクをたどる時に考慮に入れます。
|
| 212 |
|
| 213 |
#en
|
| 214 |
One way that a user agent can enable users to follow
|
| 215 |
hyperlinks is by allowing <code><a href="#a">a</a></code> elements to be
|
| 216 |
clicked, or focussed and activated by the keyboard. This <span
|
| 217 |
title="interactive elements">will cause</span> the aforementioned <a
|
| 218 |
href="#activation0">activation behavior</a> to be invoked.
|
| 219 |
#ja
|
| 220 |
利用者がハイパーテキストをたどることができるように利用者エージェントがする1つの方法は、
|
| 221 |
<code><a href="#a">a</a></code> をクリックできるようにするか、
|
| 222 |
鍵盤から焦点を当て、活性化できるようにすることです。これによって先述の<a
|
| 223 |
href="#activation0">活性化動作</a>が呼び出される<span
|
| 224 |
title="interactive elements">ことになります</span>。
|
| 225 |
|
| 226 |
#en
|
| 227 |
The DOM attributes <dfn id=href3
|
| 228 |
title=dom-a-href><code>href</code></dfn>, <dfn id=ping0
|
| 229 |
title=dom-a-ping><code>ping</code></dfn>, <dfn id=target1
|
| 230 |
title=dom-a-target><code>target</code></dfn>, <dfn id=rel1
|
| 231 |
title=dom-a-rel><code>rel</code></dfn>, <dfn id=media4
|
| 232 |
title=dom-a-media><code>media</code></dfn>, <dfn id=hreflang1
|
| 233 |
title=dom-a-hreflang><code>hreflang</code></dfn>, and <dfn id=type3
|
| 234 |
title=dom-a-type><code>type</code></dfn>, must each <a
|
| 235 |
href="#reflect">reflect</a> the respective content attributes of the same
|
| 236 |
name.
|
| 237 |
#ja
|
| 238 |
DOM 属性 <dfn id=href3
|
| 239 |
title=dom-a-href><code>href</code></dfn>, <dfn id=ping0
|
| 240 |
title=dom-a-ping><code>ping</code></dfn>, <dfn id=target1
|
| 241 |
title=dom-a-target><code>target</code></dfn>, <dfn id=rel1
|
| 242 |
title=dom-a-rel><code>rel</code></dfn>, <dfn id=media4
|
| 243 |
title=dom-a-media><code>media</code></dfn>, <dfn id=hreflang1
|
| 244 |
title=dom-a-hreflang><code>hreflang</code></dfn>, <dfn id=type3
|
| 245 |
title=dom-a-type><code>type</code></dfn>
|
| 246 |
は、それぞれ同じ名前の内容属性を<a
|
| 247 |
href="#reflect">反映</a>しなければ[[MUST:なりません]]。
|
| 248 |
|
| 249 |
#en
|
| 250 |
The DOM attribute <dfn id=rellist0
|
| 251 |
title=dom-a-rellist><code>relList</code></dfn> must <a
|
| 252 |
href="#reflect">reflect</a> the <code title=attr-hyperlink-rel><a
|
| 253 |
href="#rel3">rel</a></code> content attribute.
|
| 254 |
#ja
|
| 255 |
DOM 属性 <dfn id=rellist0
|
| 256 |
title=dom-a-rellist><code>relList</code></dfn> は <code title=attr-hyperlink-rel><a
|
| 257 |
href="#rel3">rel</a></code> 内容属性を<a
|
| 258 |
href="#reflect">反映</a>しなければ[[MUST:なりません]]。
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
#en
|
| 264 |
One or more groups of: <a href="#phrasing0">phrasing content</a>
|
| 265 |
|
| 266 |
followed either by a single <code><a href="#rt">rt</a></code> element, or
|
| 267 |
an <code><a href="#rp">rp</a></code> element, an <code><a
|
| 268 |
href="#rt">rt</a></code> element, and another <code><a
|
| 269 |
href="#rp">rp</a></code> element.
|
| 270 |
#ja
|
| 271 |
次の群を1つ以上: <a href="#phrasing0">語句付け内容</a>の後に、
|
| 272 |
<code><a href="#rt">rt</a></code> 要素が1つか、または
|
| 273 |
<code><a href="#rp">rp</a></code> 要素と <code><a
|
| 274 |
href="#rt">rt</a></code> 要素と別の <code><a
|
| 275 |
href="#rp">rp</a></code> 要素、のいずれかが続く。
|
| 276 |
|
| 277 |
#en
|
| 278 |
The <code><a href="#ruby">ruby</a></code> element allows one or more
|
| 279 |
spans of phrasing content to be marked with ruby annotations.
|
| 280 |
#ja
|
| 281 |
<code><a href="#ruby">ruby</a></code> 要素は、
|
| 282 |
1つ以上の語句付け内容の範囲にルビ注釈を付すことができます。
|
| 283 |
|
| 284 |
#en
|
| 285 |
A <code><a href="#ruby">ruby</a></code> element represents the spans of
|
| 286 |
phrasing content it contains, ignoring all the child <code><a
|
| 287 |
href="#rt">rt</a></code> and <code><a href="#rp">rp</a></code> elements
|
| 288 |
and their descendants. Those spans of phrasing content have associated
|
| 289 |
annotations created using the <code><a href="#rt">rt</a></code> element.
|
| 290 |
#ja
|
| 291 |
<code><a href="#ruby">ruby</a></code> 要素は、すべての子供 <code><a
|
| 292 |
href="#rt">rt</a></code> 要素・<code><a href="#rp">rp</a></code> 要素とその子孫を無視したときの、
|
| 293 |
当該要素に含まれる語句付け内容の範囲(群)を表します。
|
| 294 |
語句付け内容の範囲(群)は、 <code><a href="#rt">rt</a></code>
|
| 295 |
要素を使って作成される、関連付けられた注釈を持ちます。
|
| 296 |
|
| 297 |
#en
|
| 298 |
In this example, each ideograph in the text <span
|
| 299 |
lang=ja>斎藤信男</span> is annotated with its
|
| 300 |
reading.
|
| 301 |
#ja
|
| 302 |
次の例では、<span
|
| 303 |
lang=ja>斎藤信男</span>という語中のそれぞれの漢字に読みを注釈付けしています。
|
| 304 |
|
| 305 |
#en
|
| 306 |
This might be rendered as:
|
| 307 |
#ja
|
| 308 |
これは、次のようにレンダリングされましょう。
|
| 309 |
|
| 310 |
#en
|
| 311 |
<img alt="The four main ideographs, each with its reading annotation
|
| 312 |
rendered in a smaller font above it." src="images/sample-ruby.png">
|
| 313 |
#ja
|
| 314 |
<img alt="4つの主たる漢字があり、それぞれの読みの注釈が小さなフォントで漢字の上にレンダリングされています。" src="http://www.whatwg.org/specs/web-apps/current-work/images/sample-ruby.png">
|
| 315 |
|
| 316 |
#pattern
|
| 317 |
As a child of a * element.
|
| 318 |
#ja
|
| 319 |
$1 要素の子供として。
|
| 320 |
|
| 321 |
#en
|
| 322 |
The <code><a href="#rt">rt</a></code> element marks the ruby text
|
| 323 |
component of a ruby annotation.
|
| 324 |
#ja
|
| 325 |
<code><a href="#rt">rt</a></code> 要素は、ルビ注釈のルビ文部分を示します。
|
| 326 |
|
| 327 |
#en
|
| 328 |
An <code><a href="#rt">rt</a></code> element that is a child of a
|
| 329 |
<code><a href="#ruby">ruby</a></code> element represents an annotation
|
| 330 |
(given by its children) for the zero or more nodes of phrasing content
|
| 331 |
that immediately precedes it in the <code><a href="#ruby">ruby</a></code>
|
| 332 |
element, ignoring <code><a href="#rp">rp</a></code> elements.
|
| 333 |
#ja
|
| 334 |
<code><a href="#ruby">ruby</a></code> 要素の子供である
|
| 335 |
<code><a href="#rt">rt</a></code> 要素は、
|
| 336 |
当該 <code><a href="#ruby">ruby</a></code> 要素中で
|
| 337 |
(<code><a href="#rp">rp</a></code> 要素を無視した時)
|
| 338 |
直前にある零個以上の語句付け内容の節点に対する注釈
|
| 339 |
(子供により与えられます。) を表します。
|
| 340 |
|
| 341 |
#en
|
| 342 |
An <code><a href="#rt">rt</a></code> element that is not a child of a
|
| 343 |
<code><a href="#ruby">ruby</a></code> element represents the same thing as
|
| 344 |
its children.
|
| 345 |
#ja
|
| 346 |
<code><a href="#ruby">ruby</a></code> 要素の子供ではない
|
| 347 |
<code><a href="#rt">rt</a></code> 要素は、
|
| 348 |
その子供と同じものを表します。
|
| 349 |
|
| 350 |
#en
|
| 351 |
As a child of a <code><a href="#ruby">ruby</a></code> element, either
|
| 352 |
immediately before or immediately after an <code><a
|
| 353 |
href="#rt">rt</a></code> element.
|
| 354 |
#ja
|
| 355 |
<code><a href="#ruby">ruby</a></code> 要素の子供として、 <code><a
|
| 356 |
href="#rt">rt</a></code> 要素の直前または直後に。
|
| 357 |
|
| 358 |
#en
|
| 359 |
If the <code><a href="#rp">rp</a></code> element is immediately after
|
| 360 |
an <code><a href="#rt">rt</a></code> element that is immediately preceded
|
| 361 |
by another <code><a href="#rp">rp</a></code> element: a single character
|
| 362 |
from Unicode character class Pe.
|
| 363 |
#ja
|
| 364 |
<code><a href="#rp">rp</a></code> 要素が別の <code><a href="#rp">rp</a></code>
|
| 365 |
要素の直後にある <code><a href="#rt">rt</a></code> 要素の直後の場合:
|
| 366 |
Unicode 文字クラス Pe から1文字。
|
| 367 |
|
| 368 |
#en
|
| 369 |
Otherwise: a single character from Unicode character class Ps.
|
| 370 |
#ja
|
| 371 |
それ以外の場合: Unicode 文字クラス Ps から1文字。
|
| 372 |
|
| 373 |
#en
|
| 374 |
The <code><a href="#rp">rp</a></code> element can be used to provide
|
| 375 |
parentheses around a ruby text component of a ruby annotation, to be shown
|
| 376 |
by user agents that don't support ruby annotations.
|
| 377 |
#ja
|
| 378 |
<code><a href="#rp">rp</a></code> 要素は、
|
| 379 |
ルビ注釈に対応していない利用者エージェントが示す、
|
| 380 |
ルビ注釈のルビ文部分の周囲の括弧を提供するために使うことができます。
|
| 381 |
|
| 382 |
#en
|
| 383 |
An <code><a href="#rp">rp</a></code> element that is a child of a
|
| 384 |
<code><a href="#ruby">ruby</a></code> element represents nothing and it
|
| 385 |
and its contents must be ignored. An <code><a href="#rp">rp</a></code>
|
| 386 |
element whose parent element is not a <code><a
|
| 387 |
href="#ruby">ruby</a></code> element represents the same thing as its
|
| 388 |
children.
|
| 389 |
#ja
|
| 390 |
<code><a href="#ruby">ruby</a></code> 要素の子供である
|
| 391 |
<code><a href="#rp">rp</a></code> 要素は、何も表さず、
|
| 392 |
その要素と内容は無視されなければ[[MUST:なりません]]。親要素が <code><a
|
| 393 |
href="#ruby">ruby</a></code> 要素でない <code><a href="#rp">rp</a></code>
|
| 394 |
要素は、その子供と同じものを表します。
|
| 395 |
|
| 396 |
#en
|
| 397 |
The example above, in which each ideograph in the text <span
|
| 398 |
lang=ja>斎藤信男</span> is annotated with its
|
| 399 |
reading, could be expanded to use <code><a href="#rp">rp</a></code> so
|
| 400 |
that in legacy user agentthe readings are in parentheses:
|
| 401 |
#ja
|
| 402 |
前掲の<span
|
| 403 |
lang=ja>斎藤信男</span>という語中で漢字に読みが注釈付けされている例では、
|
| 404 |
遺物利用者エージェントが読みを括弧中に示すようにするため、
|
| 405 |
<code><a href="#rp">rp</a></code> も更に使うことができます。
|
| 406 |
|
| 407 |
#en
|
| 408 |
In conforming user agents the rendering would be as above, but in user
|
| 409 |
agents that do not support ruby, the rendering would be:
|
| 410 |
#ja
|
| 411 |
適合容赦エージェントでのレンダリングは先のようになりますが、
|
| 412 |
ルビに対応していない利用者エージェントでは、
|
| 413 |
レンダリングは次のようになります。
|
| 414 |
|
| 415 |
#pattern
|
| 416 |
<span class=secno>* </span>Usage summary
|
| 417 |
#ja
|
| 418 |
<span class=secno>$1 </span>利用法のまとめ
|
| 419 |
|
| 420 |
#pattern
|
| 421 |
<span class=secno>* </span>Footnotes
|
| 422 |
#ja
|
| 423 |
<span class=secno>$1 </span>脚注
|
| 424 |
|
| 425 |
#en
|
| 426 |
HTML does not have a dedicated mechanism for marking up footnotes. Here
|
| 427 |
are the recommended alternatives.
|
| 428 |
#ja
|
| 429 |
HTML は脚注をマーク付けするための専用の仕組みを持っていません。
|
| 430 |
ここでは、[[RECOMMENDED:推奨]]される代替法を紹介します。
|
| 431 |
|
| 432 |
#en
|
| 433 |
For short inline annotations, the <code title=attr-title><a
|
| 434 |
href="#title">title</a></code> attribute should be used.
|
| 435 |
#ja
|
| 436 |
短い行内注釈については、 <code title=attr-title><a
|
| 437 |
href="#title">title</a></code> 属性を使う[[SHOULD:べきです]]。
|
| 438 |
|
| 439 |
#en
|
| 440 |
In this example, two parts of a dialog are annotated.
|
| 441 |
#ja
|
| 442 |
次の例では、対話の2つの部分が注釈付けされています。
|
| 443 |
|
| 444 |
#en
|
| 445 |
For longer annotations, the <code><a href="#a">a</a></code> element
|
| 446 |
should be used, pointing to an element later in the document. The
|
| 447 |
convention is that the contents of the link be a number in square
|
| 448 |
brackets.
|
| 449 |
#ja
|
| 450 |
より長い注釈については、 <code><a href="#a">a</a></code>
|
| 451 |
を使って、文書の後の要素を指すようにする[[SHOULD:べきです]]。
|
| 452 |
慣習的にはリンクの内容は数字を四角括弧で括ったものです。
|
| 453 |
|
| 454 |
#en
|
| 455 |
In this example, a footnote in the dialog links to a paragraph below
|
| 456 |
the dialog. The paragraph then reciprocally links back to the dialog,
|
| 457 |
allowing the user to return to the location of the footnote.
|
| 458 |
#ja
|
| 459 |
次の例では、対話中の脚注が対話の後の段落へのリンクとなっています。
|
| 460 |
その段落の方は逆に対話へ逆リンクしており、
|
| 461 |
利用者が脚注の場所へ返れるようになっています。
|
| 462 |
|
| 463 |
#en
|
| 464 |
For side notes, longer annotations that apply to entire sections of the
|
| 465 |
text rather than just specific words or sentences, the <code><a
|
| 466 |
href="#aside">aside</a></code> element should be used.
|
| 467 |
#ja
|
| 468 |
傍注 (文章中の特定の語や文に対してだけではなく、節全体に適用される、
|
| 469 |
より長い注釈) には、 <code><a
|
| 470 |
href="#aside">aside</a></code> 要素を使う[[SHOULD:べきです]]。
|
| 471 |
|
| 472 |
#en
|
| 473 |
In this example, a sidebar is given after a dialog, giving some context
|
| 474 |
to the dialog.
|
| 475 |
#ja
|
| 476 |
次の例では、対話の後に傍注があり、対話の背景を説明しています。
|
| 477 |
|