Tests for ruby

Hi all,

I did my AI
"Felix to provide ruby tests and their implementation"

Please have a look at http://www.w3.org/International/its/tests/ . There
are two issues we (esp. Sebastian and me) have to think about:

1) What to do with the markup? Example: Look at
http://www.w3.org/International/its/tests/test3/Ruby1-result.xml . It
contains for the <ruby> element in the source file the following output:
 <o:node
path="/{}text/{}body[1]/{}p[1]/{http://www.w3.org/2005/11/its}ruby[1]"
outputType="new-value-local">
         <o:output>
             <o:output>
            <o:output><o:ruby>
               <o:rb>慶応義塾大学</o:rb>
               <o:rp>(</o:rp>
               <o:rt>けいおうぎじゅくだいがく</o:rt>
               <o:rp>)</o:rp>
            </o:ruby></o:output>
         </o:output>
      </o:node>
I think it would not make sense to throw the markup away. All I did was
putting the elements in our "output" namespace (see the "o" prefix). Do
you agree?

2) I created one example for pointer rules, see
http://www.w3.org/International/its/tests/test3/EX-ruby-pointer-1-result.xml
. These are some pointer attributes in the source:
 <its:rubyRule selector="//ex:p[1]//ex:rb"
     rubyPointer="ancestor::ex:ruby" rbcPointer="parent::ex:rbc"
     rtcPointer="../following-sibling::ex:rtc"
     rbspanPointer="../following-sibling::ex:rtc/ex:rt/@rbspan"
     rtPointer="../following-sibling::ex:rtc/ex:rt"/>
    <its:rubyRule selector="//ex:p[2]//ex:rb"
     rubyPointer="ancestor::ex:ruby"
rpPointer="following-sibling::ex:rp" rtPointer="following-sibling::ex:rt"/>
   </its:rules>
for each pointer attribute, I create an output like this:
<o:rbcPointer><ex:rbc xmlns:ex="http://example.com"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:datc="http://example.com/datacats">
                  <ex:rb>10</ex:rb>
                  <ex:rb>31</ex:rb>
                  <ex:rb>2002</ex:rb>
               </ex:rbc></o:rbcPointer>
There are several questions:
2a) Again: what to do with the markup inside the pointer attributes?
Should it be kept or not?
2b) The order of the "pointer" elements inside the <output> element: How
should it be?
2c) The order of markup matched by the pointer elements (e.g. <ex:rb>):
How should it be?

In my implementation I kept all markup and put the markup in document
order. Would that work with you, Sebastian?

Regards, Felix.

Received on Friday, 2 February 2007 04:41:46 UTC