* mathml <mtext> behaviour
@ 2014-05-18 7:25 Hans van der Meer
0 siblings, 0 replies; 5+ messages in thread
From: Hans van der Meer @ 2014-05-18 7:25 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
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.
Can this be remedied?
Hans van der Meer
[-- Attachment #2: mathmlproduction.pdf --]
[-- Type: application/pdf, Size: 14355 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mathml <mtext> behaviour
2014-05-18 15:57 ` Meer, H. van der
@ 2014-05-18 16:20 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-05-18 16:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 5/18/2014 5:57 PM, Meer, H. van der wrote:
>
> On 18 mei 2014, at 17:26, Hans Hagen <pragma@wxs.nl
> <mailto:pragma@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
>
> * |<mtext><b>non</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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mathml <mtext> behaviour
2014-05-18 15:26 ` Hans Hagen
@ 2014-05-18 15:57 ` Meer, H. van der
2014-05-18 16:20 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Meer, H. van der @ 2014-05-18 15:57 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 1122 bytes --]
On 18 mei 2014, at 17:26, Hans Hagen <pragma@wxs.nl<mailto:pragma@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
* <mtext><b>non</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
[-- Attachment #1.2: Type: text/html, Size: 3729 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mathml <mtext> behaviour
2014-05-18 8:05 H. van der Meer
@ 2014-05-18 15:26 ` Hans Hagen
2014-05-18 15:57 ` Meer, H. van der
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2014-05-18 15:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1604 bytes --]
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
-----------------------------------------------------------------
[-- Attachment #2: x-mathml-html.mkiv --]
[-- Type: text/plain, Size: 881 bytes --]
%D \modul
%D [ file=x-mathml,
%D version=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
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* mathml <mtext> behaviour
@ 2014-05-18 8:05 H. van der Meer
2014-05-18 15:26 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: H. van der Meer @ 2014-05-18 8:05 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 483 bytes --]
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.
Can this be remedied?
Hans van der Meer
Hans van der Meer
[-- Attachment #1.2.1: Type: text/html, Size: 1581 bytes --]
[-- Attachment #1.2.2: mathmlproduction.pdf --]
[-- Type: application/pdf, Size: 14355 bytes --]
[-- Attachment #1.2.3: Type: text/html, Size: 286 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-18 16:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-18 7:25 mathml <mtext> behaviour Hans van der Meer
2014-05-18 8:05 H. van der Meer
2014-05-18 15:26 ` Hans Hagen
2014-05-18 15:57 ` Meer, H. van der
2014-05-18 16:20 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).