[Trac] [OpenMath] #102: Rethink rendering of arith1#times

OpenMath trac at strawberry.eecs.jacobs-university.de
Tue Nov 11 10:58:16 CET 2008


#102: Rethink rendering of arith1#times
----------------------------+-----------------------------------------------
     Reporter:  clange      |          Owner:  kohlhase  
         Type:  task        |         Status:  new       
     Priority:  major       |      Milestone:            
    Component:  MathML CDs  |        Version:            
   Resolution:              |       Keywords:            
Include_gantt:  0           |   Dependencies:            
   Due_assign:  YYYY/MM/DD  |      Due_close:  YYYY/MM/DD
----------------------------+-----------------------------------------------
Comment (by david):

 I think I disagree with James, The default visual rendering of
 invisibletimes is invisible, and certainly any implementation of mathml
 that i've _seen_ will not render this as a visible simple. Obviously for
 audio rendering things are different.

 It's hard to get this right, in ctop.xsl for example I use

    <mml:mo>
     <xsl:choose>
       <xsl:when test="self::mml:cn">&#215;<!-- times --></xsl:when>
       <xsl:otherwise><!--&#8290;--><!--invisible times--></xsl:otherwise>
     </xsl:choose>
     </mml:mo>


 ie times just in front of a number and invisibletimes elsewhere. this
 isn't perfect but it produces

 2a a*b a*2

 which is what i wanted, and I didn't want to do any more complicated
 structural queries as ctop is rendering in real time in the browser and
 back then xslt in netscape was very slow (it's a lot better in modern
 firefox)

-- 
Ticket URL: <https://trac.mathweb.org/OM3/ticket/102#comment:4>
OpenMath <http://www.openmath.org>
The development of the OpenMath Standard and Content Dictionaries.


More information about the Trac mailing list