10-10-2013, 01:15 PM | #526 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2013
Location: Belgium
Device: Sony PRS-T3
|
I know but in first post => Special Notes: Requires Calibre 0.8.53 or later
|
10-10-2013, 01:42 PM | #527 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
10-10-2013, 01:54 PM | #528 | |
Resident Curmudgeon
Posts: 73,866
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
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. |
|
10-10-2013, 02:06 PM | #529 |
Resident Curmudgeon
Posts: 73,866
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
10-10-2013, 03:15 PM | #530 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
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. |
Advert | |
|
10-11-2013, 04:03 AM | #531 |
Calibre Plugins Developer
Posts: 4,635
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
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...
|
10-11-2013, 06:31 AM | #532 |
Junior Member
Posts: 4
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 :-)
|
10-13-2013, 09:02 PM | #533 |
Resident Curmudgeon
Posts: 73,866
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
10-15-2013, 12:41 PM | #534 |
Junior Member
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 |
11-18-2013, 04:12 AM | #535 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
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}\.', '…', 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) |
12-27-2013, 04:10 PM | #536 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 ? |
12-27-2013, 04:26 PM | #537 |
Calibre Plugins Developer
Posts: 4,635
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
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).
|
12-27-2013, 11:16 PM | #538 | ||
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Quote:
|
||
12-28-2013, 01:09 AM | #539 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 ? |
12-31-2013, 01:48 PM | #540 |
Junior Member
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. |
Tags |
modify epub |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1183 | Today 12:28 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 166 | 02-13-2024 11:31 AM |
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 |