OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Writing English--Japanese documents using ruby / furigana in DocBook 5


On 12.1.2012 20:26, Róbert Kohányi wrote:

> I'm in the process of porting a Japanese language tutorial / textbook
> of some sort to DocBook from HTML. I'd like to know if there's a way
> to incorporate Japanese text with ruby / furigana above Japanese
> words--into a document where the main body is written in English.

The standard part of DocBook distribution is ITS augmented schema which
contains additional elements for Ruby in ITS namespace. Schema can be
downloaded from http://www.docbook.org/xml/5.0/rng/dbits.rnc

Once you use this schema, you can use something like:

<book
  xmlns="http://docbook.org/ns/docbook";
  xmlns:its="http://www.w3.org/2005/11/its";
  version="5.0">
 <title>...</title>
 <chapter>
  <title>...</title>
  <para>この本は <its:ruby>
    <its:rb>慶応義塾大学</its:rb>
    <its:rp>(</its:rp>
    <its:rt>けいおうぎじゅくだいがく</its:rt>
    <its:rp>)</its:rp>
   </its:ruby>の歴史を説明するものです。</para>
 </chapter>
</book>

Of course second part is processing. Currently stylesheets don't
recognize Ruby elements in ITS namespaces. It would be quite easy to map
those elements just to XHTML namespace. However if my recollection is
right HTML5 uses different simpler Ruby model which is currently
questioned. And probably IE supports Ruby natively.

Some FO processors support Ruby natively for others it might be possible
to get something almost reasonable using tables.

Let me know if you need further assistence in Ruby processing.

				Jirka


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]