Published October 19, 2012 | https://doi.org/10.59348/yv499-yqq65

Crude, but helpful, typesetting script from meXml

Creators & Contributors

In my quest to create a set of free and open tools for platinum, scholar-run OA journals, I've just committed a crude, provisional script to my meXml git repository that assists with typesetting into pseudo-NLM format.

A few notes. First of all, what does it do? The script parses markup output from the wysihtml5 tool and converts it into near-as-damnit the format I need for typesetting. The idea is that I paste a LibreOffice document (with endnotes, not footnotes) into the tool, and grab the markup it returns. This python script then parses it one step further into the format that I need to generate galleys for Orbit with the /tools/gengalleys.sh tool. I still have to clean up the markup, but this has reduced the time it takes to typeset down from about 6-8 hours to about 2 hours.

Is this the best way to do it? Almost certainly not. Why? Because the way to do it properly would be to create a set of LibreOffice styles (or whatever mechanism it uses) and then get their tool to directly output in the format that's needed. It's also the case that I have broken compatibility with NLM standards (at present) in my implementation. This is something that I aim to gradually fix; I needed to break it at the time to Just Get It Done (trademark).

Is the script complete? Nope. It's pretty sloppy coding, too. Again, this is a dirty hack that I've committed in case it helps somebody.

Disclaimers done: enjoy!

Crude, but helpful, typesetting script from meXml was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on October 19, 2012.

Files

10.59348_yv499-yqq65.pdf

Files (98.8 kB)

Name Size Download all
md5:a7284086daa3b93882b0f3a3216d4138
98.8 kB Preview Download

Additional details

Description

In my quest to create a set of free and open tools for platinum, scholar-run OA journals, I've just committed a crude, provisional script to my meXml git repository that assists with typesetting into pseudo-NLM format. A few notes. First of all, what does it do? The script parses markup output from the wysihtml5 tool and converts it into near-as-damnit the format I need for typesetting.

Identifiers

Dates

Issued
2012-10-19T00:00:00Z
Updated
2012-10-19T17:08:08Z