Ruby Module in RELAX NG
Ruby Elements
ruby, rbc, rtc, rb, rt, rp
This module defines grammars to support ruby annotation markup.
This module is based on the W3C Ruby Annotation Specification:
http://www.w3.org/TR/ruby
Copyright ©2003 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Editor: Masayasu Ishikawa <mimasa@w3.org>
Revision: $Id: ruby-1.rng,v 1.9 2004/07/21 09:46:41 mimasa Exp $
Permission to use, copy, modify and distribute this RELAX NG schema
for Ruby Annotation and its accompanying documentation for any purpose
and without fee is hereby granted in perpetuity, provided that the above
copyright notice and this paragraph appear in all copies. The copyright
holders make no representation about the suitability of this RELAX NG
schema for any purpose.
It is provided "as is" without expressed or implied warranty.
For details, please refer to the W3C software license at:
http://www.w3.org/Consortium/Legal/copyright-software
patterns for the content model of the ruby element
Content model of simple ruby
Content model of complex ruby
Simple ruby is used by default
Ruby Elements
ruby element
rbc (ruby base component) element
rtc (ruby text component) element
rb (ruby base) element
rt (ruby text) element
grammar for simple ruby
rbspan attribute is not allowed in simple ruby
grammar for complex ruby
[1-9][0-9]*
rp (ruby parenthesis) element
Ruby Common Attributes
Ruby elements are intended to have common attributes of its
parent markup language. The pattern "Common.attrib" MUST be
defined to integrate this module.
Content models of the rb and the rt elements are intended to
allow other inline-level elements of its parent markup language,
but it should not include ruby descendent elements. This RELAX NG
module itself doesn't check nesting of ruby elements.
The patterns "Inline.class" and "Inline.model" MUST be defined
to integrate this module.