View Single Post
Old 10-09-2008, 11:08 AM   #28
gonzule
before sleep, read or TV?
gonzule began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Apr 2008
Location: Australia
Device: Kobo Libra 2
Ok, here's what i've found on the "Unknown" author thing.

I extracted the .epub file and edited the "metadata.opf" file and found that there is no info on the author.

<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="calibre_id">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:title>Fahrenheit 451</dc:title>
<dc:creator opf:role="aut">Unknown</dc:creator>
<dc:contributor opf:role="bkp" opf:files-as="calibre">calibre (0.4.92) [http://calibre.kovidgoyal.net]</dc:contributor>
<dc:identifier opf:scheme="calibre" id="calibre_id">581498b1-6a5a-4043-8ace-9d07ca3d0047</dc:identifier>
<dc:language>en</dc:language>
<series_index>1</series_index>
</metadata>

I also found differences on the "toc.nx" file. Whe converting, i told the program to keep the original TOC or index from the source file, but it still converts it. Here is an extract from toc.nx original and converted.

Original:

<?xml version="1.0" encoding="UTF-8"?>
<ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx/">
<head>
<meta name="dtb:uid" content="urn:uuid:a384c8ee-6fa1-45ec-94f5-33c751fa5c6f"/>
<meta name="dtb:depth" content="1"/>
</head>
<docTitle>
<text>Fahrenheit 451</text>
</docTitle>
<navMap>
<navPoint id="part1" playOrder="0">
<navLabel>
<text>Fahrenheit 451</text>
</navLabel>
<content src="part1.xhtml"/>
</navPoint>
<navPoint id="part2" playOrder="1">
<navLabel>
<text>PART ONE: IT WAS A PLEASURE TO BURN</text>
</navLabel>
<content src="part2.xhtml"/>
</navPoint>
<navPoint id="part3" playOrder="2">
<navLabel>
<text>PART TWO: THE SIEVE AND THE SAND</text>
</navLabel>


Converted:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en">
<head>
<meta name="dtb:uid" content="581498b1-6a5a-4043-8ace-9d07ca3d0047"/>
<meta name="dtb:depth" content="2"/>
<meta name="dtb:generator" content="calibre"/>
<meta name="dtb:totalPageCount" content="0"/>
<meta name="dtb:maxPageNumber" content="0"/>
</head>
<docTitle><text>Table of Contents</text></docTitle>
<navMap>
<navPoint id="3f4bb93e-442e-4895-b1f8-8dbd9686a22c" playOrder="1">
<navLabel>
<text>Fahrenheit 451</text>
</navLabel>
<content src="content/title.xhtml"/>
</navPoint>
<navPoint id="bd402a7a-33ff-42f1-a5da-6db3fcdc517b" playOrder="2">
<navLabel>
<text>Fahrenheit 451</text>
</navLabel>
<content src="content/part1.xhtml"/>
</navPoint>
<navPoint id="5fd3d735-7526-41b0-a054-1edd1879f69e" playOrder="3">
<navLabel>
<text>Fahrenheit 451</text>
</navLabel>
<content src="content/part2.xhtml"/>
</navPoint>


The chapter names are replaced by the book's title and so they show up in the table of contents when opening the file from the sony reader.

Also, the "playOrder" variable starts from "0" in hte original file and now starts from "1" (not sure if this is important).
gonzule is offline   Reply With Quote