Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15264 > unrolled thread

MathJax - "typesetting" of maths in Web pages

Started byDr J R Stockton <reply1231@merlyn.demon.co.uk.invalid>
First post2012-08-04 23:08 +0100
Last post2012-08-23 19:40 +0100
Articles 20 on this page of 34 — 9 participants

Back to article view | Back to comp.lang.javascript


Contents

  MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1231@merlyn.demon.co.uk.invalid> - 2012-08-04 23:08 +0100
    Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-05 08:08 +0300
      Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-06 20:35 +0100
        Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-09 22:27 +0300
          Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-10 22:59 +0100
            Re: MathJax - "typesetting" of maths in Web pages Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-08-11 10:30 -0600
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-12 19:20 +0100
            Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-11 20:00 +0300
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1232@merlyn.demon.co.uk.invalid> - 2012-08-12 19:38 +0100
                Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-13 08:06 +0300
                  Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-14 19:29 +0100
        Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-12 09:24 -0400
          Re: MathJax - "typesetting" of maths in Web pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-12 17:44 +0200
          Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-13 19:23 +0100
            Re: MathJax - "typesetting" of maths in Web pages tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-14 01:48 -0400
              Re: MathJax - "typesetting" of maths in Web pages "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-08-14 09:25 +0300
                Re: MathJax - "typesetting" of maths in Web pages tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-14 22:44 -0400
                  Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-16 19:36 +0100
                Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-15 19:14 +0100
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-15 19:08 +0100
            Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-16 18:37 -0400
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-17 20:17 +0100
                Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-17 23:26 -0400
                  Re: MathJax - "typesetting" of maths in Web pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-18 19:54 +0200
                    Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-19 06:58 -0400
                  Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-19 19:06 +0100
    Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-16 14:24 -0400
      Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-17 19:58 +0100
        Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-17 23:01 -0400
          Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-19 19:09 +0100
            Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-19 21:26 -0400
              Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-21 20:34 +0100
                Re: MathJax - "typesetting" of maths in Web pages Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-21 19:47 -0400
                  Re: MathJax - "typesetting" of maths in Web pages Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-23 19:40 +0100

Page 1 of 2  [1] 2  Next page →


#15264 — MathJax - "typesetting" of maths in Web pages

FromDr J R Stockton <reply1231@merlyn.demon.co.uk.invalid>
Date2012-08-04 23:08 +0100
SubjectMathJax - "typesetting" of maths in Web pages
Message-ID<fSOIdFkc1ZHQFww1@invalid.uk.co.demon.merlyn.invalid>
I recently followed a link to a Scholarpedia page, and observed in it
some "properly typeset" equations which were not images.  Right-clicking
such an equation shows a substitute context menu (cf. CLJ FAQ item) with
a link to <http://www.mathjax.org/help-v2/user/>.

It uses a JavaScript include file to edit the transmitted body of the
page; there is a perceptible delay.

Any experience of using MathJax?  Any advice?  Is LaTex or MathML or
AsciiMath the better option?  Which is easier?  Will support continue?
Do browsers have a reliable alternative?

There are better demonstrations at <http://www.mathjax.org/>, but my own
test page (using TeX) is growing at
        <http://www.merlyn.demon.co.uk/math-jax.htm>.

-- 
 (c) John Stockton, nr London UK               Reply address via Home Page.
   news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
   <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

[toc] | [next] | [standalone]


#15273

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2012-08-05 08:08 +0300
Message-ID<jvkv3t$3t8$1@dont-email.me>
In reply to#15264
2012-08-05 1:08, Dr J R Stockton wrote:

> [MathJax] uses a JavaScript include file to edit the transmitted body of the
> page; there is a perceptible delay.

Yes, there might be a flash of non-typeset content, perhaps even more 
than just a flash. I've got used to it.

> LaTex or MathML or AsciiMath the better option?

Whichever you are more used to. LaTeX is widely used in math, MathML 
might be more natural to a person or too, and AsciiMath is suitable if 
you have just some simple equations and don't know LaTeX much.

> Will support continue?

Who knows? But being open source and widely used, I would expect someone 
to take it over if the people currently working on it stop doing that. 
And even if not, you could still keep using the code. So I'd say it's 
much safer to use than most software.

> Do browsers have a reliable alternative?

No.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#15287

FromDr J R Stockton <reply1232@merlyn.demon.co.uk.invalid>
Date2012-08-06 20:35 +0100
Message-ID<$yDAFaGXyBIQFwui@invalid.uk.co.demon.merlyn.invalid>
In reply to#15273
In comp.lang.javascript message <jvkv3t$3t8$1@dont-email.me>, Sun, 5 Aug
2012 08:08:12, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:

>2012-08-05 1:08, Dr J R Stockton wrote:
>
>> [MathJax] uses a JavaScript include file to edit the transmitted body of the
>> page; there is a perceptible delay.
>
>Yes, there might be a flash of non-typeset content, perhaps even more
>than just a flash. I've got used to it.

This is a P4/3GHz (XP sp3), and my intended document, a translation of
Lagrange's prize-winning "Essay ..." of 1772, has about 507 equations.
So far, I've translated 37 of them to LaTeX, and it takes about 5
seconds to convert them for elegant display.  That suggests around 68
seconds for the full work.

It's not sufficient for the author to get used to it; one must consider
the effect on a first-time reader.

But their Google Group seems active and helpful, with suggestions for
alleviating the problem.

>> LaTex or MathML or AsciiMath the better option?
>
>Whichever you are more used to. LaTeX is widely used in math, MathML
>might be more natural to a person or too, and AsciiMath is suitable if
>you have just some simple equations and don't know LaTeX much.

I was used to none of those.  MathML is too long-winded, AsciiMath looks
limited, and the sample page shown did not work (I now see why).  LaTeX
notation seems to be about as brief as possible, and I don't think any
additional features will be needed for the other 470 equations.

>> Will support continue?
>
>Who knows? But being open source and widely used, I would expect
>someone to take it over if the people currently working on it stop
>doing that. And even if not, you could still keep using the code. So
>I'd say it's much safer to use than most software.

I see it is sponsored by, among others, IoP Publishing; I shall be a
member of  IoP for life.

-- 
 (c) John Stockton, nr London, UK.  For Mail, see Home Page.  Turnpike, WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.

[toc] | [prev] | [next] | [standalone]


#15303

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2012-08-09 22:27 +0300
Message-ID<k012uk$mun$1@dont-email.me>
In reply to#15287
2012-08-06 22:35, Dr J R Stockton wrote:

>>> [MathJax] uses a JavaScript include file to edit the transmitted body of the
>>> page; there is a perceptible delay.
>>
>> Yes, there might be a flash of non-typeset content, perhaps even more
>> than just a flash. I've got used to it.
>
> This is a P4/3GHz (XP sp3), and my intended document, a translation of
> Lagrange's prize-winning "Essay ..." of 1772, has about 507 equations.
> So far, I've translated 37 of them to LaTeX, and it takes about 5
> seconds to convert them for elegant display.  That suggests around 68
> seconds for the full work.

This sounds serious, but I don't think it's really that serious. It's 
the delay required to convert the first few equations that matters, as a 
rule. A reader who opens the page will probably spend several seconds 
with the initial display before scrolling or otherwise moving forward. 
So the conversion mostly takes place in the background, from the user's 
point of view.

The situation can be improved by using prose at the start of a document, 
such as a heading, a summary, a table of content, and other material 
that does not contain typeset formulas.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#15305

FromDr J R Stockton <reply1232@merlyn.demon.co.uk.invalid>
Date2012-08-10 22:59 +0100
Message-ID<lvqWS4V3QYJQFw1D@invalid.uk.co.demon.merlyn.invalid>
In reply to#15303
In comp.lang.javascript message <k012uk$mun$1@dont-email.me>, Thu, 9 Aug
2012 22:27:18, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:

>2012-08-06 22:35, Dr J R Stockton wrote:
>
>>>> [MathJax] uses a JavaScript include file to edit the transmitted
>>>>body of the
>>>> page; there is a perceptible delay.
>>>
>>> Yes, there might be a flash of non-typeset content, perhaps even more
>>> than just a flash. I've got used to it.
>>
>> This is a P4/3GHz (XP sp3), and my intended document, a translation of
>> Lagrange's prize-winning "Essay ..." of 1772, has about 507 equations.
>> So far, I've translated 37 of them to LaTeX, and it takes about 5
>> seconds to convert them for elegant display.  That suggests around 68
>> seconds for the full work.
>
>This sounds serious, but I don't think it's really that serious. It's
>the delay required to convert the first few equations that matters, as
>a rule. A reader who opens the page will probably spend several seconds
>with the initial display before scrolling or otherwise moving forward.
>So the conversion mostly takes place in the background, from the user's
>point of view.
>
>The situation can be improved by using prose at the start of a
>document, such as a heading, a summary, a table of content, and other
>material that does not contain typeset formulas.


It is a translation, and therefore I cannot control the bulk of the
content.

First-time readers will, I hope, start at the beginning; but those who
return are likely to do so by a link to an anchor at the start of the
translation, or to a particular source page or section.

But the MathJax user group has some helpful suggestions - when I've
transcribed the other half of the equations, I'll see what they do.
What I currently have takes about 35 seconds to process.

-- 
 (c) John Stockton, nr London, UK.  For Mail, see Home Page.  Turnpike, WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.

[toc] | [prev] | [next] | [standalone]


#15309

FromMartin Leese <please@see.Web.for.e-mail.INVALID>
Date2012-08-11 10:30 -0600
Message-ID<k061bm$rq6$1@dont-email.me>
In reply to#15305
Dr J R Stockton wrote:

> It is a translation, and therefore I cannot control the bulk of the
> content.
> 
> First-time readers will, I hope, start at the beginning; but those who
> return are likely to do so by a link to an anchor at the start of the
> translation, or to a particular source page or section.
> 
> But the MathJax user group has some helpful suggestions - when I've
> transcribed the other half of the equations, I'll see what they do.
> What I currently have takes about 35 seconds to process.

Why not add a paragraph of text at the
beginning warning the reader of possible
delays.

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

[toc] | [prev] | [next] | [standalone]


#15324

FromDr J R Stockton <reply1232@merlyn.demon.co.uk.invalid>
Date2012-08-12 19:20 +0100
Message-ID<UN866BDvP$JQFwhV@invalid.uk.co.demon.merlyn.invalid>
In reply to#15309
In comp.lang.javascript message <k061bm$rq6$1@dont-email.me>, Sat, 11
Aug 2012 10:30:46, Martin Leese <please@see.Web.for.e-mail.INVALID>
posted:

>Dr J R Stockton wrote:
>
>> It is a translation, and therefore I cannot control the bulk of the
>> content.
>>  First-time readers will, I hope, start at the beginning; but those
>>who
>> return are likely to do so by a link to an anchor at the start of the
>> translation, or to a particular source page or section.
>>  But the MathJax user group has some helpful suggestions - when I've
>> transcribed the other half of the equations, I'll see what they do.
>> What I currently have takes about 35 seconds to process.
>
>Why not add a paragraph of text at the
>beginning warning the reader of possible
>delays.

Done from (more or less) the beginning; and the present page will only
found by from a link in such a paragraph, or by searching around.

I mentioned "there is a perceptible delay" to inform readers of this
thread; that was not a question.  I place MathJax questions in the haunt
of the enlightened.

-- 
 (c) John Stockton, nr London, UK.    ?@merlyn.demon.co.uk     Turnpike v6.05.
 Website  <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.

[toc] | [prev] | [next] | [standalone]


#15310

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2012-08-11 20:00 +0300
Message-ID<k0632p$7ns$1@dont-email.me>
In reply to#15305
2012-08-11 0:59, Dr J R Stockton wrote:

> It is a translation, and therefore I cannot control the bulk of the
> content.

Using some creative styling, it might be possible to arrange things so 
that the initial screen does not contain formulas. For example, liberal 
vertical spacing might help.

> First-time readers will, I hope, start at the beginning; but those who
> return are likely to do so by a link to an anchor at the start of the
> translation, or to a particular source page or section.

That's true, so the question arises whether the document should be 
divided into smaller pieces. After all, even if the original is a single 
document, a translation in web format need not be (any more than modern 
editions of ancient scripts need to be printed on papyrus scrolls).

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#15325

FromDr J R Stockton <reply1232@merlyn.demon.co.uk.invalid>
Date2012-08-12 19:38 +0100
Message-ID<PcLsOQEyg$JQFwC1@invalid.uk.co.demon.merlyn.invalid>
In reply to#15310
In comp.lang.javascript message <k0632p$7ns$1@dont-email.me>, Sat, 11
Aug 2012 20:00:13, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:

>2012-08-11 0:59, Dr J R Stockton wrote:

If you can write a date/time like that, you might to be able to do the
job better, by adding a correct time offset indication (Z preferred, of
course).  And "wrote" is incorrect; you can only know what the date
header says.

>> It is a translation, and therefore I cannot control the bulk of the
>> content.
>
>Using some creative styling, it might be possible to arrange things so
>that the initial screen does not contain formulas. For example, liberal
>vertical spacing might help.

It is a translation, and therefore formulae will occur where they were
originally placed 240 years ago (or, to be exact, where the Oeuvres
editor placed them; that copy is probably _more_ reliable than the
original publication).

>> First-time readers will, I hope, start at the beginning; but those who
>> return are likely to do so by a link to an anchor at the start of the
>> translation, or to a particular source page or section.
>
>That's true, so the question arises whether the document should be
>divided into smaller pieces. After all, even if the original is a
>single document, a translation in web format need not be (any more than
>modern editions of ancient scripts need to be printed on papyrus
>scrolls).

Handling such a document as fragments can be very inconvenient, since
one then cannot readily search the whole thing at once, by eye or by a
"Find" control.

Please remember that I have not asked for advice on this aspect of the
matter; I mentioned the delay only as a warning to others.  Expert
advice is readily available elsewhere.

-- 
 (c) John Stockton, nr London, UK.  Mail via homepage.  Turnpike v6.05  MIME.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
 No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

[toc] | [prev] | [next] | [standalone]


#15332

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2012-08-13 08:06 +0300
Message-ID<k0a1vq$pli$1@dont-email.me>
In reply to#15325
2012-08-12 21:38, Dr J R Stockton wrote:

> If you can write a date/time like that

Please leave whining about attributions to the resident troll.

> It is a translation, and therefore formulae will occur where they were
> originally placed 240 years ago

Translations need not replicate the presentational style of the 
original. They seldom do. It is common, and often useful, to start a 
translation with the translator's preface, for example.

> Handling such a document as fragments can be very inconvenient, since
> one then cannot readily search the whole thing at once, by eye or by a
> "Find" control.

You can always make the document also available as a single page, for 
those who wish to do such things (or print it as a whole, for example). 
The point is that for normal use, bulky content works better on the web 
when divided into parts, called "web pages".

> Please remember that I have not asked for advice on this aspect of the
> matter;

Indeed. This is a discussion forum, not a helpdesk. You post something, 
others discuss it. If this happens to address a question you've asked, 
that's coincidental.

> I mentioned the delay only as a warning to others.

You seemed to be worried about the issue, and not without reason. You 
may still choose to ignore the points made about it here. Others who 
have similar issues may still benefit from the discussion.

> Expert advice is readily available elsewhere.

So you came here for non-expert advice? You don't always get what you want.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#15359

FromDr J R Stockton <reply1233@merlyn.demon.co.uk.invalid>
Date2012-08-14 19:29 +0100
Message-ID<KqVNjXEEkpKQFw5g@invalid.uk.co.demon.merlyn.invalid>
In reply to#15332
In comp.lang.javascript message <k0a1vq$pli$1@dont-email.me>, Mon, 13
Aug 2012 08:06:02, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:

>2012-08-12 21:38, Dr J R Stockton wrote:
>
>> If you can write a date/time like that
>
>Please leave whining about attributions to the resident troll.

You or Thomas?  I am trying to educate you in how a date ought to be
presented, in an international medium, to be fully meaningful.
University staff should be aware of such things.  I'd do the same for
the authors of my present News software, if they had not been moved to
pastures new.

>> It is a translation, and therefore formulae will occur where they were
>> originally placed 240 years ago
>
>Translations need not replicate the presentational style of the
>original. They seldom do. It is common, and often useful, to start a
>translation with the translator's preface, for example.

That is different.  A translation of an important document should
faithfully represent the original, warts and all (in the alleged words
of the Lord Protector, to Lely).  There is prefatory material; but I'm
not going to bloat that unnecessarily.

>> Handling such a document as fragments can be very inconvenient, since
>> one then cannot readily search the whole thing at once, by eye or by a
>> "Find" control.
>
>You can always make the document also available as a single page, for
>those who wish to do such things (or print it as a whole, for example).
>The point is that for normal use, bulky content works better on the web
>when divided into parts, called "web pages".

I am not going to maintain two parallel copies, and I have better things
to do than find or write software to maintain two copies from a single
data set.  The text is only 85kB, the equations about 55kB.

I have in fact tried to read the original in Gallica's default page-wise
display at UJF; it is deeply unsatisfactory, until one finds the
"defilement vertical" control.  I'm following the ULg presentation.

>> Please remember that I have not asked for advice on this aspect of the
>> matter;
>
>Indeed. This is a discussion forum, not a helpdesk. You post something,
>others discuss it. If this happens to address a question you've asked,
>that's coincidental.

Yes; and those who give bad or irrelevant advice should expect to be
told so.  You are not lecturing a somnolent class here.

>> I mentioned the delay only as a warning to others.
>
>You seemed to be worried about the issue, and not without reason. You
>may still choose to ignore the points made about it here. Others who
>have similar issues may still benefit from the discussion.

>> Expert advice is readily available elsewhere.
>
>So you came here for non-expert advice? You don't always get what you want.

Advice is much better given by those with knowledge of the particular
subject; they are to be found elsewhere.  Advice from the inadequately-
informed is counter-productive - and especially so when given by those
whose advice, on other topics can be well-informed and therefore useful.
I'm interested only in well-informed advice.

You have been provided with sufficient information to let you become
useful on this topic; you seem not to have used it.

-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

[toc] | [prev] | [next] | [standalone]


#15318

FromNorman Peelman <npeelmandog@cfl.rr.com>
Date2012-08-12 09:24 -0400
Message-ID<k08aq0$ikl$1@dont-email.me>
In reply to#15287
On 08/06/2012 03:35 PM, Dr J R Stockton wrote:
> In comp.lang.javascript message <jvkv3t$3t8$1@dont-email.me>, Sun, 5 Aug
> 2012 08:08:12, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:
>
>> 2012-08-05 1:08, Dr J R Stockton wrote:
>>
>>> [MathJax] uses a JavaScript include file to edit the transmitted body of the
>>> page; there is a perceptible delay.
>>
>> Yes, there might be a flash of non-typeset content, perhaps even more
>> than just a flash. I've got used to it.
>
> This is a P4/3GHz (XP sp3), and my intended document, a translation of
> Lagrange's prize-winning "Essay ..." of 1772, has about 507 equations.
> So far, I've translated 37 of them to LaTeX, and it takes about 5
> seconds to convert them for elegant display.  That suggests around 68
> seconds for the full work.
>
> It's not sufficient for the author to get used to it; one must consider
> the effect on a first-time reader.
>

   I'm surprised that MathJax doesn't offer the ability to create static 
output, but maybe they didn't expect people would have hundreds of 
equations on a single page... If you could grab the .innerHTML and 
generated styles for each equation then you could simply include them.


> But their Google Group seems active and helpful, with suggestions for
> alleviating the problem.
>



-- 
Norman
Registered Linux user #461062
AMD64X2 6400+ Ubuntu 10.04 64bit

[toc] | [prev] | [next] | [standalone]


#15319

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2012-08-12 17:44 +0200
Message-ID<1408650.sROjqAS2YY@PointedEars.de>
In reply to#15318
Norman Peelman wrote:

> On 08/06/2012 03:35 PM, Dr J R Stockton wrote:
>> In comp.lang.javascript message <jvkv3t$3t8$1@dont-email.me>, Sun, 5 Aug
>> 2012 08:08:12, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:
>>> 2012-08-05 1:08, Dr J R Stockton wrote:
>>>> [MathJax] uses a JavaScript include file to edit the transmitted body
>>>> [of the page; there is a perceptible delay.
>>> Yes, there might be a flash of non-typeset content, perhaps even more
>>> than just a flash. I've got used to it.
>>
>> This is a P4/3GHz (XP sp3), and my intended document, a translation of
>> Lagrange's prize-winning "Essay ..." of 1772, has about 507 equations.
>> So far, I've translated 37 of them to LaTeX, and it takes about 5
>> seconds to convert them for elegant display.  That suggests around 68
>> seconds for the full work.
>>
>> It's not sufficient for the author to get used to it; one must consider
>> the effect on a first-time reader.
> 
>    I'm surprised that MathJax doesn't offer the ability to create static
> output, but maybe they didn't expect people would have hundreds of
> equations on a single page... If you could grab the .innerHTML and
> generated styles for each equation then you could simply include them.

The goal of MathJax, however, is for scientists to be able to continue using 
the familiar LaTeX syntax in their works and have them presented in a way on 
the Web that is both very compatible (as opposed to e. g. MathML, 
unfortunately) and easily readable (for the scientific community) *without* 
the author having to maintain its HTML representation as well.


PointedEars
-- 
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

[toc] | [prev] | [next] | [standalone]


#15353

FromDr J R Stockton <reply1233@merlyn.demon.co.uk.invalid>
Date2012-08-13 19:23 +0100
Message-ID<lHpWoYF1YUKQFwvW@invalid.uk.co.demon.merlyn.invalid>
In reply to#15318
In comp.lang.javascript message <k08aq0$ikl$1@dont-email.me>, Sun, 12
Aug 2012 09:24:15, Norman Peelman <npeelmandog@cfl.rr.com> posted:

>
>  I'm surprised that MathJax doesn't offer the ability to create static
>output, but maybe they didn't expect people would have hundreds of
>equations on a single page... If you could grab the .innerHTML and
>generated styles for each equation then you could simply include them.

I fear that those might be quite large, possibly larger than a well-
coded image of the electronically-typeset equations (which would at
least be better than a cut of the scanned images of the c.19 inky
printing).

And MathJax's typesetting, while quite good, is likely to improve with
time, whereas a capture would not.



I now have to think about how to represent a character of whose identity
there is no doubt (an equals sign), but which in the scan has only about
1% of the ink that it ought to; and at least one case of a real typo in
the c.19 document.  AFAIK, the c.18 original printing is not on the Web.

-- 
 (c) John Stockton, nr London, UK.  Mail via homepage.  Turnpike v6.05  MIME.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
 No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

[toc] | [prev] | [next] | [standalone]


#15356

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2012-08-14 01:48 -0400
Message-ID<18x4oy2548iyi.1g7ob9t8kqke3.dlg@40tude.net>
In reply to#15353
On Mon, 13 Aug 2012 19:23:49 +0100, Dr J R Stockton wrote of ...:

> ... a character of whose identity
> there is no doubt (an equals sign), but which in the scan has only about
> 1% of the ink that it ought to ...

Ah, you recall to my mind the mid-20th century publications of the French
publisher Hermann -- Bourbaki, in particular, but not only -- their "equals
sign"s were astonishingly long (a good 1-em dash long) and astonishingly
razor's-edged (surely under a thousandth of an inch in breadth per stroke).

At times you could hardly see them on the printed page.

Think it's inappropriate to substitute a visible, modern "=" ? 

Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [next] | [standalone]


#15357

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2012-08-14 09:25 +0300
Message-ID<k0cr0g$m79$1@dont-email.me>
In reply to#15356
2012-08-14 8:48, tlvp wrote:

> On Mon, 13 Aug 2012 19:23:49 +0100, Dr J R Stockton wrote of ...:
>
>> ... a character of whose identity
>> there is no doubt (an equals sign), but which in the scan has only about
>> 1% of the ink that it ought to ...
>
> Ah, you recall to my mind the mid-20th century publications of the French
> publisher Hermann -- Bourbaki, in particular, but not only -- their "equals
> sign"s were astonishingly long (a good 1-em dash long) and astonishingly
> razor's-edged (surely under a thousandth of an inch in breadth per stroke).
>
> At times you could hardly see them on the printed page.
>
> Think it's inappropriate to substitute a visible, modern "=" ?

Why would it be inappropriate? If the text clearly contains an equals 
sign, then the HTMLized version should contain U+003D EQUALS SIGN, just 
as the letter Q should be the letter Q, no matter how decorative or 
exotic its appearance in the original is.

Should you wish to preserve the visual appearance of glyphs, then you 
need to work on scanned images, not HTML. Images can be improved, using 
techniques that make the document partly recover from physical corruption.

It is technically possible to add styling to HTML in an attempt to 
simulate the glyphs used in the original. Many fonts contain wide glyphs 
with thin strokes for the equals sign. Such design can be regarded as 
suited for mathematical use; compare, for example, the equals sign in 
Cambria Math vs. Cambria.

It would be a different matter if the text contain such an equals sign 
*and* a different (narrower) equals sign, in a context where the general 
style of the text is similar. Then you might have a case for suggesting 
the addition of MATHEMATICAL EQUALS SIGN to Unicode, to allow 
disambiguation from normal equals sign. Allow eight years for acceptance 
and implementation (optimistically speaking). But I'm afraid it would 
not work: the opponents could well argument that it's still a glyph 
difference only, and fonts suitable for mathematical texts generally 
have operator symbols that are stylistically different from fonts 
designed for general texts.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#15362

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2012-08-14 22:44 -0400
Message-ID<kharnxi0umeg$.1rjj54hqs67ph$.dlg@40tude.net>
In reply to#15357
On Tue, 14 Aug 2012 09:25:19 +0300, Jukka K. Korpela wrote:

> 2012-08-14 8:48, tlvp wrote:
> 
>> On Mon, 13 Aug 2012 19:23:49 +0100, Dr J R Stockton wrote of ...:
>>
>>> ... a character of whose identity
>>> there is no doubt (an equals sign), but which in the scan has only about
>>> 1% of the ink that it ought to ...
>>
>> Ah, you recall to my mind the mid-20th century publications of the French
>> publisher Hermann -- Bourbaki, in particular, but not only -- their "equals
>> sign"s were astonishingly long (a good 1-em dash long) and astonishingly
>> razor's-edged (surely under a thousandth of an inch in breadth per stroke).
>>
>> At times you could hardly see them on the printed page.
>>
>> Think it's inappropriate to substitute a visible, modern "=" ?
> 
> Why would it be inappropriate?

Both "why" (your question) and "whether" (mine) are really for the OP to
decide -- I just raised the question "whether" for the following reason:

I had the impression OP sought to hew as closely as possible to the
vagaries of the original. By that question I was hoping to suggest that
such close hewing might not be uniformly necessary. 

> ... If the text clearly contains an equals 
> sign, then the HTMLized version should contain U+003D EQUALS SIGN, just 
> as the letter Q should be the letter Q, no matter how decorative or 
> exotic its appearance in the original is.

That'd be my inclination too, for that matter :-) .

> Should you wish ...
> ...
>> ... [snip! (of matters I'm not addressing)] ...
> ...

Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [next] | [standalone]


#15381

FromDr J R Stockton <reply1233@merlyn.demon.co.uk.invalid>
Date2012-08-16 19:36 +0100
Message-ID<+hdwhNCj2TLQFwXk@invalid.uk.co.demon.merlyn.invalid>
In reply to#15362
In comp.lang.javascript message <kharnxi0umeg$.1rjj54hqs67ph$.dlg@40tude
.net>, Tue, 14 Aug 2012 22:44:25, tlvp <mPiOsUcB.EtLlLvEp@att.net>
posted:

>
>I had the impression OP sought to hew as closely as possible to the
>vagaries of the original. By that question I was hoping to suggest that
>such close hewing might not be uniformly necessary.
>

To reproduce as closely as convenient the intent of the original, but
showing (with suitable annotation) all typos.  I preserve, for example,
two references to the "radius rector" in the c.19 version.

-- 
 (c) John Stockton, nr London, UK.  Mail via homepage.  Turnpike v6.05  MIME.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
 No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

[toc] | [prev] | [next] | [standalone]


#15368

FromDr J R Stockton <reply1233@merlyn.demon.co.uk.invalid>
Date2012-08-15 19:14 +0100
Message-ID<Ms6sSwD5b+KQFwot@invalid.uk.co.demon.merlyn.invalid>
In reply to#15357
In comp.lang.javascript message <k0cr0g$m79$1@dont-email.me>, Tue, 14
Aug 2012 09:25:19, Jukka K. Korpela <jkorpela@cs.tut.fi> posted:

>Why would it be inappropriate? If the text clearly contains an equals
>sign, then the HTMLized version should contain U+003D EQUALS SIGN, just
>as the letter Q should be the letter Q, no matter how decorative or
>exotic its appearance in the original is.

The new version of the equation is not HTMLised.

-- 
(c) John Stockton, nr London, UK. ???@merlyn.demon.co.uk Turnpike v6.05  MIME.
 Web  <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.

Food expiry ambiguities: <URL:http://www.merlyn.demon.co.uk/date2k-3.htm#Food>

[toc] | [prev] | [next] | [standalone]


#15367

FromDr J R Stockton <reply1233@merlyn.demon.co.uk.invalid>
Date2012-08-15 19:08 +0100
Message-ID<RsqrSwC5W+KQFwLZ@invalid.uk.co.demon.merlyn.invalid>
In reply to#15356
In comp.lang.javascript message <18x4oy2548iyi.1g7ob9t8kqke3.dlg@40tude.
net>, Tue, 14 Aug 2012 01:48:16, tlvp <mPiOsUcB.EtLlLvEp@att.net>
posted:

>On Mon, 13 Aug 2012 19:23:49 +0100, Dr J R Stockton wrote of ...:
>
>> ... a character of whose identity
>> there is no doubt (an equals sign), but which in the scan has only about
>> 1% of the ink that it ought to ...
>
>Ah, you recall to my mind the mid-20th century publications of the French
>publisher Hermann -- Bourbaki, in particular, but not only -- their "equals
>sign"s were astonishingly long (a good 1-em dash long) and astonishingly
>razor's-edged (surely under a thousandth of an inch in breadth per stroke).
>
>At times you could hardly see them on the printed page.
>
>Think it's inappropriate to substitute a visible, modern "=" ?

A good c.19 equals sign was without doubt intended; I cannot say whether
the little piece of lead used was our-of-spec, or the ink-spreading was
deficient.  I'm certainly using a MathJax-standard equals sign - but I
feel a slight temptation to mention the flaw in the c.19 printing.  I
don't know whether a copy of the c.18 original can be found - there
should be one in Paris.

I've so far found three real typos in the c.19 version; it would be of
interest to consult the c.18 for those.

All of the equations are now in MathJax, and the first new-typo-
correcting pass is 3/4 complete ...

-- 
 (c) John Stockton, nr London, UK.  Mail via homepage.  Turnpike v6.05  MIME.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
 No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.javascript


csiph-web