Re: [Jscl-meditor-users] meditor to XHTML conversion
Brought to you by:
rjolly
|
From: Raphael J. <rap...@fr...> - 2004-06-27 08:56:52
|
On Fri, 25 Jun 2004 17:28:39 Dimitri Pissarenko wrote: > Hello! > > First of all, thanks for writing meditor. It's a great tool! > > I'm using meditor primarily on my Palm. I use it to solve some > exercises. > > Sometimes, I want to show those solutions to someone else. Using > desktop version of meditor, I transform mathematical experssions I > wrote on > Palm into MathML, then put the whole stuff into an xhtml file, and > then > I can view the formulae in a MathML capable browser (Amaya or Mozilla > or > Mozilla Firefox). > > All that works fine. > > However, I need to perform several steps manually: > > 1) Invoke "To MathML" operation on EVERY mathematical expression in > the text > > 2) Replace line feeds by "<br/>" > > 3) Put the result of 1) and 2) into an xhtml template file with all > MathML > specific settings > > 4) Surround each MathML block with <math > xmlns="http://www.w3.org/1998/Math/MathML"> > and </math> > > As you see, all of these steps can be automated. > > I would like to know following: > > a) Has someone already written some piece of software, which > transforms > a meditor file to XHTML without user intervention? > > b) What is the best way to mark the expressions, which have to be > converted > to MathML? Begin and end markers like §§{{a, b}, {c, d}}§§ where all > the > text between §§'s is transformed into MathML? > > TIA > > dap Hello Dimitri, I don't think anybody has already written a meditor to XHTML converter. The point is that there is no such thing as a meditor format. The format is .txt files. As you point out, one would need delimiters for math expressions. As now, I was engaging in a "direct-to-web" way, as you can see with meditorworld : copy/paste the MathML code in a wiki textarea with <math> tags, and done. However there's still as many actions as math expressions, so this is still slow. Moreover the resulting text is big. I was thinking of TeX as a replacement, work is in progress at the mediawiki staff regarding MathML rendering of TeX expressions. But I think your idea is good. I would have to add an "export->MathML" menu item to perform the automatic conversion. What about brackets [] as math expression delimiters ? Raphael |