![]() |
#16 | |
Wizzard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
|
Quote:
Now, if you just want to see how much of the mandatory stuff you can get away with leaving out before whatever error-correction exists in various readers starts to choke on not having them there, that's a different matter. ETA: If you really want to make a truly minimal ePub, start from scratch because adapting other people's templates means you end up with whatever features they decided to use, which you may or may not consider totally superfluous to your own book. |
|
![]() |
![]() |
![]() |
#17 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
|
Quote:
The epub spec is more strict so they can be opened with the most minimal hardware/software requirements. Last edited by Keroberos; 04-15-2012 at 07:52 PM. Reason: clarity |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Just stick to the specifications. Even if most readers now will allow you to create invalid ePUB's and still work, they are still wrong and there is no guarantee they will still work on other readers.
The ePUB format is already quite slim (contrary to what you claim) and compression makes it even smaller. By tinkering with the opf/ncx you might save 10kb, but probably a lot less. It will take a lot of effort and will gain you almost nothing and possibly generate faulty ePUBs. The 'why is this needed' is an academical question and should be treated as such. Not for publication of books. |
![]() |
![]() |
![]() |
#20 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
I personally do not believe ePub is optimized code at all!
From there my complaint, if I would have invented the epub, I would have given it the options it now has, but I would have optimized code to look more like the code in this post: https://www.mobileread.com/forums/sho...27&postcount=3 and not make any hyperlinks and headers mandatory for coding the page. If you understand anything about coding an HTML document, I've included 2 html's for you to take a look at. This is what I call "optimal coding". One is the smallest chapter I could find in the new testament. I chose that one, because not the text of the bible matters here, but the coding done to create this page. The other is a bible framework I used from before I had only the Sony PRS-505 reader, which was only able to read LRF files back in the days. LRF files do not support an internal toc, so I had to create one from scratch in HTML format. If you look at both pages, it's possible, but very difficult to make the coding overhead any smaller than this (see files below). I had to compress the file, because this site does not allow uploading of HTML files. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Usually, I don't feed trolls, but in your case I couldn't resist.
Nobody said it was and nobody forces you to use advanced ePub features. Make your book as small and as plain as possible, remove as many mandatory ePub elements as you can get away with and enjoy the glorious feeling that your ebook will open a few fractions of a second faster. Don't like header tags or hyperlinks? Simply remove them and use the search function of your reader instead. It will probably take at least twice as long, but at least you'll be reading an "optimized" ebook. IMHO, optimizing an ePub for size instead of layout or functionality doesn't make any sense at all. OTOH, if you have too much time on your hands, who am I to tell you what to do with it. Last edited by Doitsu; 04-16-2012 at 08:56 AM. |
![]() |
![]() |
![]() |
#22 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
Quote:
ePub is an standardized standard and some things are just defined as they are. Its ridiculus to discuss about that. |
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 04-16-2012 at 10:03 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion | foxxywith2xs | Calibre | 7 | 12-16-2012 07:49 PM |
NCX file generator (and html ToC and opf) | GiorgioC | Workshop | 0 | 07-12-2011 06:55 AM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |
Saving with old toc.ncx file | Haderlump | Sigil | 1 | 12-28-2010 12:11 PM |
Compiling HTML,NCX and OPF file | pakiyabhai | Calibre | 8 | 12-25-2009 11:12 AM |