Mellel to HTML Droplet

For all things Mellel

Moderators: Eyal Redler, redlers, Ori Redler

Post Reply
Johannes
New to all this
Posts: 4
Joined: Tue Mar 01, 2011 6:01 pm

Mellel to HTML Droplet

Post by Johannes »

I'm am working on a Droplet that converts Mellel documents to html (and maybe later to .epub). The basic things work quite well at least for my test documents.

More details and download:
http://www.net-artworks.de/articles/Mel ... structure/

Feedback is welcome.

My philosophy is a bit different from Stephen Still's approach (see link below). I focus on getting the structure out of the Mellel document and transform it to a clean html code, while Stephen tries to reproduce the Mellel layout as faithful as possible (his xsl supports also more features at the moment).

Thanks to Stephen for his script. I learned a few things from looking at it.
You find his script here in the forum:
http://forum.redlers.com/viewtopic.php?f=1&t=687&p=4112

Johannes
Johannes
New to all this
Posts: 4
Joined: Tue Mar 01, 2011 6:01 pm

Re: Mellel to HTML Droplet

Post by Johannes »

I uploaded a new version.

Main improvement is support for numbering schemes for Auto-titles (only Arabic, Latin and Roman for now). This was a real nightmare to do. Ironically the most obvious structural element within a Mellel document is code wise the most incompatible element for structured XML ... But it should work now.

Further Improvements:
Citations
Variables
Keywords and Comments
Revised handling and styling of footnotes
Revised Styles.css

http://www.net-artworks.de/articles/Mel ... structure/

Johannes
fbrzvnrnd
Already downloaded the guide
Posts: 25
Joined: Thu May 15, 2008 7:37 pm

Re: Mellel to HTML Droplet

Post by fbrzvnrnd »

Hi,
is there a way to use the q and blockquote tags?


thank you.


f.
Johannes
New to all this
Posts: 4
Joined: Tue Mar 01, 2011 6:01 pm

Re: Mellel to HTML Droplet

Post by Johannes »

fbrzvnrnd wrote:is there a way to use the q and blockquote tags?
Mellel has no direct equivalent to these tags, so it is difficult to handle this automatically.
However you have two choices to get the desired result:
1) Dedicate a user style (or variation) in Mellel to q and Blickquote and do a grep search and replace on the html output to replace them with the appropriate tags.
2) Edit the stylesheet to make certain classes behave like q or blockquote tags.

Hope that helps.
Johannes
Post Reply