Ruby character








Ruby characters (ルビ, rubi) are small, annotative glosses that are usually placed above or to the right of Chinese characters when writing languages with logographic characters such as Chinese, Japanese or Korean to show the pronunciation. Typically called just ruby or rubi, such annotations are most commonly used as pronunciation guides for characters that are likely to be unfamiliar to the reader.




Contents






  • 1 Examples


  • 2 Uses


  • 3 History


  • 4 HTML markup


    • 4.1 Markup examples


    • 4.2 Complex ruby markup




  • 5 Unicode


  • 6 ANSI


  • 7 See also


  • 8 References





Examples


Here is an example of Japanese ruby characters (called furigana) for Tokyo ("東京"):














Hiragana

Katakana

Romaji











とう

きょう
















トー

キョー
















kyō






Most furigana (Japanese ruby characters) are written with the hiragana syllabary, but katakana and romaji are also occasionally used. Alternatively, sometimes foreign words (usually English) are printed with furigana implying the meaning, and vice versa. Textbooks usually write on-readings with katakana and kun-readings with hiragana.


Here is an example of the Bopomofo ruby characters for Beijing ("北京"):












Zhuyin

Pinyin











ㄅㄟˇ

ㄐ丨ㄥ
















běi

jīng






In Taiwan, the syllabary used for Chinese ruby characters is Zhuyin fuhao (also known as Bopomofo); in mainland China pinyin is used. Typically, unlike the example shown above, zhuyin is used with a vertical traditional writing and zhuyin is written on the right side of the characters. In mainland China, horizontal script is used and ruby characters (pinyin) are written above the Chinese characters.


Books with phonetic guides (especially pinyin) are popular with children and foreigners learning Chinese.


Here is an example of the Korean ruby characters for Korea ("韓國"):












Hangul

Romaja





























han
guk






Romaja is normally used in foreign textbooks until Hangul is introduced. Ruby characters can be quite common on signs in certain parts of South Korea.



Uses


Ruby may be used for different reasons:



  • because the character is rare and the pronunciation unknown to many—personal name characters often fall into this category;

  • because the character has more than one pronunciation, and the context is insufficient to determine which to use;

  • because the intended readers of the text are still learning the language and are not expected to always know the pronunciation and/or meaning of a term;

  • because the author is using a nonstandard pronunciation for a character or a term—for example, comic books often employ ruby to emphasise dajare puns, as in Hana Yori Dango (rather than standard "Danshi" reading), and show both of the pronunciation and meaning, as in "One Piece" in One Piece (displayed by ruby character "Wan Piisu" ("One Piece") as the pronunciation and main character "Hitotsunagi no Daihihou" ("The Great Treasure of One Piece") as meaning).


Also, ruby may be used to show the meaning, rather than pronunciation, of a possibly-unfamiliar (usually foreign) or slang word. This is generally used with spoken dialogue and applies only to Japanese publications. The most common form of ruby is called furigana or yomigana and is found in Japanese instructional books, newspapers, comics and books for children.


In Japanese, certain characters, such as the sokuon (促音) (little tsu, ) that indicates a pause before the consonant it precedes, are normally written at about half the size of normal characters. When written as ruby, such characters are usually the same size as other ruby characters. Advancements in technology now allow certain characters to render accurately.[clarification needed][1]


In Chinese, the practice of providing phonetic cues via ruby is rare, but does occur systematically in grade-school level text books or dictionaries. The Chinese have no special name for this practice, as it is not as widespread as in Japan. In Taiwan, it is known as "zhuyin", from the name of the phonetic system employed for this purpose there. It is virtually always used vertically, because publications are normally in a vertical format, and zhuyin is not as easy to read when presented horizontally[citation needed]. Where zhuyin is not used, other Chinese phonetic systems like pinyin are employed.




An example of Vietnamese ruby text


In academic settings, Vietnamese text written in chữ Hán or chữ Nôm may be glossed with quốc ngữ ruby for modern readers.[citation needed]


Sometimes interlinear glosses are visually similar to ruby, appearing above or below the main text in smaller type. However, this is a distinct practice used for helping students of a foreign language by giving glosses for the words in a text, as opposed to the pronunciation of lesser-known characters.


Ruby annotation can also be used in handwriting.



History






Hunmin Jeongeum Eonhae uses hanja and small hangul for ruby on right below


In British typography, ruby was originally the name for type with a height of 5.5 points, which printers used for interlinear annotations in printed documents. In Japanese, rather than referring to a font size, the word became the name for typeset furigana. When transliterated back into English, some texts rendered the word as rubi, (a typical romanisation of the Japanese word ルビ, instead of ルビー (rubī), the expected transliteration of ruby). However, the spelling "ruby" has become more common since the W3C published a recommendation for ruby markup. In the US, the font size had been called "agate", a term in use since 1831 according to the Oxford English Dictionary.



HTML markup



This information is out of date and has been superseded by the inclusion of Ruby support in HTML5. For more information visit w3 ruby markup reference.


In 2001, the W3C published the Ruby Annotation specification[1] for supplementing XHTML with ruby markup. Ruby markup is not a standard part of HTML 4.01 or any of the XHTML 1.0 specifications (XHTML-1.0-Strict, XHTML-1.0-Transitional, and XHTML-1.0-Frameset), but was incorporated into the XHTML 1.1 specification, and is expected to be a core part of HTML5 once the specification becomes finalised by the W3C.[2]


Support for ruby markup in web browsers is limited, as XHTML 1.1 is not yet widely implemented. Ruby markup is partially supported by Microsoft Internet Explorer (5.0+) for Windows and Macintosh, supported by Chrome, but is not supported by Konqueror or Opera.[3] The WebKit nightly builds added support for Ruby HTML markup in January 2010.[4]Safari has included support in version 5.0.6.[5] It is also supported in Mozilla Firefox as of version 38.[6]


For those browsers that don't support Ruby natively, Ruby support is most easily added by using CSS rules that are easily found on the web.[7]


Ruby markup support can also be added to some browsers that support custom extensions.


Ruby markup is structured such that a fallback rendering, consisting of the ruby characters in parentheses immediately after the main text, appears if the browser does not support ruby.


The W3C is also working on a specific ruby module for CSS level 2, which additionally allows the grouping of ruby and automatic omission of furigana matching their annotated part.[8] This is currently only supported by Firefox 38.[6]



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:


























XHTML CSS level 2[8]
Markup

<ruby>
<rb>東京</rb><rp>(</rp>
<rt>とうきょう</rt><rp>)</rp>
</ruby>


<ruby>
<rb></rb><rp>(</rp><rt>ㄅㄟˇ</rt><rp>)</rp>
<rb></rb><rp>(</rp><rt>ㄐ丨ㄥ</rt><rp>)</rp>
</ruby>


<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>

Rendered


東京(とうきょう)




北(ㄅㄟˇ)京(ㄐ丨ㄥ)




振(ふ)り仮(が)名(な)
By default, the code above will come to the effect below. To achieve this effect, we need further CSS styling.


Unmarked
東京(とうきょう)
北(ㄅㄟˇ)京(ㄐ丨ㄥ)
振り仮名(ふりがな)

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:














ㄥˊ


˙



Complex ruby markup


Complex ruby markup makes it possible to associate more than one ruby text with a base text, or parts of ruby text with parts of base text.[9] It is currently only supported in Firefox 38.[6]



Unicode


Unicode and its companion standard, the Universal Character Set, support ruby via these interlinear annotation characters:



  • Code point FFF9 (hex)—Interlinear annotation anchor—marks start of annotated text

  • Code point FFFA (hex)—Interlinear annotation separator—marks start of annotating character(s)

  • Code point FFFB (hex)—Interlinear annotation terminator—marks end of annotated text


Few applications implement these characters. Unicode Technical Report #20[10] clarifies that these characters are not intended to be exposed to users of markup languages and software applications. It suggests that ruby markup be used instead, where appropriate.



ANSI


ISO/IEC 6429 (also known as ECMA-48) which defines the ANSI escape codes also provided a mechanism for ruby text for use by text terminals, although few terminals and terminal emulators implement it. The PARALLEL TEXTS (PTX) escape code accepted six parameter values giving the following escape sequences for marking ruby text:




  • CSI 0 (or simply CSI since 0 is used as the default value for this control) – end of parallel texts


  • CSI 1 – beginning of a string of principal parallel text


  • CSI 2 – beginning of a string of supplementary parallel text


  • CSI 3 – beginning of a string of supplementary Japanese phonetic annotation


  • CSI 4 – beginning of a string of supplementary Chinese phonetic annotation


  • CSI 5 – end of a string of supplementary phonetic annotations



See also




  • Wikipedia:Manual of Style/China-related articles § Ruby characters, and Furigana (Japanese)


  • Harakat – vocalised Arabic script diacritical marks that provide phonetic assistance for reading texts in Arabic.


  • Niqqud – vocalised Hebrew script vowel pointings that provide phonetic assistance for reading Hebrew. (The Hebrew abjad represents only the consonants.)



References





  1. ^ ab Marcin Sawicki; Michel Suignard; Masayasu Ishikawa; Martin Dürst; Tex Texin (2001-05-31). "Ruby Annotation". W3C Recommendation. World Wide Web Consortium. Retrieved 2007-02-14..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"""""""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  2. ^ "HTML5". Retrieved 15 October 2012.


  3. ^ "Web Specifications supported in Opera". Retrieved 2007-11-05. Opera supports XHTML 1.1 with these exceptions: (…) Ruby annotations are not supported


  4. ^ Roland Steiner (2010-01-20). "Ruby Rendering in WebKit". Surfin’ Safari. WebKit project. Retrieved 2010-01-21. External link in |work= (help)


  5. ^ The ruby element – HTML5 Doctor


  6. ^ abc Xidorn Quan (2015-03-05). "Ruby support in Firefox Developer Edition 38". Mozilla. Retrieved 2015-05-05.


  7. ^ CSS Ruby Support Archived 2007-02-28 at the Wayback Machine.—Works in all modern browsers


  8. ^ ab Elika J. Etemad; Koji Ishii (2015-04-16). "CSS Ruby Layout Module Level 1". W3C Editor’s Draft. World Wide Web Consortium. Retrieved 2015-05-05.


  9. ^ Complex ruby markup


  10. ^ Martin Dürst; Asmus Freytag (2007-05-16). "Unicode in XML and other Markup Languages". W3C and Unicode Consortium.









Popular posts from this blog

Y

Mount Tamalpais

Indian Forest Service