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 10-10-2013, 01:15 PM   #526
@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
Quote:
Originally Posted by theducks View Post
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.
I know but in first post => Special Notes: Requires Calibre 0.8.53 or later
@Escape is offline   Reply With Quote
Old 10-10-2013, 01:42 PM   #527
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,846
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by @Escape View Post
I know but in first post => Special Notes: Requires Calibre 0.8.53 or later
That is why I said the requirement update may have been missed. A lot of this is process all done by hand. (Don't try and count my typos: Boundary overflow)

You did no wrong move.
theducks is offline   Reply With Quote
Old 10-10-2013, 01:54 PM   #528
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,665
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Rev. Bob View Post
Merely importing a book into Calibre adds the metadata. As I understand it, that's a prerequisite to being able to use Calibre's TOC Editor on it...

EDIT: As for an example, I just added an EPUB into my Calibre library, did nothing to it, and used Save to Disk to make a copy. It made the following OPF changes that I consider "dirtying it up":
  • Removed the BOM from the file, making it an improper UTF-8 file.
  • Moved the title below the author, removing the indentation in the process.
  • Modified the date/time.
  • Removed the (empty) subject field.
  • Inserted Calibre-specific metadata: title_sort, user_categories, and author_link_map (also with botched indentation)
  • Inserted a contributor credit for itself.
  • Inserted a second, Calibre-specific, identifier field.
You may be fine with those changes. I am not.
Save to disk is what is causing the conversion to happen and that is a USER error in this case. You need to go into Preferences and then Saving to disk. Uncheck all of the options except Show files in file browser after saving to disk. That will prevent the metadata update conversion.

I do so wish Calibre's default options for Saving to disk would be not to do any metadata updating and that in a new version, that the Saving to disk options get changed this way. People can change it back if they want.
JSWolf is offline   Reply With Quote
Old 10-10-2013, 02:06 PM   #529
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,665
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by @Escape View Post
@kiwidude

My Calibre version is 0.9.0
It's not a good idea to report errors based on an obsolete version of Calibre. Update to the latest version and then try Modify ePub again and if it then fails, report it.
JSWolf is offline   Reply With Quote
Old 10-10-2013, 03:15 PM   #530
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,846
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I suspect this may be a minimum version required error
BUT
I only us a few setting/options

We need a screenshot (of the choices) of the configuration were being used when the error pops.
theducks is offline   Reply With Quote
Old 10-11-2013, 04:03 AM   #531
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
As the guys have said it is most likely my fault for not updating the minimum calibre version at some point - either Kovid moved some code around or I added a feature relying on a later version. There is absolutely no reason not to be using the latest calibre code in my opinion (1.x rocks), and your issue should disappear. When I next work on this plugin I will bump the minimum version...
kiwidude is offline   Reply With Quote
Old 10-11-2013, 06:31 AM   #532
@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
Thanks for your response. I have found a previous version 1.3.7 and all is OK now :-)
@Escape is offline   Reply With Quote
Old 10-13-2013, 09:02 PM   #533
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,665
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by @Escape View Post
Thanks for your response. I have found a previous version 1.3.7 and all is OK now :-)
Why would you update to an old obsolete version of the plugin when it's just so easy to update Calibre and then be able to use the latest and greatest version of the plugin?
JSWolf is offline   Reply With Quote
Old 10-15-2013, 12:41 PM   #534
docxtester
Junior Member
docxtester began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2013
Device: kindle
Bug with files that contain spaces

Hello

I have noticed the following bug of this plugin:
When a file name inside an EPUB contains spaces, f.e. "file name.png"
and it is listed in a manifest as "file%20name.png"
It gets qualified as unused and gets deleted from an EPUB if remove unmafisted or unused files option is used.
The same happens if a file with such name is used in any HTML file inside an EPUB.
The same problem exists when any file name contains non ANSI characters and those characters are translated inside manifest according to URL translation rules.

Be careful with those options now and I would appreciate a fix
docxtester is offline   Reply With Quote
Old 11-18-2013, 04:12 AM   #535
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 891
Karma: 1642544
Join Date: Sep 2008
Device: Sony PRS-505 & PRS-650, Kobo Glo & Aura HD
Suggestion for more advanced Smarten punctuation options

I posted about this last year, so apologies for a bit of repetition here. I really like this plug-in, except I find the "Smarten punctuation" a bit of a blunt tool, so I have created my own version of the code in the plug-in:

Code:
        def smarten_punctuation_for_page(html):
            preprocessor = HeuristicProcessor(None, self.log)
            start = 'calibre-smartypants-'+str(uuid4())
            stop = 'calibre-smartypants-'+str(uuid4())
            html = html.replace('<!--', start)
            html = html.replace('-->', stop)
            html = preprocessor.fix_nbsp_indents(html)
            # Do not use Calibre smartyPants.
            # html = smartyPants(html)
            html = html.replace(start, '<!--')
            html = html.replace(stop, '-->')
            # convert ellipsis to entities to prevent wrapping
            html = re.sub(r'(?u)(?<=\w)\s?(\.\s?){2}\.', '&hellip;', html)
            # convert double dashes to em-dash
            html = re.sub(r'\s--\s', u'\u2014', html)
            # Convert short em-dash to em-dash.
            html = re.sub(u'\u2013', u'\u2014', html)
            # Convert space, hyphen, space to em-dash.
            html = re.sub(r'\s-\s', u'\u2014', html)
            # Convert punctuation, hyphen to em-dash.
            html = re.sub(r'([\'|"|\u2018|\u201C])-(\w)', r'\1\u2014\2', html)
            # Convert hyphen, punctuation to em-dash.
            html = re.sub(r'(\w)-([\'|"|\u2019|\u201D|?|!|,|\.])', r'\1\u2014\2', html)
            # Convert space, em-dash, space to em-dash.
            html = re.sub(r'\s*\u2014\s*', u'\u2014', html)
            return substitute_entites(html)
You can see I do not use the smartypants within Calibre, and I have added some fixes for em-dash. Perhaps there could be an "Advanced" options in the plug-in UI to give the user finer control over exactly what the smarten punctuation does?
ShellShock is offline   Reply With Quote
Old 12-27-2013, 04:10 PM   #536
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,853
Karma: 1163098
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
i cannot puzzle out how this plug in decides what dimensions to use when it does "insert cover image"

I can find an 600 x 800 image via calibre cover search but when that gets put into the epub via this plugin, then the generated code is image height="751" width="563"
in another test, source of 600 x 895 goes in as image height="751" width="489"
I've experimented with various sized cover, and with 2 pass remove cover followed by inset cover, but I cannot suss out how the cover dimensions as displayed in calibre edit metadata screen are translated into image dimensions code placed in the epub.

it is bugging me a little now as I have a sony T2 and on its display of recent books on its home page, my cover images are raggedy. ( they are neatly rescaled on the actual bookshelf pages though). did not happen with my previous prs-650 so I never focussed on this issue before.

I'd really like to use some combo of calibre+ this plug in to get 600 x 800 cover images ( or as close to that as is feasible ) , so they all look the same size on the sony T2 recent books display, rather than display with different heights .any suggestions ?
cybmole is offline   Reply With Quote
Old 12-27-2013, 04:26 PM   #537
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
Cybmole, it is all to do with your general defaults, and what profile you have chosen for your device. There are settings to do with proportions if I recall correctly if you go to ePub defaults. And the overall dimensions/rescaling comes from what device you have chosen, pick tablet for no rescaling at all (but be aware that mobi conversions using % for margins etc will be completely screwed up).
kiwidude is offline   Reply With Quote
Old 12-27-2013, 11:16 PM   #538
Rev. Bob
Guru
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 909
Karma: 4080124
Join Date: Feb 2013
Device: Kobo Glo, Kindle Touch
Quote:
Originally Posted by cybmole View Post
the generated code is image height="751" width="563"
in another test, source of 600 x 895 goes in as image height="751" width="489"
Quote:
Originally Posted by cybmole
I'd really like to use some combo of calibre+ this plug in to get 600 x 800 cover images ( or as close to that as is feasible ) , so they all look the same size on the sony T2 recent books display, rather than display with different heights .any suggestions ?
Both of your examples show the same height, with different widths to maintain the proper aspect ratios. If you want images that are all the same size in both dimensions, you can't just ignore the aspect ratio...
Rev. Bob is online now   Reply With Quote
Old 12-28-2013, 01:09 AM   #539
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,853
Karma: 1163098
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
thanks guys, that makes sense. the sony T2 reader does something strange when it generates recently added thumbnails as I see different heights there, not just different widths , but without being able to search for T2, that is going to be a pain totrack down. I guess that i can live with it. it may be using cover images sent separately by calibre, not those embedded in the books.

if I am understand the previous answers correctly, there is a dependency between this plug in and the epub output profileselected in calibre, so ( to tlnk to my other thread query) changing my output profile to T3 ( more pixels) will affect the code generated by plugin insert image ?
cybmole is offline   Reply With Quote
Old 12-31-2013, 01:48 PM   #540
jcloggins
Junior Member
jcloggins began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Sony
preserveAspectRatio

Useful tool but I have had a problem with the preserveAspectRatio property of the svg element when replacing the cover image.

Setting the value to "none" means that the cover scales to fill the entire window. The result is a very distorted cover image when the display is in landscape mode.

My usual fix is to edit the cover page and delete the property, which makes the image scale properly.
jcloggins 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 05:52 AM.


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