2 ms·
MDN describes <ruby>’s typical usage for showing pronunciation of East Asian characters but only gives examples for Japanese. Wikipedia [1] offers a few additi
by divbzero 5y ago
MDN describes <ruby>’s typical usage for showing pronunciation of East Asian characters but only gives examples for Japanese.
Wikipedia [1] offers a few additional examples for other languages.
Chinese (pinyin):
<ruby>
北 <rp>(</rp><rt>běi</rt><rp>)</rp>
京 <rp>(</rp><rt>jīng</rt><rp>)</rp>
</ruby>
Chinese (zhuyin):
<ruby>
北 <rp>(</rp><rt>ㄅㄟˇ</rt><rp>)</rp>
京 <rp>(</rp><rt>ㄐ丨ㄥ</rt><rp>)</rp>
</ruby>
Korean (hangul):
<ruby>
韓 <rp>(</rp><rt>한</rt><rp>)</rp>
國 <rp>(</rp><rt>국</rt><rp>)</rp>
</ruby>
Vietnamese (chữ Quốc ngữ):
<ruby>
河 <rp>(</rp><rt>Hà</rt><rp>)</rp>
內 <rp>(</rp><rt>Nội</rt><rp>)</rp>
</ruby>
[1]: https://en.wikipedia.org/wiki/Ruby_character https://en.wikipedia.org/wiki/Ruby_character