W3C home > Mailing lists > Public > public-tt@w3.org > July 2009

RE: Ruby annotation

From: Sean Hayes <Sean.Hayes@microsoft.com>
Date: Thu, 2 Jul 2009 00:09:14 +0100
To: Gur Shlapobersky <Gur@captionsinc.com>, Glenn Adams <gadams@xfsi.com>
CC: "public-tt@w3.org" <public-tt@w3.org>
Message-ID: <AB3FC8E280628440B366A29DABB6B6E8123181521D@EA-EXMSG-C334.europe.corp.microsoft.com>
The TTWG recognises the importance of Ruby as well as horizontal-in-vertical text and other formatting issues for Asian scripts. We did debate adding direct support for Ruby on a number of occasions, but in the end we took the view that the visual effect of Ruby could be simulated using the existing features of Timed Text, and the semantics could be incorporated using a foreign namespace, thus we decided to not add Ruby markup in a timed text namespace.

As Glenn points out, one can include W3C ruby markup in a foreign namespace, but a standard dfxp renderer would not do anything with it. To achieve the semantic notation, and also have the rendering, one could write something like the following:

<?xml version="1.0" encoding="utf-8" ?>
<tt xml:lang="en" xmlns="http://www.w3.org/2006/10/ttaf1" xmlns:tts="http://www.w3.org/2006/10/ttaf1#style" xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
      <ttm:title>Ruby Test</ttm:title>
      <ttm:desc>Example of how to apply ruby</ttm:desc>
      <ttm:copyright>Copyright (C) 2007 W3C (MIT, ERIM, Keio). All Rights Reserved.</ttm:copyright>
      <style xml:id="base" tts:color="yellow" tts:fontSize="14px" tts:fontFamily="MS Gothic" tts:textAlign="center" />
      <style xml:id="textStyle" style="base" tts:fontSize="32px" />
      <style xml:id="rubyStyle" style="base" tts:fontSize="18px" />
      <region xml:id="r1">
        <style tts:origin="0px 30px" />
        <style tts:extent="440px 32px" />
        <style tts:zIndex="1" />
      <region xml:id="r2">
        <style tts:origin="80px 12px" />
        <style tts:extent="60px 22px" />
        <style tts:zIndex="1" />
  <body >
      <p region="r2" style="rubyStyle">また</p>
      <p region="r1" style="textStyle">頭を<span>
        <ruby xmlns="http://www.w3.org/TR/ruby">

Which should produce something like:
This approach does have its limitations, and so if Timed Text starts to see a lot of adoption for Asian scripts, then this may well be something we will revisit should we be chartered to look at a version 2.

Sean Hayes

From: public-tt-request@w3.org [mailto:public-tt-request@w3.org] On Behalf Of Gur Shlapobersky
Sent: 01 July 2009 4:56 PM
To: Glenn Adams
Cc: public-tt@w3.org
Subject: RE: Ruby annotation

Thanks for the explanation.
Yes, I would like the TTWG to consider adding ruby annotation to the standard. The need for ruby annotations is common in Japanese subtitles and other languages.


Gur S.

From: Glenn Adams [mailto:gadams@xfsi.com]
Sent: Wednesday, July 01, 2009 02:00
To: Gur Shlapobersky
Cc: public-tt@w3.org
Subject: Re: Ruby annotation

Assuming for a moment (without checking) that you are using the W3C ruby vocabulary as defined by the W3C ruby specification, then, since DFXP permits the arbitrary use of elements and attributes in foreign (i.e., non TT) namespaces, this is certainly legitimate. However, a compliant DFXP processor should be expected to ignore such foreign vocabulary unless the author includes a required extension designator in a profile element, where that extension designator would mandate semantic support for the foreign vocabulary (in this case, the W3C ruby vocabulary).

For example, one might have the following:

<tt xmlns="http://www.w3.org/2006/10/ttaf1" >
<profile ttp:xmlns="http://www.w3.org/2006/10/ttaf1" use="dfxp-presentation">
<!-- require support for a "ruby" extension as defined by the following third party -->
<extensions xml:base="http://www.example.org/ttaf1/extension/">
<ruby xmlns="http://www.w3.org/TR/ruby">

Note well that all extension designations are 3rd party defined and interpreted, and there are no standard extension designations defined (yet) by the TTWG for use with DFXP. Consequently, such a use of ruby is effectively a private extension between two third parties, the author and the processor.

While it is possible that the TTWG could define some standard designations for such extensions, we have had no requests to do so. Is that what you are requesting here?


On Wed, Jul 1, 2009 at 2:55 AM, Gur Shlapobersky <Gur@captionsinc.com<mailto:Gur@captionsinc.com>> wrote:

Is this the proper syntax for ruby annotation as part of a <p> element?

Should the TT Full profile assume support for ruby annotation?


  <rub:ruby xmlns:rub="http://www.w3.org/TR/ruby">


      <rub:rt>World Wide Web</rub:rt>



* http://www.w3.org/TR/ruby/


Gur Shlapobersky

Software Development Manager

Captions, Inc.

640 South Glenwood Place.

Burbank, CA 91506



(image/png attachment: image001.png)

Received on Wednesday, 1 July 2009 23:10:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:43:00 UTC