Mobileread
[GUI Plugin] Modify ePub
#1241  AnotherCat 05-07-2019, 04:55 PM
I am another regular user of the plugin. It still does its job as far as I'm concerned (constructive updates always welcome though ).

Didn't know it had a Help file and I never needed one.
Reply 

#1242  BetterRed 05-07-2019, 05:32 PM
Moderator Notice
There's no point in discussing what the Modify ePub plugin should and shouldn't do in the Book Editor subforum, so I'm merging this thread into the Modify ePub thread.

Starts at https://www.mobileread.com/forums/sh...postcount=1222

Perhaps the ability to specify a file path in the Conversion configuration was added after 30 Aug 2013, which is the date when the Extra CSS option was added to Modify.

BR
Reply 

#1243  phossler 05-07-2019, 06:02 PM
Quote BetterRed
Do we want to continue shipping the 'Modify ePub Help.htm' file if its not up-to-date. Assuming I ever knew, I had forgotten it was even there. I have 11 Kiwidude plugins, Modify EPub is the only one with a Help file.

BR
My 2 cents -- I'm not very familiar with a lot of the PIs and their options.

If the option (checkbox, radio button, etc.) has a tooltip, explanation label, message, or other means to fully explain its use (like most of Kovid's have) then you don't need a separate help file.

However, things like the Modify ePub Append CSS IMHO could benefit from a UI re-design to add explanatory information, or from a help file that explains how to use it: what is "caliber defaults", what is "text already contained"? Calibre has a lot of defaults, and my style sheet already contains text
Reply 

#1244  FulciLives 05-24-2019, 04:46 PM
Thank you for this Caliber plugin.

I had an epub with an embedded font that I hated. I used this plugin to remove it.

So simple yet so life-changing. I can read the book now!

P.S.
To be clear, the Caliber reader would not let me change the type of font until I did this.
Reply 

#1245  lumpynose 05-24-2019, 05:36 PM
Quote FulciLives
Thank you for this Caliber plugin.

I had an epub with an embedded font that I hated. I used this plugin to remove it.

So simple yet so life-changing. I can read the book now!
Made me laugh because I've been there.

I'm glad you made this comment because I didn't know about this plugin. I'll also use it to "fix" the justification of books; I prefer a ragged right margin.
Reply 

#1246  lumpynose 07-14-2019, 02:58 PM
Something about write and KeyError at the bottom of the log file.

Edit: unchecking "Remove unmanifested files from ePub" gets rid of this error and it finishes successfully.
Spoiler Warning below







calibre, version 3.45.2
ERROR: Modify ePub failed: No ePub files were updated

Modify ePubs
Logfile for book ID 7325 (Roy Blakeley in the Haunted Camp / Percy Keese Fitzhugh)
7325
Modifying: d:\tmp\calibre_akzdsd\hhv1nx_modify_epub\7325.epub
Updating metadata and cover
Parsing xml file: OEBPS/content.opf
Parsing xml file: OEBPS/toc.ncx
Looking for files to remove: [u'iTunesMetadata.plist', u'iTunesArtwork']
Looking for files to remove: [u'META-INF/calibre_bookmarks.txt']
Looking for files to remove: [u'.DS_Store', u'thumbs.db']
Looking for unused images
Removing unused image: OEBPS/OEBPS/cover.jpg
Manifest item removed: OEBPS/cover.jpg (cover)
Changing playOrder from: 8 to: 3
Changing playOrder from: 17 to: 4
Changing playOrder from: 30 to: 5
Changing playOrder from: 35 to: 6
Changing playOrder from: 42 to: 7
Changing playOrder from: 51 to: 8
Changing playOrder from: 57 to: 9
Changing playOrder from: 63 to: 10
Changing playOrder from: 72 to: 11
Changing playOrder from: 80 to: 12
Changing playOrder from: 84 to: 13
Changing playOrder from: 92 to: 14
Changing playOrder from: 100 to: 15
Changing playOrder from: 108 to: 16
Changing playOrder from: 113 to: 17
Changing playOrder from: 116 to: 18
Changing playOrder from: 121 to: 19
Changing playOrder from: 127 to: 20
Changing playOrder from: 134 to: 21
Changing playOrder from: 141 to: 22
Changing playOrder from: 148 to: 23
Changing playOrder from: 156 to: 24
Changing playOrder from: 160 to: 25
Changing playOrder from: 166 to: 26
Changing playOrder from: 172 to: 27
Changing playOrder from: 182 to: 28
Changing playOrder from: 192 to: 29
Changing playOrder from: 201 to: 30
Changing playOrder from: 205 to: 31
Changing playOrder from: 213 to: 32
Changing playOrder from: 219 to: 33
Changing playOrder from: 227 to: 34
Changing playOrder from: 236 to: 35
Stripping spans
Stripped spans in: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
Stripped spans in: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
Stripped spans in: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
Stripped spans in: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
Stripped spans in: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
Stripping Kobo remnants
Looking for redundant entries in manifest
Looking for unmanifested files
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-5.htm.html
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
Looking for broken links in the NCX
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-0.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-1.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-2.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
TOC Navpoint broken to remove of: @public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-4.htm.html
Looking for Adobe xpgt files and links to remove
Looking for Adobe DRM meta tags to remove
Looking for CSS margins
Modified CSS margins in: OEBPS/pgepub.css
Modified CSS margins in: OEBPS/1.css
Modified CSS margins in: OEBPS/0.css
Looking for extra CSS to append
Modified CSS margins in: OEBPS/pgepub.css
Modified CSS margins in: OEBPS/1.css
Modified CSS margins in: OEBPS/0.css
Looking for inline javascript blocks to remove
Looking for .js files to remove
Applying smarten punctuation
Roy Blakeley in the Haunted Camp - ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 81, in process_book
File "calibre_plugins.modify_epub.container", line 680, in write
KeyError: u'OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html'

ePub not changed after 0.38 seconds

Edit: unchecking "Remove unmanifested files from ePub" gets rid of this error and it finishes successfully.
Reply 

#1247  lumpynose 07-14-2019, 05:33 PM
Quote FulciLives
Thank you for this Caliber plugin.

I had an epub with an embedded font that I hated. I used this plugin to remove it.

So simple yet so life-changing. I can read the book now!

P.S.
To be clear, the Caliber reader would not let me change the type of font until I did this.
The next time another thing you could try is using CSS unset; the Calibre reader honors this in my tests. In Calibre's Preferences I've added the following to the Conversion, Common Options, Look & Feel, Styling, Extra CSS, and then I have Append extra CSS checked for the plugin.

Code
p { margin-top: 0em; margin-bottom: 0em; text-align: left; text-indent: 1.5em;
}
body { font-family: unset; line-height: 1.2;
}
The font-family:unset is the only one that matters in your case; the other stuff is my preferences.
Reply 

#1248  Rev. Bob 07-16-2019, 06:35 AM
Quote lumpynose
Something about write and KeyError at the bottom of the log file.

Edit: unchecking "Remove unmanifested files from ePub" gets rid of this error and it finishes successfully.
Let’s take a look...

Spoiler Warning below






(Chopped for clarity…)

Looking for unmanifested files
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html

Applying smarten punctuation
Roy Blakeley in the Haunted Camp - ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 81, in process_book
File "calibre_plugins.modify_epub.container", line 680, in write
KeyError: u'OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html'

ePub not changed after 0.38 seconds

My instinct on this one is to look at the odd filename. I suspect the @ symbols may be causing trouble, even though neither Windows nor MacOS forbids them. Another possibility could be the sequence of smartening vs. removal; the log shows that the plugin is trying to apply both functions to the file. If it’s getting deleted before it gets smartened, that could definitely complicate matters.

Could you see if you get the same error when only trying to remove unmanifested files?
Reply 

 « First  « Prev   (125/125)
Today's Posts | Search this Thread | Login | Register