Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2015, 11:20 PM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Nitpick: RAR/7Z are formats.
WinRAR and 7-Zip are programs that handle ZIP/RAR/7Z



Seriously, try out advzip -- I think you will be pleasantly surprised.
Zopfli is the new kid on the block, but it has quickly taken the crown for efficient ZIP compression. Beating out 7-Zip's DEFLATE algorithm as well as KZIP.

Code:
advzip.exe -z4 -i 500 ZIPFILES...
advzip.exe --recompress --shrink-insane --iter 500 ZIPFILES...

Last edited by eschwartz; 12-15-2015 at 11:28 PM.
eschwartz is offline   Reply With Quote
Old 12-16-2015, 01:48 AM   #17
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
WinRAR can exclude specific files from being compressed e.g. mimetype. I've used it to 'reconstruct' EPUBs after pulling apart and editing xhtml file(s) with Notepad++.

BR
BetterRed is offline   Reply With Quote
Advert
Old 12-16-2015, 08:49 AM   #18
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
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
Thanks!
Kzip probably was the program I used years ago.
I'll try advzip.
ProDigit is offline   Reply With Quote
Old 12-16-2015, 12:13 PM   #19
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Be aware that the gain is not as much as you might want. My program ePUBOptimizer takes a valid ePUB and tries to make it smaller by using better compression, reducing image size without altering the quality and subsets fonts (if available). Of the functions, the compression rate has the least impact.
Toxaris is offline   Reply With Quote
Old 12-18-2015, 04:51 AM   #20
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
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
Hi,
Me again,

I'm manually creating my ebook,
downloaded Sigil for the generation of a UUID number,

And now I'm going over the content.opf file, in search for where can I trim this file down?

I've read that even though a UUID is technically 'required' for EPuB 3, it can run without it.
Also, a lot of content, like writer, author, date of creation, and other stuff, I don't really want to display.

My question would be, if removing the following line would cause any harm to the ebook? (like make it unreadable in some readers?):
Code:
<dc:identifier id="BookID" opf:scheme="UUID">urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</dc:identifier>
ProDigit is offline   Reply With Quote
Advert
Old 12-18-2015, 06:38 AM   #21
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Be aware that some metadata is mandatory. Omitting that will ensure the ePUB is not valid. It might still work, but no garantuee.
From the top of my mind, the following is mandatory: Author, Title, Language, Date and an identifier.
Toxaris is offline   Reply With Quote
Old 12-18-2015, 08:15 AM   #22
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
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've seen books without everything, but the identifier.
ProDigit is offline   Reply With Quote
Old 12-18-2015, 09:48 AM   #23
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by ProDigit View Post
I've seen books without everything, but the identifier.
Then they will not validate. The items I mentioned are mandatory, with the exception of the author and apparently. I was sure those where mandatory too.

From the specs:
Quote:
At least one of each of Dublin Core title, identifier and language must be included in the metadata element. Dublin Core elements, like any other elements in the OPF Package Document, may have an id attribute specified. At least one Dublin Core identifier, which is referenced from the package unique-identifier attribute, must have an id specified.
Be aware that most readers and reading applications will expect the author metadata also present. They will use that small subset to fill the internal database and will make it easier to select and read the book.
Toxaris is offline   Reply With Quote
Old 12-18-2015, 04:07 PM   #24
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by eschwartz View Post
It is XML. The spaces don't matter.
whitespace in XML/HTML only matters inside an element, and then it is collapsed down to one space.
Not strictly true. In some elements, e.g. pre, whitespace is preserved. Also, space between inline elements is significant, as is whitespace around comments. (I know this because I was the guy who fixed the bug on that last one in libxml2's HTML parser many years ago.) And with a proper parser, you can add xml:space="preserve" to any arbitrary element to preserve whitespace within in.

But yes, that's roughly true in the general case.
dgatwood is offline   Reply With Quote
Old 12-19-2015, 03:50 AM   #25
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
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
renaming content.opf?

If I change the 'content.opf' filename (eg: to c.opf) and change it in the container.xml file as well;
Will the ebook still be readable, or will it give errors?

Meaning, if any file linking to content.opf, has been modified to reflect the correct file name, will the ebook still work, or is the renaming of Content.opf a non-negotiable for EpuB 2 books?
ProDigit is offline   Reply With Quote
Old 12-19-2015, 05:06 AM   #26
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You can use whatever name you want, as long as it's properly specified in META-INF/container.xml (this one you can't change). If any reader has problems with this, it's the reader's fault (I haven't seen that so far).
Jellby is offline   Reply With Quote
Old 12-19-2015, 11:55 AM   #27
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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
Quote:
Originally Posted by Toxaris View Post
Be aware that some metadata is mandatory. Omitting that will ensure the ePUB is not valid. It might still work, but no garantuee.
From the top of my mind, the following is mandatory: Author, Title, Language, Date and an identifier.
Author is not mandatory since it may not be known. Should be present if known. Similarly the date is not required for the same reason. Title, Language, and unique identifier are required.
DaleDe is offline   Reply With Quote
Old 12-19-2015, 02:16 PM   #28
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DaleDe View Post
Author is not mandatory since it may not be known. Should be present if known. Similarly the date is not required for the same reason. Title, Language, and unique identifier are required.
I had already corrected my answer in a later post. After checking for sure in the specs I was surprised to find this as well.
Toxaris is offline   Reply With Quote
Old 12-19-2015, 02:24 PM   #29
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DaleDe View Post
Similarly the date is not required for the same reason.
BTW, epub3 books need to have a date modified metadata entry. For example:

Code:
    <meta property="dcterms:modified">2015-12-19T19:23:07Z</meta>
Otherwise you'll get the following ePubCheck error message:

Code:
Error while parsing file 'package dcterms:modified meta element must occur exactly once'.
Doitsu is offline   Reply With Quote
Old 12-19-2015, 02:31 PM   #30
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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
Quote:
Originally Posted by Doitsu View Post
BTW, epub3 books need to have a date modified metadata entry. For example:

Code:
    <meta property="dcterms:modified">2015-12-19T19:23:07Z</meta>
Otherwise you'll get the following ePubCheck error message:

Code:
Error while parsing file 'package dcterms:modified meta element must occur exactly once'.
Interesting. The date property is ambiguous at best since it does not indicate the purpose of the date. The ePub 3 seems to have corrected this in requiring the current date as opposed to the many other dates such as copyright date or original publication date. But technically this property is not a date property since there is an actual date property defined.

Dale
DaleDe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle not starting on start warenjc Amazon Kindle 3 07-18-2013 12:08 PM
Kindle not starting on start warenjc Kindle Formats 6 07-17-2013 12:48 PM
Kindle preview starting at #start in all formats but Fire petercrowell Kindle Formats 6 05-09-2012 09:20 PM
Kindle preview not starting at #start on all formats petercrowell Kindle Formats 3 05-03-2012 09:58 AM
PRS-T1 New reader start up questions amyb Sony Reader 9 10-24-2011 03:54 PM


All times are GMT -4. The time now is 11:18 PM.


MobileRead.com is a privately owned, operated and funded community.