orly 0.1.7

Download O'Reilly books as EPUB
Documentation
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" version="2.0">
   <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:opf="http://www.idpf.org/2007/opf">
      <dc:title>{{ title }}</dc:title>
      {% for author in authors %}
      <dc:creator opf:file-as="{{ author.name }}" opf:role="aut">{{ author.name }}</dc:creator>
      {% endfor %}
      <dc:description>{{ description|safe }}</dc:description>
      {% for subject in subjects %}
      <dc:subject>{{ subject.name }}</dc:subject>
      {% endfor %}
      <dc:publisher>{{ publishers }}</dc:publisher>
      <dc:rights>{{ rights }}</dc:rights>
      <dc:language>{{ language }}</dc:language>
      <dc:date>{{ issued }}</dc:date>
      <dc:identifier id="bookid">ID:ISBN:{{ isbn }}</dc:identifier>
      <meta name="cover" content="{{ cover_image|to_id }}" />
   </metadata>
   <manifest>
      <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
      {% for filename in chapters %}
      <item id="{{ filename|to_id }}" href="{{ filename }}" media-type="application/xhtml+xml" />
      {% endfor %}
      {% for (filename, mime) in images %}
      <item id="{{ filename|to_id }}" href="{{ filename|safe }}" media-type="image/{{ mime }}" />
      {% endfor %}
      {% for filename in styles %}
      <item id="{{ filename|to_id }}" href="{{ filename|safe }}" media-type="text/css" />
      {% endfor %}
      {% for filename in css_deps %}
      <item id="{{ filename|to_id }}" href="{{ filename|safe }}" media-type="{{ filename|mime }}" />
      {% endfor %}
   </manifest>
   <spine toc="ncx">
      {% for filename in chapters %}
      <itemref idref="{{ filename|to_id }}"/>
      {% endfor %}
   </spine>
   <guide>
      <reference href="Text/cover.xhtml" title="Cover" type="cover" />
   </guide>
</package>