- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 30 Dec 2008 04:34:15 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv19587
Modified Files:
Overview.html
Log Message:
New examples of <ruby>. Thanks to MikeSmith and heycam for the help. (whatwg r2627)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1796
retrieving revision 1.1797
diff -u -d -r1.1796 -r1.1797
--- Overview.html 30 Dec 2008 01:38:23 -0000 1.1796
+++ Overview.html 30 Dec 2008 04:34:13 -0000 1.1797
@@ -11478,19 +11478,58 @@
phrasing content have associated annotations created using the
<code><a href=#the-rt-element>rt</a></code> element.<div class=example>
- <p>In this example, each ideograph in the text <span lang=ja>斎藤信男</span> is annotated with
- its reading.</p>
+ <!-- this is the kanji for the word "kanji" ("chinese character") in japanese -->
+ <!-- in japanese, ruby-like typography is called "furigana" -->
- <pre lang=ja>... <ruby>
- 斎 <rt> さい </rt>
- 藤 <rt> とう </rt>
- 信 <rt> のぶ </rt>
- 男 <rt> お </rt>
-</ruby> ...</pre>
+ <p>In this example, each ideograph in the Japanese text <span lang=ja>漢字</span> is annotated with its kanji
+ reading.</p>
+
+ <pre lang=ja>...
+<ruby>
+ 漢 <rt> かん </rt>
+ 字 <rt> じ  </rt>
+</ruby>
+...</pre>
<p>This might be rendered as:</p>
- <p><img alt="The four main ideographs, each with its reading annotation rendered in a smaller font above it." src=images/sample-ruby.png></p>
+ <p><img alt="The two main ideographs, each with its kanji annotation rendered in a smaller font above it." src=images/sample-ruby-ja.png></p>
+
+ </div><div class=example>
+
+ <!-- this is the bopomofo for the word "hanzi" ("chinese character") in traditional chinese, as used in taiwan -->
+
+ <p>In this example, each ideograph in the traditional Chinese text
+ <span lang=zh-TW>漢字</span> is annotated with its
+ bopomofo reading.</p>
+
+ <pre class=zh-TW><ruby>
+ 漢 <rt> ㄏㄢˋ </rt>
+ 字 <rt> ㄗˋ  </rt>
+</ruby></pre>
+
+ <p>This might be rendered as:</p>
+
+ <p><img alt="The two main ideographs, each with its bopomofo annotation rendered in a smaller font next to it." src=images/sample-ruby-bopomofo.png></p>
+
+ </div><div class=example>
+
+ <!-- this is the pinyin for the word "hanzi" ("chinese character") in simplified chinese, as used in mainland china -->
+
+ <p>In this example, each ideograph in the simplified Chinese text
+ <span lang=zh-CN>汉字</span> is annotated with its
+ pinyin reading.</p>
+
+ <pre class=zh-CN>...
+<ruby>
+ 汉 <rt> hàn </rt>
+ 字 <rt> zì </rt>
+</ruby>
+...</pre>
+
+ <p>This might be rendered as:</p>
+
+ <p><img alt="The two main ideographs, each with its pinyin annotation rendered in a smaller font next to it." src=images/sample-ruby-pinyin.png></p>
</div><h4 id=the-rt-element><span class=secno>4.6.23 </span>The <dfn><code>rt</code></dfn> element</h4><dl class=element><dt>Categories</dt>
<dd>None.</dd>
Received on Tuesday, 30 December 2008 04:34:24 UTC