Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2013, 10:22 AM   #511
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by DoctorOhh View Post
I always seem to learn new things about calibre.
Just keeping track of Calibre changes is a full time job.
And Tweaks get tweaked from time to time. Besides New tweaks, Some of the old ones get additional options.

Kovid
Could the Tweak description line include a date of the Option description block change (not to be confused with a user option value edit), so we can easily spot our Newer options
theducks is offline   Reply With Quote
Old 09-06-2013, 11:23 AM   #512
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,097
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by theducks View Post
Kovid
Could the Tweak description line include a date of the Option description block change (not to be confused with a user option value edit), so we can easily spot our Newer options
Not really, that's rather a lot of work to develop to maintain. And just think of all the nice surprises you would miss out on when browsing the forums
kovidgoyal is online now   Reply With Quote
Old 09-06-2013, 10:04 PM   #513
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by kovidgoyal View Post
Not really, that's rather a lot of work to develop to maintain. And just think of all the nice surprises you would miss out on when browsing the forums
theducks is offline   Reply With Quote
Old 09-07-2013, 06:08 AM   #514
mob
Junior Member
mob began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2010
Device: IPad
Quote:
Originally Posted by kiwidude View Post
@mob - just see Man Eating Duck's post above regarding Preferences -> Tweaks.

The category of the tweak to change is "Save original file when converting/polishing from same format tos...". You will see "save_original_format_when_polishing" which as per the release notes for this plugin is what the plugin checks for - set this to False, restart calibre and you will not get the ORIGINAL_EPUB entries appearing.
Kiwidude, I saw this post.... Dont mean to be fuzzy but only would like to disable the generation of Original_Epub in "Modify Epub" plug-in as the it works perfectly... As it worked that way in previous versions, thought it might be easy to re-introduce...

If I were to disable the generation globally, I would get into all sorts of trouble when doing the "normal" epub-to-epub conversation, where more often than not (at least for me) the result of the new epub is worse than the original.... Again, this would be nice to have but is really not necessary...

Really appreciate that you take the time to reply to all our queries / requests!

Mop
mob is offline   Reply With Quote
Old 09-07-2013, 06:38 AM   #515
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,228
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@mob - read the comments for the tweak. It *only* applies to the "Polish Books" feature and now also this Modify ePub plugin. If you look at the screen you will see a completely independent tweak which applies for doing conversions. So long as you only set the one I mentioned above of "save_original_format_when_polishing" to false then you will be fine.
kiwidude is offline   Reply With Quote
Old 09-08-2013, 07:34 PM   #516
mob
Junior Member
mob began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2010
Device: IPad
@kiwidude - thanks a lot for clarification! Will give it a whirl...

Cheers / Mop
mob is offline   Reply With Quote
Old 09-12-2013, 10:42 AM   #517
Ashfall
Junior Member
Ashfall began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2013
Device: Kobo Aura HD
I've only been using this plugin for about a month and have found it extremely useful. I have one feature request though, and haven't been able to find it in this thread.

Would it be possible to add a section to check reference types in the content.opf? I know thumbimagestd gets removed when replacing a cover, and it also seems to get removed when removing unused images. But what about fixing references such as type="copyright" (fix to type="copyright-page") and type="Start" (fix to type="text"). Or just removing them when they are completely unnecessary.
Ashfall is offline   Reply With Quote
Old 09-13-2013, 11:49 PM   #518
Ealdwulf
Junior Member
Ealdwulf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2012
Device: Nook
I've been using this plug-in for a while now and haven't had any issues until tonight. I was looking at the metadata jacket and wanted to add taht to some of my files that I was going to provide a friend of mine with. So I ran it on a couple of files with no problems, saw what it looked like, and then edited the template.xhtml and stylesheet.css files to match what I wanted. Now when I run modify epub with the option to add/replace the jacket it provides an error and will not update the file.

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

Modify ePubs
Logfile for book ID 117 (The Assassin and the Pirate Lord / Sarah J. Maas)
117
  Modifying:  D:\- - ! Temp Files ! - -\Temp Files\calibre_ykft0n\14kqyk_modify_epub\117.epub
Parsing xml file: ops/9781599909547.opf
Parsing xml file: ops/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
	Looking for broken links in the NCX
	Looking for Adobe xpgt files and links to remove
	Looking for Adobe DRM meta tags to remove
	Adding or updating jacket
The Assassin and the Pirate Lord - ERROR: Traceback (most recent call last):
  File "calibre_plugins.modify_epub.modify", line 73, in process_book
  File "calibre_plugins.modify_epub.modify", line 155, in _process_book
  File "calibre_plugins.modify_epub.jacket", line 16, in add_replace_jacket
  File "site-packages\calibre\ebooks\oeb\transforms\jacket.py", line 259, in render_jacket
  File "site-packages\calibre\ebooks\oeb\transforms\jacket.py", line 221, in generate_html
KeyError: u'_subseries'

ePub not changed after 0.25 seconds
Does the plug-in not allow for these files to be edited or is this a bug in the plugin?
Ealdwulf is offline   Reply With Quote
Old 09-14-2013, 05:34 AM   #519
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,228
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Eadwulf - this is calling calibre code, so I am willing to bet that doing a Polish or ePub conversion will give you the same error. I think Kovid has actually changed that file with the latest code so looks like it was something he may have fixed for the next release?
kiwidude is offline   Reply With Quote
Old 09-14-2013, 06:14 AM   #520
Ealdwulf
Junior Member
Ealdwulf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2012
Device: Nook
Quote:
Originally Posted by kiwidude View Post
@Eadwulf - this is calling calibre code, so I am willing to bet that doing a Polish or ePub conversion will give you the same error. I think Kovid has actually changed that file with the latest code so looks like it was something he may have fixed for the next release?
Thanks for the quick response on this. I had never used ebook-polish before, so hadn't even thought to check it. I just got through doing a test and sure enough, it gave the same errors

Using this, I was able to figure out that for some reason it does not like using one of my custom columns in the metadata jacket, specifically a secondary column that provides series like information. Guess I need to go file a bug report with Kovid on this one.
Ealdwulf is offline   Reply With Quote
Old 09-21-2013, 05:49 PM   #521
Japes
Addict
Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.Japes ought to be getting tired of karma fortunes by now.
 
Posts: 301
Karma: 1033852
Join Date: Jun 2011
Device: Sony PRS-350,Sony PRS-950,Pocketbook 360+,B&N Nook Simple Touch Reader
Question. When modifying an epub to insert a description at the start of the book, and then converting to mobi, for whatever reason, the description is gone when I open it in my Kindle. Is there a way around this?
Japes is offline   Reply With Quote
Old 09-21-2013, 07:59 PM   #522
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 629
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
This is confusing to answer because MOBI is potentially any one of four different file structures using the same extension.

To over-simply things (assuming I'm remembering correctly), there is no place within the MOBI schema to place a description/comment field. So effectively, when calibre updates the MOBI ebook file, the description is ignored. Calibre keeps the info within it's own set of files, but has no way to include it within the MOBI format - it would be considered a corrupted file.

Having said that, you can sidestep the issue entirely by using the AZW3 format (which is one of the four file schemes hiding in a MOBI), which I believe does support a description/comment field. Assuming your device can use that format.

You probably need to change your Output settings and... something else having to do with the priority order of output files. If you don't change both, I think you still get a MOBI. Both are in Preferences, but I'm not exactly sure where ATM.
Sabardeyn is offline   Reply With Quote
Old 09-22-2013, 03:29 AM   #523
Man Eating Duck
Addict
Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.
 
Posts: 253
Karma: 69784
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
@Japes: did you mean the description field in calibre, or a description inserted as part of the content of the epub? I understood your post to mean the latter, and in that case, it might be malformed xhtml in that particular file. Open a copy of the epub in Sigil, let it fix any errors, and run validation. I've had entire chapters disappear from a commercial epub on conversion due to bad xhtml.

If it is indeed the description field in the metadata, listen to Sabardeyn instead

Edit: my brain is obviously not in proper working order this fine morning. Modify Epub does probably not generate invalid xhtml, so scratch that. Still, an inspection in Sigil might uncover other problems with the epub itself.

Last edited by Man Eating Duck; 09-22-2013 at 03:36 AM.
Man Eating Duck is offline   Reply With Quote
Old 10-10-2013, 12:55 PM   #524
@Escape
Junior Member
@Escape began at the beginning.
 
@Escape's Avatar
 
Posts: 3
Karma: 10
Join Date: Oct 2013
Location: Belgium
Device: Sony PRS-T3
@kiwidude

My Calibre version is 0.9.0

I have install the last version of the plug-in "Modify Epub" and I receive now the message

calibre, version 0.9.0 (win32, isfrozen: True)
Failed to modify ePubs: Échoué: Modify ePubs

Modify ePubs
Python function terminated unexpectedly
cannot import name IDPF_OBFUSCATION (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 186, in main
File "site-packages\calibre\utils\ipc\worker.py", line 130, in arbitrary_n
File "importlib\__init__.py", line 37, in import_module
File "site-packages\calibre\customize\zipplugin.py", line 150, in load_module
File "calibre_plugins.modify_epub.jobs", line 14, in <module>
File "site-packages\calibre\customize\zipplugin.py", line 150, in load_module
File "calibre_plugins.modify_epub.modify", line 22, in <module>
File "site-packages\calibre\customize\zipplugin.py", line 150, in load_module
File "calibre_plugins.modify_epub.container", line 19, in <module>
ImportError: cannot import name IDPF_OBFUSCATION

I have search a previous version but not found :-(

Thanks in advance.
@Escape is offline   Reply With Quote
Old 10-10-2013, 01:11 PM   #525
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Calibre is now at 1.5
is there a reason not to update?

Many PI needed fine tuning when the backend code changed, the needed calibre level requirements may have been missed and you got a version you should not have.
Kiwidude or Kovid will need to answer that.
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 232 10-09-2014 12:38 AM
[GUI Plugin] Quality Check kiwidude Plugins 785 10-06-2014 05:25 PM
[GUI Plugin] Manage Series kiwidude Plugins 113 08-01-2014 08:18 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


All times are GMT -4. The time now is 09:13 AM.


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