[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xml, particularly mathml

shr will not handle mathml for you. One option is Chromevox - you
can hand off the url containing MathML to it.
>>>>> "prayner" == prayner  <prayner@unimelb.edu.au> writes:
    prayner> One of my most important (and now much beloved)
    prayner> families of scientific journals has just added full
    prayner> texts in xml to pdf as its public formats. A recent
    prayner> example can be found at
    prayner> <http://www.geosci-model-dev.net/7/2867/2014/gmd-7-2867-2014.xml>. This
    prayner> is great but it gets better, they're also using
    prayner> mathml for all the inline and displayed
    prayner> mathematics. At this point I became slightly
    prayner> lightheaded :-) So, what's the smoothest way to
    prayner> access such content in emacspeak? Running
    prayner> (shr-insert-document (libxml-parse-xml-region
    prayner> (point-min) (point-max))) does a half decent job on
    prayner> the inline mathematics, I suspect largely by
    prayner> ignoring all the formatting. It's ignoring other
    prayner> things too, probably because it didn't find the
    prayner> DTD. Still, quite usable after 5 minutes' work. Now
    prayner> the hard bit. I would like to serialize all the mml
    prayner> constructs and include them in the resulting parse
    prayner> tree as text. The serialization seems doable, the
    prayner> python module mathDOM looks like it will do the
    prayner> job. I'd rather not replicate all the functionality
    prayner> of libxml-parse-xml-region so is there a way I can
    prayner> intervene in the process to handle the parsing of
    prayner> certain elements externally? Am I going about this
    prayner> all the wrong way? You'll have to forgive mesome
    prayner> excitement, after 30 years in research this is the
    prayner> first time I've gone to a public site and been
    prayner> guaranteed I can download material with the
    prayner> mathematical content intact. Now I just need to
    prayner> extract it.
    prayner> -- Peter Rayner room 343 School of Earth Sciences,
    prayner> University of Melbourne, 3010, Vic, Australia tel:
    prayner> work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761
    prayner> mobile +61 402 752 379, skype: petermorag mail-to:
    prayner> prayner@unimelb.edu.au google scholar profile
    prayner> <http://scholar.google.com.au/citations?user=H3up71wAAAAJ&hl=en>
    prayner> -----------------------------------------------------------------------------
    prayner> To unsubscribe from the emacspeak list or change
    prayner> your address on the emacspeak list send mail to
    prayner> "emacspeak-request@cs.vassar.edu" with a subject of
    prayner> "unsubscribe" or "help".

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".

If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive