tag:blogger.com,1999:blog-3213242827617521584.post6685080106451252905..comments2023-11-05T15:21:14.305-08:00Comments on Kathi Fletcher's Blog: Publishing API and a new service could make translating Connexions modules easyKathi Fletcherhttp://www.blogger.com/profile/03495040783600739973noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-3213242827617521584.post-18098963681351761282013-10-20T05:33:08.138-07:002013-10-20T05:33:08.138-07:00We lost MathML images in a crash. I am looking for...We lost MathML images in a crash. I am looking for a batch conversion of MathML to PNG. Anonymoushttps://www.blogger.com/profile/10840148288595285165noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-39289295164091626922013-10-20T05:30:49.506-07:002013-10-20T05:30:49.506-07:00We lost MathML images in a crash. I am looking for...We lost MathML images in a crash. I am looking for a batch conversion of MathML to PNG. Please mail to rameshwar.v@tutorsandmentors.in.Anonymoushttps://www.blogger.com/profile/10840148288595285165noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-30986383163552282352012-12-15T02:38:44.355-08:002012-12-15T02:38:44.355-08:00Does anyone still need a "MathML to LaTeX&quo...Does anyone still need a "MathML to LaTeX" or "MathML to image (PNG, BMP, EMF, PDF, or, even, SVG) converter?<br /><br />I can create one in C/C++, Windows preferably but Linux is also possible.<br /><br />If you're interested, please let me know. Thanks.ReforMathhttps://www.blogger.com/profile/02894717955260143189noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-64711354053856590072011-07-29T09:05:52.229-07:002011-07-29T09:05:52.229-07:00Really interesting post - thank you!
It's wor...Really interesting post - thank you!<br /><br />It's worth noting that in the long human trajectory towards openness, open translation data is an important component of OER. Translator toolkit could be more open. <br /><br />Thanks - George.georgeweymanhttps://www.blogger.com/profile/12820578228063337018noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-91482514327128930732011-06-27T13:20:18.955-07:002011-06-27T13:20:18.955-07:00I made some notes here:
http://code.google.com/...I made some notes here:<br /><br /> http://code.google.com/p/oer-roadmap/wiki/GoogleTranslatorWorkflow<br /><br />The Google Translator Toolkit apparently also accepts Wikipedia Mark-up and seems to handle in losslessly (which is not the case for HTML).<br /><br />Cheers,<br />CarlCarlhttps://www.blogger.com/profile/04787599184352311587noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-73160576061673555782011-06-26T11:06:06.458-07:002011-06-26T11:06:06.458-07:00Sorry, I forgot to give more details. Basically we...Sorry, I forgot to give more details. Basically we use SVGMath (http://grigoriev.ru/svgmath/) to convert Mathml to SVG and then we use ImageMagick's convert command to convert it to a PNG. If we have content MathML we transform it to presentation MathML using an XSL stylesheet before we pass it to SVGMath. Hope that helps.Roché Compaanhttps://www.blogger.com/profile/17915242862187390684noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-37150940437487330812011-06-26T10:51:08.515-07:002011-06-26T10:51:08.515-07:00As Mark pointed out we already do a lot of MathML ...As Mark pointed out we already do a lot of MathML to image conversion for the Connexions mobiles site. I always point people to the Artificial satellites module since this module has around 30 formulas that needs to be converted and shows off the conversion nicely. I have developed a package called upfront.mathmlimage currently living inside the Rhaptos SVN repository at https://software.cnx.rice.edu/svn/devsets/mobile-frontend/buildout/deliverance/src/upfront.mathmlimage that makes the conversion as simple as calling a method named "convert" with a mathml string eg.: convert(mathmlstring). We can pretty easily turn this into a web service with an hour of two's hacking :-)Roché Compaanhttps://www.blogger.com/profile/17915242862187390684noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-50043906661374207552011-06-26T06:57:46.836-07:002011-06-26T06:57:46.836-07:00Hi All
Regarding the MathML -> png - just use ...Hi All<br /><br />Regarding the MathML -> png - just use the pipeline Roche built for the Connexions mobile front-end (mobile.cnx.org). It's been tested with a ton of modules on Connexions and is being used by the android application as well so we'd know if there were big problems by now.<br /><br />I'll ask him to post a comment here but its all done in python using, I think, libsvg but check.<br /><br />On the mobile front-end we're even caching the images using a md5sum of the MathML so repeated equations need only be stored once.<br /><br />About storing the MathML in the id - is there no limit to the id length?<br /><br />Markmarknewlynhttps://www.blogger.com/profile/14665851956204841740noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-43852928302964227512011-06-26T06:56:47.313-07:002011-06-26T06:56:47.313-07:00This comment has been removed by the author.marknewlynhttps://www.blogger.com/profile/14665851956204841740noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-44175616254611959602011-06-26T05:15:42.159-07:002011-06-26T05:15:42.159-07:00Ok, how about this: http://xsltml.sourceforge.net/...Ok, how about this: http://xsltml.sourceforge.net/ ? I haven't tried it, but it looks pretty good.<br /><br />Otherwise, I found MathParser: http://www.tilman.de/programme/mathparser/anleitung_en.html which does also MathML to LaTeX, but it's written in Java and seems to lack a CLI.<br /><br />CatalinAnonymoushttps://www.blogger.com/profile/06547385593021388536noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-34940921143396612402011-06-25T23:03:28.244-07:002011-06-25T23:03:28.244-07:00Connexions already does a MathML to LaTeX transfor...Connexions already does a MathML to LaTeX transform as part of the PDF generation system, so it ought to be possible to isolate and reuse that part of the xsl.<br /><br />You don't need it to be bidirectional, because the purpose of the MathML -> LaTeX transform here is just to get a picture for displaying to translators so that they have the proper mathematical context for translating the words. <br /><br />Or perhaps there is a service that makes and serves an image out of MathML. Perhaps MathJax knows of some place?Kathi Fletcherhttps://www.blogger.com/profile/03495040783600739973noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-47875565692559733872011-06-25T16:41:41.816-07:002011-06-25T16:41:41.816-07:00Hey, Carl!
Actually I haven't heard of anybod...Hey, Carl!<br /><br />Actually I haven't heard of anybody that would require a MathML to LaTeX transform... <br /><br />I think the problem is that LaTeX -> HTML + MathML -> LaTeX will almost never be the same at the ends due to the complexity of the (La)TeX system -- I really like the example of David Carlisle http://www.ctan.org/pkg/xii -- look for file xii.tex ... That file evaluates to a full poem ("Twelve days of Christmas") when ran through a TeX->PDF compiler (or, for that matter, TeX -> HTML compiler like LaTeXML). From that, there is absolutely no way to get back to the exact same source unless you actually keep the source embedded in the HTML.<br /><br />It might be relatively easy to get a variant similar to the MathML by using a PHP / Python / Perl script for parsing the Presentation MathML into a DOM and, based on some rules, create a LaTeX source. But I think nobody has done that until now.<br /><br />CatalinAnonymoushttps://www.blogger.com/profile/06547385593021388536noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-12835459027165070892011-06-25T11:00:02.162-07:002011-06-25T11:00:02.162-07:00Oops... sorry for the confusion, but I seem to hav...Oops... sorry for the confusion, but I seem to have mixed up the requirements in my earlier comment. We need a MathML to LaTeX converter (and not the other way around).<br /><br />@CDavid: Thanks for the pointers. I had a quick read through your article, but it looks like all the converters covered there go the wrong way around for our purposes. It's strange that none of them are bi-directional.<br /><br />CarlCarlhttps://www.blogger.com/profile/04787599184352311587noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-550821141692734402011-06-25T08:34:39.622-07:002011-06-25T08:34:39.622-07:00@Carl -- how about LaTeXML? In any case, we tried ...@Carl -- how about LaTeXML? In any case, we tried to do a comparison about 2 years ago on the arXiv.org corpus -- http://kwarc.info/kohlhase/submit/dml09.pdf<br /><br />One of my colleagues is actually working right now on a RESTful interface for LaTeXML.<br /><br />Contact me if you want to know more :)<br /><br />Catalin DavidAnonymoushttps://www.blogger.com/profile/06547385593021388536noreply@blogger.comtag:blogger.com,1999:blog-3213242827617521584.post-30033519473001513732011-06-25T08:19:17.882-07:002011-06-25T08:19:17.882-07:00The tool I was referring to is at http://latex.cod...The tool I was referring to is at http://latex.codecogs.com/ For example, try http://latex.codecogs.com/png.latex?\sqrt{2}x<br /><br />Unfortunately (for our purposes) it takes LaTeX equations rather than MathML. LaTeX to MathML converters seem sparsely distributed, but I'll have a look into those.<br /><br />Cheers,<br />CarlCarlhttps://www.blogger.com/profile/04787599184352311587noreply@blogger.com