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 07-19-2016, 11:14 PM   #586
MCBastos
Member
MCBastos began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2012
Device: Nexus 4
Exclamation Text parsing bug

OK, I just noticed an odd bug with the way Generate Cover processes the data fields:
If there's an "&" character, it treats it as if it were " & " -- that is, it inserts spaces before and after the "&" character.
Which results in ugly extra spaces whenever it runs into an "&" -- like, say, for a book with two authors.
Partial workaround: manually edit the text in the "content" tab so "&" is not surrounded by spaces -- that reduces the double space to single spaces. AFAIK, however, there is no way to have the "&" surrounded by no spaces at all.

EDIT: Further experimenting revealed a few more details -- on initial load of the plugin, it performs as expected (no extra spaces). But if you change any of a variety of parameters (font size, which fields should appear on the cover etc.) then the extra spaces suddenly appear.

Last edited by MCBastos; 07-19-2016 at 11:35 PM.
MCBastos is offline   Reply With Quote
Old 07-20-2016, 07:14 AM   #587
MerlinMama
Addict
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 239
Karma: 32434
Join Date: May 2014
Location: Canada
Device: Kobo Glo HD
I coincidentally had a cover with '&' this morning and paid attention. It should be noted that my '&' was in the title and no extra spaces appeared. I modified my author to have '&' and the extra spaces did indeed appear when I removed my custom text as a test.
MerlinMama is offline   Reply With Quote
Old 07-25-2016, 03:56 PM   #588
Tanjamuse
Guru
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 719
Karma: 5258
Join Date: Jan 2014
Device: Samsung Galaxy Tab 3
Is the stroke option back?
Tanjamuse is offline   Reply With Quote
Old 07-29-2016, 11:46 AM   #589
redorav
Junior Member
redorav began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: none
Powerpoint Cover

Hi,

I was wondering if this plugin has the ability to generate covers from powerpoint files?

I'm building a library of technical presentations and many of them are in ppt or pptx.

What I do currently is convert to pdf and extract from there but it is quite cumbersome.

I'd like to automatically generate it from the calibre dropdown.

Thanks!
redorav is offline   Reply With Quote
Old 07-29-2016, 07:17 PM   #590
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 7,478
Karma: 6867415
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by redorav View Post
Hi,

I was wondering if this plugin has the ability to generate covers from powerpoint files?

I'm building a library of technical presentations and many of them are in ppt or pptx.

What I do currently is convert to pdf and extract from there but it is quite cumbersome.

I'd like to automatically generate it from the calibre dropdown.

Thanks!
The short answer is no - i.e. the plugin can't generate covers from a Powerpoint file, in fact the plugin can't generate covers from anything. 'Generate Covers' is a bit of a misnomer - its more like a 'Cover Creator'.

This may be easier than creating a PDF ==>> [PDF] Export PowerPoint slides as JPEG - Clark University

Just drop the resultant JPG into the Book Details (right) sidebar.

BR
BetterRed is offline   Reply With Quote
Old 07-30-2016, 12:26 AM   #591
MCBastos
Member
MCBastos began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2012
Device: Nexus 4
OK, status of 1.5.20

From what I was able to notice/test:

- Font strokes are not back yet (if they ever will)
- The "&" parsing bug seems to have been fixed -- I wasn't able to reproduce it anymore
- The "blank lines" bug still remains
- The "can't remove image if it's set to be stretched as background" remains (but this is really unimportant, since it doesn't actually affect the ability to create covers)
MCBastos is offline   Reply With Quote
Old 08-01-2016, 08:36 AM   #592
redorav
Junior Member
redorav began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: none
Quote:
Originally Posted by BetterRed View Post
The short answer is no - i.e. the plugin can't generate covers from a Powerpoint file, in fact the plugin can't generate covers from anything. 'Generate Covers' is a bit of a misnomer - its more like a 'Cover Creator'.

This may be easier than creating a PDF ==>> [PDF] Export PowerPoint slides as JPEG - Clark University

Just drop the resultant JPG into the Book Details (right) sidebar.

BR
Thanks for the suggestion, it's every bit as cumbersome though... I guess I need to ask the main dev then.

Thank you!
redorav is offline   Reply With Quote
Old 09-03-2016, 02:22 PM   #593
MCBastos
Member
MCBastos began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2012
Device: Nexus 4
Is there anywhere I can download an old version (that is, one compatible with Calibre 2.56) of Generate Cover?
I'm using the current versions in my day-to-day process, but I thought that, disk space being ridiculously cheap the way it is, I could keep an old version of Calibre Portable with the old version of the plugin for the odd occasion I really want fonts with outlines.
MCBastos is offline   Reply With Quote
Old 09-04-2016, 04:04 AM   #594
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,148
Karma: 82960001
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
No, usually plugin developers only post the latest version of the plugin.

Some plugin developers use a version control system to track the changes in their plugin, from which you can derive old versions... but this plugin doesn't appear to be on e.g. GitHub...

Perhaps someone has an old copy saved somewhere.
eschwartz is offline   Reply With Quote
Old 09-04-2016, 01:57 PM   #595
theducks
Well trained by Cats
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: 19,633
Karma: 19029586
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
You can copy the plugin file from a OLD Backup of of the Calibre config folder:plugins;

Use Preference:Plugins: Add from file button (at bottom) to install it
theducks is offline   Reply With Quote
Old 09-04-2016, 06:59 PM   #596
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 7,478
Karma: 6867415
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by theducks View Post
You can copy the plugin file from a OLD Backup of of the Calibre config folderlugins;

Use Preference:Plugins: Add from file button (at bottom) to install it
An awful lot of people don't even backup their libraries, even fewer backup their configuration folder, and I doubt many of those would do version backups. I know I don't, I keep the old ones for 60 days, after which they're automatically purged.

BR
BetterRed is offline   Reply With Quote
Old 09-09-2016, 04:44 PM   #597
scarlettruin
Enthusiast
scarlettruin began at the beginning.
 
Posts: 46
Karma: 10
Join Date: May 2014
Device: Nook (Simple Touch) and Samsung Galaxy Tab 3.0
Problem - every time i try to use this plugin, I get the following error: calibre, version 2.46.0
ERROR: Unhandled exception: <b>TypeError</b>:generate_cover_for_book() got an unexpected keyword argument 'db'

calibre 2.46 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Goodreads && View Manager && Quality Check && Open With && Read MP3 AudioBook metadata && Derive_Genres && Save To Format && Extract ISBN && Goodreads Sync && DOC Input && Author Book Count && Count Pages && Generate Cover && EpubMerge && User Category && FanFicFare
Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 65, in _generate_cover
File "calibre_plugins.generate_cover.dialogs", line 1377, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1669, in display_preview
TypeError: generate_cover_for_book() got an unexpected keyword argument 'db'


Anyone know what to do please?
scarlettruin is offline   Reply With Quote
Old 09-09-2016, 05:07 PM   #598
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 2,738
Karma: 545154
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage, Kindle 3g, Aldiko, FBReader
Quote:
Originally Posted by scarlettruin View Post
Problem - every time i try to use this plugin, I get the following error: calibre, version 2.46.0
...

Anyone know what to do please?
I'd start with updating Calibre. Current is 2.67--you're 21 versions behind.
JimmXinu is offline   Reply With Quote
Old 09-09-2016, 05:15 PM   #599
scarlettruin
Enthusiast
scarlettruin began at the beginning.
 
Posts: 46
Karma: 10
Join Date: May 2014
Device: Nook (Simple Touch) and Samsung Galaxy Tab 3.0
Quote:
Originally Posted by JimmXinu View Post
I'd start with updating Calibre. Current is 2.67--you're 21 versions behind.

Ooops! That would help, wouldn't it!
Thanks for pointing it out!
scarlettruin 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] Goodreads Sync kiwidude Plugins 904 11-25-2016 09:39 PM
[GUI Plugin] Open With kiwidude Plugins 312 11-10-2016 08:51 AM
[GUI Plugin] User Category kiwidude Plugins 56 10-14-2016 07:09 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 32 09-13-2014 11:34 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 9 08-12-2014 04:36 AM


All times are GMT -4. The time now is 08:44 PM.


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