RE: Problem with MathPlayer and CSS

ok, 
  
    math             {font-family:"Times New Roman",times,CMSY10, CMEX10, Symbol}
    mml\:math     {font-family:"Times New Roman",times,CMSY10, CMEX10, Symbol}

works with MathPlayer and Mozilla, when using the universal styleheet.

I think it would not be bad to place some information about the
" mml\:math " syntax somewhere on the W3C math site.



Thanks.

Bernhard 


-----Original Message-----
From: Robert Miner [mailto:RobertM@dessci.com]
Sent: Wednesday, January 08, 2003 5:47 PM
To: Bernhard.Keil@soft4science.com
Cc: RobertM@dessci.com; davidc@nag.co.uk; www-math@w3.org
Subject: Re: Problem with MathPlayer and CSS



Hi.

> I do not want to pass CSS style definitions below the <math> root.
> 
> But I want to set the font-family on the level of a <math>-root with CSS.
> 
> Enheritance from the parent node above the <math>-root is no solultion
> for inline math, if you want another font for the math as for the
> paragraph text.

Sorry for being so slow.  I understand the problem now.

> 1.)  using standard CSS:            math{font-family:MyFont}            
>         has no effect in MathPlayer,
>         but works in Mozilla

I think the prefix is the problem, as David was trying to get at.  In
IE, you stupidly have to do your CSS rule as

  m\:math  {color: red}

which is not going to be a solution for Mozilla.  The backslash is
important, and as far as I can tell, documented nowhere.


> 2.)  using CSS class:   .matml-inline{font-family:MyFont} 
>         does work in MathPlayer, but not in Mozilla

That's a drag.

> 3.) Using the depricated MathML 1.0 attribute "fontfamily"
>           math{fontfamily:MyFont}
>         has no effect in MathPlayer,

I think we ran into some problem with this -- I believe 
non-standard CSS properties didn't show up in IE's runtime CSS object
or something like that.  In any event, you are correct that MathPlayer
doesn't read MathML 1 attributes from CSS.
       
> So the only solution, I found so far,  working with MathPlayer AND Mozilla is to
> define it twice:
> 
>      math          {font-family:"Times New Roman",times,CMSY10, CMEX10, Symbol}
>     .mathml-inline{font-family:"Times New Roman",times,CMSY10, CMEX10, Symbol}
>    
>  with a mathml instance:
>  
>     <math class="mathml-inline"  >....</math>

Ugh.  I think you could define rules for m\:math and math, which would
at least avoid having to set a class attribute on every instance.  But
I don't see any way around the double definition.  

It is surely unfortunate that the weaknesses in the IE+MathPlayer and
Mozilla implementations are so complementary.  Sigh.

--Robert

------------------------------------------------------------------
Dr. Robert Miner                                RobertM@dessci.com
MathML 2.0 Specification Co-editor                    651-223-2883
Design Science, Inc.   "How Science Communicates"   www.dessci.com
------------------------------------------------------------------

Received on Wednesday, 8 January 2003 12:59:37 UTC