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] Docbook + MathML .. html output ? PDF problem


On Sat, Apr 12, 2003 at 12:43:31PM +0200, Marc Baaden wrote:
> 
> Hi (again),
> 
> I have tried to make a docbook document using MathML (following a
> tutorial). This seems to work rather fine, *but*
> 
> - although rendering through passivetex produces fine output, some
>   equations are not rendered correctly. Eg a sum over i does show the
>   i not below the sum but next to it, although verification of the
>   MathML code with amaya confirms that it should be below.

If it renders some math but not all, that would be
an issue in PassiveTex I think.
 
> - <inlineequation> does not seem to work with those equations

The mml: elements should be copied through to the fo file
for both equation and inlineequation.  Can you peek in
the fo output to see if the mml: is getting through for
inlineequation?

> 
> - the html output does not show any equations, but the raw mathml code.
>   is there a way around this. Also given that only very few browsers
>   understand mathml, is it eg possible to rather generate images to
>   include for html ?

You can render it in PassiveTex, display in Acrobat, and
take a screen shot.  This article describes support
for mathml in browsers:

http://www.w3.org/Math/XSL/

> 
> Maybe it is the way I included the mathml, so here is what I use:
> Main document goes
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
> 
> <!ENTITY % MATHML.prefixed "INCLUDE">
> <!ENTITY % MATHML.prefix "mml">
> <!ENTITY % equation.content "(alt?, (grahic+|mediaobject+|mml:math))">

Add another line:

<!ENTITY % inlineequation.content "(alt?, (grahic+|inlinemediaobject+|mml:math))">

Not having this line would make your file invalid if you
put mathml in an inlinequation, but it should not
prevent it from processing.  I've fixed this in my book source.


> <!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN"
>         "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
>         %mathml;
>         [..]
>         <equation>
>             <xi:include href="eqn/rgyr.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
>         </equation>
>         [..]
> 
> 
> And eqn/rgyr.xml would go
> 
> <?xml version="1.0" encoding="UTF-8"?> 
> <!DOCTYPE mml:math PUBLIC "-//W3C//DTD MathML 2.0//EN" 
>         "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" [ 
>         <!ENTITY % MATHML.prefixed "INCLUDE"> 
>         <!ENTITY % MATHML.prefix "mml"> 
>         ]> 
>         <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="rgyr">
>         <mml:msub>
>         [..]
> 

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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