[NTG-context] mml

Hans Hagen pragma at wxs.nl
Wed Mar 29 16:14:54 CEST 2006


nico wrote:
>
> - The bar above "x+y+z" does not cover the formula, and it still small 
> (mover2):
>
> <math>
>       <mrow>
>         <mover accent="true">
>           <mrow>
>             <mi> x </mi>
>             <mo> + </mo>
>             <mi> y </mi>
>             <mo> + </mo>
>             <mi> z </mi>
>           </mrow>
>           <mo> &#x000AF; </mo>
>         </mover>
>         <mtext> vs
>         </mtext>
>         <mover accent="false">
>           <mrow>
>             <mi> x </mi>
>             <mo> + </mo>
>             <mi> y </mi>
>             <mo> + </mo>
>             <mi> z </mi>
>           </mrow>
>           <mo> &#x000AF; </mo>
>         </mover>
>       </mrow>
>     </math>
>
The problem with this kind of situations is that the unicode spec 
permits / or is vague / or is messy with regards to things like bars 
over whatever; in this case you use a macron for something overline

one way to deal with it is to define additional entities (we already 
have \defineXMLentity [OverBar]    {\normalorfiller\hrule\hrulefill} etc 
for math) 

\usemodule[newmml]

\defineXMLentity[x000AF]{\normalorfiller\macron\hrulefill}

\startXMLdata
<math>
     <mrow>
        <mover accent="true">
         <mrow>
            <mi> x </mi>
            <mo> + </mo>
            <mi> y </mi>
            <mo> + </mo>
            <mi> z </mi>
         </mrow>
          <mo> &#x000AF; </mo>
        </mover>
    </mrow>
    </math>
\stopXMLdata

but then we miss the utf 8 encoded ones, so we then need to hook it into 
the utf handler i.e. redefine the macron there;

yet another option is to 'normalize the file' by preprocessing

this is something that needs discussion

Hans

 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list