News for hackers. Stuff that matters.
Re:HTML Ruby Markup Extensions Working Draft Published by cxr on Wednesday May 08, 2024 @09:46PM (#40304491)
Spotted an error in the draft: "an revised and extended".
Re:HTML Ruby Markup Extensions Working Draft Published by emehex on Wednesday May 08, 2024 @09:47PM (#40304495)
Well this is tremendously confusing. I 100% thought this was going to be 'ERB' related...
Re:HTML Ruby Markup Extensions Working Draft Published by tauchunfall on Wednesday May 08, 2024 @11:16PM (#40304988)
Yeah, but it's probably unavoidable, the term "ruby" used in British typography is 200 years old [1].

*Update:* Oh and it's interesting, "rubi" was used but the W3C recommendation from 2001 made "ruby" more common as spelling.

[1] https://en.wikipedia.org/wiki/Agate_(typography)

Re:HTML Ruby Markup Extensions Working Draft Published by lioeters on Wednesday May 08, 2024 @09:48PM (#40304500)
> Ruby, a form of interlinear annotation, are short runs of text alongside the base text. They are typically used in East Asian documents to indicate pronunciation or to provide a short annotation.

> This specification revises and extends the markup model established by HTML to express ruby.

The posted link is a short announcement. Here are the actual specs:

https://www.w3.org/TR/2024/WD-html-ruby-extensions-20240507/

Re:HTML Ruby Markup Extensions Working Draft Published by jchw on Wednesday May 08, 2024 @09:49PM (#40304505)
For those with some knowledge of the Japanese language, this is often used to display furigana in Japanese. I believe HTML Ruby derives from a once-proprietary Internet Explorer feature.
Re:HTML Ruby Markup Extensions Working Draft Published by thunderbong on Wednesday May 08, 2024 @10:12PM (#40304612)
For those who were as confused as I was from the title - this has nothing to do with the Ruby language
Re:HTML Ruby Markup Extensions Working Draft Published by rubyfan on Wednesday May 08, 2024 @10:29PM (#40304701)
Yeah I got excited for a second there.
Re:HTML Ruby Markup Extensions Working Draft Published by tauchunfall on Wednesday May 08, 2024 @11:12PM (#40304967)
Very nice to see some progress here. I think "CSS Ruby Annotation Layout Module Level 1" saw most work around 2013/2014, there are also specifications for ruby that are part of XHTML and HTML 5 standards.

Even when ruby markup is popular with south-east asian scripts I mostly want to use it for interlinear text or textspan-level inline annotations for a software to learn languages.

I remember with the ruby specified in XHTML standard there were ergonomic issues when ruby is written, i.e. it's nice for interlinear text markup to not have to close HTML tags. Also there were issues where people did not understand what the differences between mono ruby, group ruby and jukugo ruby is (correct me if I remember it wrong).

Ruby seems to be not implemented well in browsers, some ruby-related tags were deprecated, the specification posted is part of the restoration of these tags [1]. But last time I checked there was interest of all major browser manufactors to implement ruby standard properly.

[1] https://github.com/whatwg/html/pull/6478

Re:HTML Ruby Markup Extensions Working Draft Published by bschmidt1 on Wednesday May 08, 2024 @11:27PM (#40305034)
Not to be confused with Ruby the language. Thought this was going to mean like:

  <script type="ruby">
in a browser, which would be v interesting
Re:HTML Ruby Markup Extensions Working Draft Published by Alifatisk on Thursday May 09, 2024 @07:50AM (#40307221)
Re:HTML Ruby Markup Extensions Working Draft Published by bschmidt1 on Thursday May 09, 2024 @10:29AM (#40308588)
Amazing! Not sure why I was downvoted haha

But this is cool :)

Re:HTML Ruby Markup Extensions Working Draft Published by Alifatisk on Thursday May 09, 2024 @12:40PM (#40310030)
Idk either, I compensated for it.
Re:HTML Ruby Markup Extensions Working Draft Published by Alifatisk on Thursday May 09, 2024 @07:51AM (#40307235)
I've fallen for this before, I won't again.