Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Ruby character
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Markup examples === Below are a few examples of ruby markup. The markup is shown first, and the rendered markup is shown next, followed by the unmarked version. Web browsers either render it with the correct size and positioning as shown in the table-based examples above, or use the fallback rendering with the ruby characters in parentheses: {| class="wikitable" |- ! || colspan="2" | XHTML || CSS level 2<ref name="css2_ruby" /> |- ! scope="row" | Markup | <syntaxhighlight lang="html"> <ruby> 東京 <rp>(</rp> <rt>とうきょう</rt><rp>)</rp> </ruby> </syntaxhighlight> | <syntaxhighlight lang="html"> <ruby> 北 <rp>(</rp><rt>ㄅㄟˇ</rt><rp>)</rp> 京 <rp>(</rp><rt>ㄐㄧㄥ</rt><rp>)</rp> </ruby> </syntaxhighlight> | <syntaxhighlight lang="html"> <ruby> <rbc><rb>振</rb><rb>り</rb><rb>仮</rb><rb>名</rb><rp>(</rp></rbc> <rtc><rt>ふ</rt><rt>り</rt><rt>が</rt><rt>な</rt><rp>)</rp></rtc> </ruby> </syntaxhighlight> |- style="height:70px" ! scope="row" | Rendered | <ruby style="font-size:2em;" lang="ja"> <rb>東京</rb><rp>(</rp> <rt>とうきょう</rt><rp>)</rp> </ruby> | <ruby style="font-size:2em;" lang="zh-Hant"> <rb>北</rb><rp>(</rp><rt>ㄅㄟˇ</rt><rp>)</rp> <rb>京</rb><rp>(</rp><rt>ㄐㄧㄥ</rt><rp>)</rp> </ruby> | <ruby style="font-size:2em;" lang="ja"> <rb>振</rb><rp>(</rp><rt>ふ</rt><rp>)</rp>り</ruby><ruby style="font-size:2em;" lang="ja"><rb>仮</rb><rp>(</rp><rt>が</rt><rp>)</rp><rb>名</rb><rp>(</rp><rt>な</rt><rp>)</rp> </ruby><br /> <small>By default, the code above will come to the effect below. To achieve this effect, you may need further CSS styling.</small> |- style="height:70px" ! scope="row" | Unmarked | style="font-size:1.2em" lang="ja" | 東京(とうきょう) | style="font-size:1.2em" lang="zh-Hant" | 北(ㄅㄟˇ)京(ㄐㄧㄥ) | style="font-size:1.2em" lang="ja" | 振り仮名(ふりがな) |} Note that Chinese ruby text would normally be displayed in vertical columns to the right of each character. This approach is not typically supported in browsers at present. This is a table-based example of vertical columns: {| |style="line-height:1em; font-size:2em; vertical-align:middle" |{{lang|zh-Hant|瓶}} || style="line-height:1em; font-size:0.8em; vertical-align:middle" | {{lang|zh-tw|ㄆ<br />ㄧ<br />ㄥˊ}} |- |style="line-height:1em; font-size:2em; vertical-align:middle" | {{lang|zh-Hant|子}} || style="line-height:1em; font-size:0.8em; vertical-align:middle" | {{lang|zh-tw|˙<br />ㄗ}} |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)