The WHATWG Blog

Please leave your sense of logic at the door, thanks!

(X)HTML 5 will have the only usable implementation of ruby markup

by Lars Gunther in Browsers, Elements

One of the misconceptions about the (X)HTML 5 effort is that there will be no noticeable benefits compared to HTML 4 or XHTML 1.0. Here is one thing to prove this wrong. (X)HTML 5 will have the only practically usable implementation of ruby markup. While this maybe won't make too much of a difference in Europe and America, it sure is good news to a pair of billion people in Asia - and a few thousand theologians and historians.

Ian Hickson, the editor of the HTML 5 specification, said on the WHAT WG mailing list just recently: "I have in fact already begun looking at exactly what the parsing and semantic requirements for <ruby> will have to be. It should be added to the spec in the coming weeks." Currently the only browser that natively supports ruby is Internet Explorer, at least somewhat. This should be great news for Microsoft. For once they will actually have a lead compared to Gecko based browsers, Opera, Konqueror or Safari in supporting a part of the HTML 5 spec.

Keith Bowes, in a recent comment on Molly's blog, says:

Personally, I don’t see the point of HTML5. HTML 4 was a big improvement over HTML 3.2: better internationalization, better support for style sheets, more structure and less presentation, some of the more questionable things were removed or put in the dust bin of de facto obsolescence, etc. But I really don’t see where HTML5 is better enough.

A pair of billion Chinese or Japanese speaking people will beg to differ - and a few thousand theologians. Ruby is a big improvement for them. But wait, I may hear. Ruby is not new. It has been part of XHTML 1.1 for many years now. To which I retort: My point exactly! XHTML 1.1 is namely useless! Here is what its spec says: Content must be served with an XML MIME-type, and we all know that one specific browser with a huge market share does not support true XHTML!

If I want to use ruby markup I can (a) serve XHTML 1.1 as text/html, against all rules and have all IE users benefit, or (b) serve it as it should to users of Gecko based browsers, that can support ruby through an extension, or to all CSS savvy browsers using dedicated CSS-rules. But I can't do both!

Since (X)HTML 5 will have two serializations, this problem will cease to exist. I may use ruby markup and still send my content as text/html.

But there is one more lesson to be learned from this. I am a strong advocate of accessibility - after all I am a theologian first and web developer second - but I see that some of my friends have mistrusted HTML 5 because of accessibility features not yet documented in the spec. Ask questions! I did for ruby. If I had gotten a not so positive response I would have argued my case strongly. But please withhold negative judgments for a while. The process is not over yet. The war is not lost.

Finally, how does ruby benefit theologians? As I see things the best way to produce interlinear reproductions of ancient texts - the kind that we grapple with all the time - is to use ruby markup, where the relationship between the ancient word and the translated word is made explicit also within the markup.

5 Responses to “(X)HTML 5 will have the only usable implementation of ruby markup”

  1. Le Sage says:

    Are you sure that XHTML 5 doesn’t also have to be served as */xml (as XHTML 1.1)? O_O

    XHTML documents (XML documents using elements from the HTML namespace) that use the new features described in this specification and that are served over the wire (e.g. by HTTP) must be sent using an XML MIME type such as application/xml or application/xhtml+xml and must not be served as text/html. [RFC3023]

  2. Le Sage says:

    Oops, alright, didn’t see the brackets in (X)HTML 5; ruby & HTML 5 = IE friendly ; ruby & XHTML 5 = !IE friendly (at least with IE

  3. itpastorn says:

    Correct! XHTML 5 is not IE friendly as an XML doctype is mandatory. HTML 5 is IE friendly.

  4. Jarvklo says:

    Well…

    From the looks of the state of the latest WD from the “second edition” polishing of the XHTML 1.1. specification (dated febryary 2007, i.e. slightly before the chartering of the W3C HTML5 process) – XHTML 1.1 seems to be well prepared for being changed to allow for delivery as text/html ;)

    XHTML 1.1 documents SHOULD be labeled with the Internet Media Type text/html as defined in [RFC2854] or application/xhtml+xml as defined in [RFC3236]

    Personally I think that an interim solution of enabling people “with Ruby needs” to use a finalized XHTML 1.1 Second edition with the change in MIME-type requirements until (X)HTML5 is ready for prime time would be an appealing, useful and quite constructive compromise in order to avoid the long wait for (X)HTML5 finalization when it comes to Ruby ;)

  5. Jarvklo, except that XHTML 1.1 does not define how to implement it in text/html which is a bit of a problem.