Template talk:Ruby

Latest comment: 2 years ago by HLHJ in topic empty ruby text param

rb element edit

<rb> is being used in a manner that causes invalid HTML output.

"Element rb not allowed as child of element ruby in this context."

--  Gadget850 talk 19:46, 14 March 2015 (UTC)Reply

well before HTML5 ruby was always used as a part of XHTML 1.1
http://xhtml.com/en/xhtml/reference/ruby/
in HTML 5 ruby truly seems not to use rb, which is sad because seemingly the complex ruby parts seem to have been dropped as well, even though they are really practical and intresting.
Thanks for the reminder. I will edit it.
My1 20:08, 14 March 2015 (UTC)Reply
<rb> was deprecated, but revived in HTML5.[1] The way it is used here does not validate, and I am not expert enough to understand this tag. --  Gadget850 talk 20:13, 14 March 2015 (UTC)Reply
which browser do you use? maybe it isnt up to it yet or whatever ruby wasnt really in HTML4 afaik it was mainly in XHTML 1.1 and there was the rb tag present, but XHTML support varies between browsers, as the HTML5 page from the WTC states it can be there but will be implied if not I'll let it go, as in the usage it has right now (single base with single top) it isnt needed anyway. if I make it more complex someday it might (or rather will) come back... — Preceding unsigned comment added by My1 (talkcontribs) 20:23, 14 March 2015 (UTC)Reply
Discussion at Wikipedia:Village pump (technical)/Archive 135#rb element. --  Gadget850 talk 02:04, 15 March 2015 (UTC)Reply

</rb> <rp> edit

Example from List of Fairy Tail episodes:
<td class="summary" style="text-align: left;">"Tartaros Chapter, Finale – Where the Power of Life Lies"<br> <i>"Tarutarosu-hen (Shūshō): Sore ga Ikiru Chikara Da"</i> <span class="t_nihongo_kanji" lang="ja">(<ruby><rb>冥府の門</rb> <rp>(</rp><rt>タルタロス</rt><rp>)</rp></ruby>編 【終章】 それが生きる力だ)</span> </td>
Space between </rb> & <rp>???
Bogobor (talk) 13:45, 1 October 2017 (UTC)Reply

Experiencing display issues edit

Just today, I found that the ruby text has become much larger than it was the other day and before. It's especially noticeable when used within Template:Nihongo and its subtypes.

  • Here's an example with Template:Nihongo2, compared to the upper text's normal size: 宇宙(コスモス) / コスモス
  • And here's one without: 桜宇宙(コスモス) / コスモス

Originally, the ruby text was shrunken down enough so two katakana could fit over a single kanji without causing any spaces in the bottom text, yet from what I see, it's just barely below its usual size. I'm wondering if it's a personal display issue, or if it's something more widespread. User:SubZeroSilver (talk) 23:35, 17 June 2020 (UTC)Reply

The issue is that the previous display was not accessible for people who cannot read small text. Jonesey made an edit to correct that issue. You should discuss at the followup discussion at WT:ANIME ( which probably should be here). My changes were solely to implement that change in the correct place. --Izno (talk) 12:17, 19 June 2020 (UTC)Reply

empty ruby text param edit

I've just noticed that if the ruby-text param is empty, the lines of text are still spaced as if the ruby text were there. Sometimes in lists the formatting is used in a parallel manner even for Japanese spelt without kanji (which thus don't need a Ruby text). This is a trivial, unimportant feature req. HLHJ (talk) 00:10, 14 February 2022 (UTC)Reply