Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans Hagen

On 5/18/2014 10:05 AM, H. van der Meer wrote:

Sorry if this question reaches you twice, but the first time I used an
email address not registered with this newsgroup.

The short example below typeset with

\usemodule[mathml]
\starttext
\typebuffer
\blank
\processxmlbuffer
\stoptext

and ConTeXt  ver: 2014.04.04 00:08 MKIV beta shows that the mtext
element does not honour the tags within. This severely restricts the
presentation.


So what makes you think these tags should be recognized and interpreted 
as being 'bold'?



Can this be remedied?


\usemodule[mathml,mathml-html]

with the attached



Hans van der Meer






Hans van der Meer





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
%D \modul
%D   [   file=x-mathml,
%Dversion=2014.05.18,
%D  title=\CONTEXT\ XML Modules,
%D   subtitle=\MATHML\ embedded HTML,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% maybe some more

\startmodule [mathml-html]

\startxmlsetups mml:html:b
\bold{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:i
\italic{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:tt
\mono{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html:em
\emphasized{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups mml:html
\xmlsetsetup{#1}{mml:b|mml:i|mml:tt|mml:em}{mml:html:*}
\stopxmlsetups

\xmlregistersetup{mml:html}

\stopmodule
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Meer, H. van der

On 18 mei 2014, at 17:26, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl 
wrote:

On 5/18/2014 10:05 AM, H. van der Meer wrote:
Sorry if this question reaches you twice, but the first time I used an
email address not registered with this newsgroup.

The short example below typeset with

\usemodule[mathml]
\starttext
\typebuffer
\blank
\processxmlbuffer
\stoptext

and ConTeXt  ver: 2014.04.04 00:08 MKIV beta shows that the mtext
element does not honour the tags within. This severely restricts the
presentation.



So what makes you think these tags should be recognized and interpreted as 
being 'bold'?

see: http://en.wikipedia.org/wiki/MathML
Presentation MathML


Note however that these token elements may be used as extension points, 
allowing markup in host languages. MathML in 
HTML5http://en.wikipedia.org/wiki/HTML5 allows most inline HTML markup in 
mtext, and

  *   mtextbnon/b zero/mtext

is conforming, with the HTML markup being used within the MathML to mark up the 
embedded text (making the first word bold in this example).

Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathml mtext behaviour

2014-05-18 Thread Hans Hagen

On 5/18/2014 5:57 PM, Meer, H. van der wrote:


On 18 mei 2014, at 17:26, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:


On 5/18/2014 10:05 AM, H. van der Meer wrote:

Sorry if this question reaches you twice, but the first time I used an
email address not registered with this newsgroup.

The short example below typeset with

\usemodule[mathml]
\starttext
\typebuffer
\blank
\processxmlbuffer
\stoptext

and ConTeXt  ver: 2014.04.04 00:08 MKIV beta shows that the mtext
element does not honour the tags within. This severely restricts the
presentation.






So what makes you think these tags should be recognized and
interpreted as being 'bold'?


see: http://en.wikipedia.org/wiki/MathML


  Presentation MathML



Note however that these token elements may be used as extension points,
allowing markup in host languages. MathML in HTML5
http://en.wikipedia.org/wiki/HTML5 allows most inline HTML markup in
mtext, and

  * |mtextbnon/b zero/mtext|

is conforming, with the HTML markup being used within the MathML to mark
up the embedded text (making the first word bold in this example).


sure, but who says we're in html5 when we see mathml an dif not, who 
says that b reflects bold then so it can never be default


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___