a simple ebook machine - world wide web consortium · du théàtre par gros temps le de la...
TRANSCRIPT
A simpleebook machinePhilippe Rivière« Le Monde diplomatique »
@recifshttp://seenthis.net/people/fil
Structure• newspaper
• 1: front page
• 2: service page
• 3: dossiers; sections…
• 4: reading notes
• ebooks
• a long tract of text; chapters
Our solution
• A simple HTML page defines the ebook: $TOC_URL
• lists chapters’ URLs (as a list of links)<a href=“chapter1.html”>Chapter 1 title</a>
• [optionally] lists cover, stylesheets<a href=“cover.jpg”><img … /></a>
(suggestions welcome!)
• each chapter is as complex as necessary (CMS job)
• ebook machine assembles all chapters(& associated media) with a template
Convert newspaper to .epubuser-friendly CLI:
> ebook.php $TOC_URL
(or, piloted from the CMS)
> .mobi.azw3
Structure
thank you!
Same script,different $TOC_URL