![]() |
#16 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
The easiest way to find out, what tags are required is to delete tags and run epubcheck afterwards. (If you use the Sigil epubcheck plugin, you don't have to save files after deleting/adding tags, because the plugin will automatically grab the latest files.) Quote:
AFAIK, they're optional. Quote:
Quote:
Most of these attributes are mandatory in epub3 content docs. For details, see the epub3 specs. |
||||
![]() |
![]() |
![]() |
#17 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@BetterRed
Thx for the hint. I changed to "code", than "noparse" is not necessary anymore. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
I started as you, Doitsu, suggested - with installing the epubcheck plugin for Sigil.
I'm getting nearer, slowly. My actual OPF: Code:
<?xml version="1.0" encoding="utf-8"?> <package version="3.0" unique-identifier="book-id" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://www.idpf.org/2007/opf"> <metadata> <dc:title>Tanz der seligen Geister</dc:title> <dc:creator>Alice Munro</dc:creator> <dc:language>de-DE</dc:language> <dc:publisher>Dörlemann</dc:publisher> <dc:date>2012</dc:date> <dc:identifier id="book-id">urn:isbn:978-3-908778-02-8</dc:identifier> </metadata> <manifest> <item id="title" href="Text/title.xhtml" media-type="application/xhtml+xml"/> <item id="content" href="Text/content.xhtml" media-type="application/xhtml+xml"/> <item id="about" href="Text/about.xhtml" media-type="application/xhtml+xml"/> <item id="imprint" href="Text/imprint.xhtml" media-type="application/xhtml+xml"/> <item id="nav" href="Text/nav.xhtml" media-type="application/xhtml+xml" properties="nav"/> <item id="default.css" href="Styles/default.css" media-type="text/css"/> <item id="author.jpg" href="Images/author.jpg" media-type="image/jpeg"/> <item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/> </manifest> <spine> <itemref idref="title"/> <itemref idref="content"/> <itemref idref="about"/> <itemref idref="imprint"/> <itemref idref="nav"/> </spine> </package> 1 When I've started the plugin, the function "Edit > Undo" is not available. That makes it difficult to test all the possible mimilizations. Is there are good way to deal with it? 2 How can I delete the file toc.ncx in Sigil permanently please? The context menu does not offer a function to delete it. When I delete <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> in the OPF, it is automatically inserted again by Sigil, when I reopen the file. How can I prevent that? 3 How can I remove <meta name="Sigil version" content="0.9.7" /> <meta property="dcterms:modified">2017-03-07T12:14:04Z</meta> permanently? 4 Can I place the files in the main level or is it impossible in Sigil to delete the directories "Text", "Images" and "Styles"? 5 The code above validates almost. The output of the plugin: Quote:
I'm frightened ![]() Last edited by ibu; 03-07-2017 at 06:58 AM. |
|
![]() |
![]() |
![]() |
#19 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For example, you could create a new epub3 book, add a single <p> tag after the first paragraph Code:
<p> </p><p>
' Code:
FATAL(RSC-016): Fatal Error while parsing file 'The element type "p" must be terminated by the matching end-tag "</p>".'. You can't delete toc.ncx via the GUI, because Sigil tries to generate epub2 compatible epub3 books; you'll have to unzip the epub and remove toc.ncx and the corresponding .opf file entry and zip it up again. (You might want to use the ePub Zip/Unzip AppleScript application for Mac OS X.) You'll have to unzip the epub and manually delete it. Quote:
See previous answer. Sigil will automatically move all files to folders based on their mime types. AFAIK, Calibre Editor will maintain the original folder structure, but it only has minimal epub3 support. |
||
![]() |
![]() |
![]() |
#20 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
I continued with the minimization of the nav.xhtml.
The following code validates with the plugin: Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="de"> <head></head> <body> <h2>Inhaltsverzeichnis</h2> <nav epub:type="toc"> <ol> <li><a href="../Text/main.xhtml#t1">Der Walker Brothers-Cowboy</a></li> <li><a href="../Text/main.xhtml#t2">Die leuchtenden Häuser</a></li> <li><a href="../Text/main.xhtml#t3">Bilder</a></li> <li><a href="../Text/main.xhtml#t4">Danke für die Schlittenfahrt</a></li> <li><a href="../Text/main.xhtml#t5">Das Büro</a></li> <li><a href="../Text/main.xhtml#t6">Ein Gläschen Medizin</a></li> <li><a href="../Text/about.xhtml#t7">Zur Autorin und zu ihrer Übersetzerin</a></li> <li><a href="../Text/about.xhtml#t8">Zum Buch</a></li> <li><a href="../Text/imprint.xhtml#t9">Impressum</a></li> </ol> </nav> </body> </html> 1 Is epub:type="toc" in the nav element mandatory? Until now I couldn't find it in the specs you mentioned: http://www.idpf.org/epub/31/spec/epub-contentdocs.html Independent of that, Sigil deletes automatically the complete content of the nav element, when one deletes epub:type="toc" 2 How can I teach Sigil to produces such a minimized nav.xhtml 3 Will that navigation work with a Kobo? |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
AFAIK, no. You'll have to ask KevinH about this. IIRC, it was added to indicate that the machine readable NAV also doubles as a human readable TOC, but I might be wrong. Either way removing this attribute won't achieve anything.
AFAIK, there are no options for customizing the NAV doc. You'll have to unzip the epub and manually remove elements that you don't like. However, it'd be rather pointless, because removing them won't make your book load faster. I've got no idea. Theoretically, I should work if you also change the file extension to .kepub.epub. You might want to ask about this in the MR Kobo forum. |
![]() |
![]() |
![]() |
#22 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@Doitsu as reply to your post #19
Thanks again for your time and all the helpful hints. I understood how to deal with "undo" now. Great tip with the zip/unzip App. Works perfectly. I deleted the NCX file and deleted the appropriate references in the OPF. Than I zipped everything with the app: it validates with http://www.pagina-online.de/software/epub-checker/ But when I open the EPUB in Sigil, it automatically adds a NCX. Is there any way to prevent that in Sigil? Ditto for the entry about the Sigil version in the meta element. About the folder structure: OK, I like Sigil a lot and want to use it for editing. So I have to live with the fixed folder structure. I reached the target of a minmal epub almost - mainly because of your hints ![]() Well, I need to test, what the Kobo will do with such a minimal epub3. I hope there will be a solution for Sigil to keep it prevent that automatically generated NCX. Are there strong reasons against the idea to place the complete content into one single file (title, content, about, imprint)? Will that cause problems in a Kobo? I think of inserting automatical page breaks in front of specific headings via CSS. Than there's no need at all for separated files for the content. |
![]() |
![]() |
![]() |
#23 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@Doitsu as reply to #21
I tried to validate with and withou epub:type="toc". Result: It is mandatory. About the minimized nav: What a pity, that there's no way to create it with Sigil. |
![]() |
![]() |
![]() |
#24 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,964
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#25 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Edit > Preferences > Integration with Calibre > Update metadata ... You can't suppress this metadata entry, which is useful when tracking down version specific bugs. Quote:
Quote:
As for Kobo-specific questions, you'll have to ask them in the Kobo forum. |
||||
![]() |
![]() |
![]() |
#26 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
I minimalized the file structure and I even eliminated the nav.xhtml and integrated the code into content.xhtml.
At the moment I think, there's no way to enhance the minimalization. There's no other epub3 in the world, which could beat it ![]() ![]() The attached epub3 validates. Please do not open it in Sigil, if you like to look into it, because Sigil will destroy the file structure. Tomorrow I have to check out, if such a minimal epub3 works with a Kobo. I will give a feedback here. content.opf Code:
<?xml version= "1.0" encoding="utf-8"?> <package version= "3.0" unique-identifier="book-id" xmlns:dc= "http://purl.org/dc/elements/1.1/" xmlns= "http://www.idpf.org/2007/opf"> <metadata> <dc:identifier id="book-id"> urn:isbn:978-3-908778-02-8</dc:identifier> <meta property="dcterms:modified">2017-03-07T12:14:04Z </meta> <dc:language> de-DE </dc:language> <dc:title> Tanz der seligen Geister </dc:title> <dc:creator> Alice Munro </dc:creator> <!-- optional --> <dc:publisher> Dörlemann </dc:publisher> <!-- optional --> <dc:date> 2012 </dc:date> <!-- optional --> </metadata> <manifest> <item id="content" href="content.xhtml" media-type="application/xhtml+xml" properties="nav"/> <item id="cover" href="cover.jpg" media-type="image/jpeg"/> </manifest> <spine> <itemref idref="content"/> </spine> </package> Code:
... <h2>Inhaltsverzeichnis</h2> <nav epub:type="toc"> <ol> <li><a href="content.xhtml#t1">Der Walker Brothers-Cowboy</a></li> <li><a href="content.xhtml#t2">Die leuchtenden Häuser</a></li> <li><a href="content.xhtml#t3">Bilder</a></li> <li><a href="content.xhtml#t4">Danke für die Schlittenfahrt</a></li> <li><a href="content.xhtml#t5">Das Büro</a></li> <li><a href="content.xhtml#t6">Ein Gläschen Medizin</a></li> <li><a href="content.xhtml#t7">Zur Autorin und zu ihrer Übersetzerin</a></li> <li><a href="content.xhtml#t8">Zum Buch</a></li> <li><a href="content.xhtml#t9">Impressum</a></li> </ol> </nav> </body> </html> Last edited by ibu; 03-08-2017 at 06:55 AM. |
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I can't see the cover image. Otherwise it looks good. There is a toc at the end of the document. It is visible in ADE. I would be better near the front.
Dale |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
The cover image entry in the .opf file is missing a properties="cover-image" attribute:
Code:
<item id="cover.jpg" href="cover.jpg" media-type="image/jpeg" properties="cover-image"/>
You also might want to download Azardi and ADE 4.5 and test your book with it. |
![]() |
![]() |
![]() |
#29 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Thanks for the hint about the cover image.
I added the attribute "properties". And I separated the the nav. The validated attachement contains the changes. When we finishe this thread, I will edit the first posting and will attache the final file so it is easier for readers to find the latest version. The cover is not visible in the Kobo. Nor it is the TOC. But I haven't started with the work to make the minimal epub3 compatible to KOBO. That may be the reason. Is it true, that the nav must appear inside the spine element? It couldn't find information about that in the specs. About the validator: May be it would be useful, when it warns, if a nav does not exist as a separated file? Last edited by ibu; 03-08-2017 at 03:25 AM. |
![]() |
![]() |
![]() |
#30 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
The cover is shown in Azardi and iBooks.
Most likely the book wasn't opened with the ACCESS NetFront™ engine and RMSDK doesn't support NAV docs. As I've repeatedly pointed out in this thread, you'll need to change the file extension to .kepub.epub and you also might need to implement other KEPUB specific changes. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 457 | 05-28-2025 06:14 PM |
epub3 app with epub3 dictionary support | Doitsu | ePub | 0 | 01-21-2017 09:38 AM |
Epub3 XHTML Validation epub3 | Ramesh Arpitha | ePub | 5 | 06-30-2014 08:32 PM |
New Errors Converting epub3 -> zip -> epub3 | Lola25 | ePub | 2 | 11-12-2013 09:37 PM |
PRS-T2 Difference jailbreak.zip/rupor-jailbreak.7z & minimal-root-zeam.zip/rupor-minimal.7z? | hyperstruct | Sony Reader Dev Corner | 9 | 01-06-2013 02:05 PM |