![]() |
#1681 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
I've started seeing this just recently, so I'm not sure if something's changed with new Calibre releases, I'm doing something different, and/or I've lost my mind. If I run Modify ePub (v 1.7.3) against an epub3 book in Calibre 6.4, the @page class in stylesheet.css gets messed up. First, Calibre adds that @page thing during conversion, but I modified it slightly to include a comment. Here's what it looks like now:
Code:
@page { /* Basic Styling for what passes for pages in an epub */ margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; } Code:
@page { margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0;/* Basic Styling for what passes for pages in an epub */ margin-top: 0 } Code:
Modify ePubs version (1, 7, 3)
Logfile for book ID 285 (My Test Book - 0 Margins / me)
Job details 285
Modifying: C:\Users\Dave\AppData\Local\Temp\calibre_g_x6det9\mwzd7iwe_modify_epub\285.epub
Updating metadata and cover
Parsing xml file: content.opf
Parsing xml file: toc.ncx
Looking for redundant entries in manifest
Looking for unmanifested files
Looking for broken links in the NCX
ncx name: toc.ncx
Looping over ncx entries
Looking for Adobe xpgt files and links to remove
Looking for pagemaps
Looking for Google Play pagemaps
Looking for Adobe DRM meta tags to remove
Looking for legacy jackets
Adding or updating jacket
Current jacket removed: jacket.xhtml
Manifest item removed: jacket.xhtml (calibre_jacket)
Spine itemref removed: calibre_jacket
Manifest item added: jacket.xhtml (calibre_jacket)
Spine item inserted: calibre_jacket at pos: 1
Looking for html pages containing only broken image links
Looking for non dc: elements in manifest
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Removing child: {http://www.idpf.org/2007/opf}meta
Looking for html files to remove charset meta tags/encode to utf-8
Looking for embedded fonts
Looking for css @font-face style declarations
Looking for inline @font-face style declarations
Looking for CSS margins
Modified inline CSS margins in: margintest.xhtml
Modified CSS margins in: stylesheet.css
Looking for inline javascript blocks to remove
Looking for .js files to remove
Applying smarten punctuation
Stripping Kobo remnants
Looking for files to remove: ['iTunesMetadata.plist', 'iTunesArtwork']
Looking for files to remove: ['META-INF/calibre_bookmarks.txt']
Found file to remove: META-INF/calibre_bookmarks.txt
Looking for files to remove: ['.DS_Store', 'thumbs.db']
Looking for unused images
Stripping spans
Unprettying files
ePub updated in 0.07 seconds
Unfortunately, with chaley's comment a couple of pages back that he doesn't really maintain this any more, and with davidfor's recent passing (it looks like he did some work with the PI), I'm not sure if anyone can fix this. But, I'd appreciate it if someone would run the PI and check their @page class before and after. Last edited by enuddleyarbl; 09-05-2022 at 03:24 PM. |
![]() |
![]() |
![]() |
#1682 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#1683 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
OK. It's the comment that's causing the problem (which is odd because the PI has no problem with any other comments in my stylesheet.css). If I pull the comment out of my @page, Modify ePub works correctly. So, that's easily worked around.
And, let me throw in the options I use when I run Modify ePub: everything's checked (turned on) except Remove Unmanifested Files From Epub, Remove ONLY Google Play Page Maps, Flatten TOC Hierarchy in NCX File, Append Extra CSS, Remove All Metadata Jackets, Jacket at the End of the Book, Remove Existing Cover, and Insert or Replace Cover (that last one I'll use on epub2 books -- but it messes up the cover on epub3 books). |
![]() |
![]() |
![]() |
#1684 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
Last edited by enuddleyarbl; 09-05-2022 at 03:39 PM. |
|
![]() |
![]() |
![]() |
#1685 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#1686 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps moving the comment outside the definition?
Code:
/* Basic Styling for what passes for pages in an epub */ @page { margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; } |
![]() |
![]() |
![]() |
#1687 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
In this case, since @page is exactly the same in every book that I've run through Calibre, and the rule isn't exactly complex, removing the comment entirely is a reasonable workaround. Last edited by enuddleyarbl; 09-05-2022 at 06:44 PM. |
|
![]() |
![]() |
![]() |
#1688 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 87300
Join Date: Feb 2011
Device: kindle 3w, dxg, 5, Kv
|
Very useful plug-in, thank you!
I would suggest adding a "unsmarten punctuation" option besides the "smarten" one, especially given the recent problems with curly quotes in kindle books sent as epub. |
![]() |
![]() |
![]() |
#1689 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#1690 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2022
Device: Kindle
|
I've had a few ePubs fail to send to Kindle. Once I tried opening them in the Kindle Previewer software I found the issue was that a couple of the files contained these properties in the body tag:
data-AmznRemoved-M8="true" data-AmznRemoved="mobi7" I found this thread http://www.mobileread.mobi/forums/sh...272407&page=55 that mentioned these being attributes left over from an original Kindle source. Could we get an option in the plugin to remove these in order to make the process less manual? |
![]() |
![]() |
![]() |
#1691 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#1692 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2022
Device: Kindle
|
Quote:
Code:
E21018: Enhanced Mobi building failure, while parsing content in the file. Content: <data-AmznRemoved> in file: /private/var/folders/l4/y1bdd37n1955jm7mjqls0vt00000gn/T/cf3432b2-887f-432c-be43-99229faf6eff/cTemp/mTemp/mobi-d1h5qx/text/part0001.html line: 4294967295 Book conversion failed. |
|
![]() |
![]() |
![]() |
#1693 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 977
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#1694 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2022
Device: Kindle
|
|
![]() |
![]() |
![]() |
#1695 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2022
Device: Kindle Paperwhite
|
Corrupted title and no cover photo
So, I just discovered this plugin, after finding a lot of Epub files I obtained looking corrupted on Kindle, due to the UTF-8 encoding issue.
Using the plugin's "Encode HTML in UTF-8" option does correct the encoding (the originals have <meta charset="utf-8"> and not an XML encoding specifier) but the book's title is getting corrupted into something like "osctyCaS5qIgdGTUOQHIG3" and the cover photo is lost. Using the latest version of the plugin, along with calibre 6.5 and sending books to the Kindle via kindle.com email. Is this a known issue, do any of the vast array of options in the plugin possibly fix this? ![]() |
![]() |
![]() |
![]() |
Tags |
modify epub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1251 | 07-07-2025 09:13 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 03:07 PM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |