10-06-2014, 05:05 PM | #496 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You could rename 'generate_cover.json' to something else and see if that works.
You will lose all cover cover template settings ore you can carefully edit the bad 'name' value to choose one that exists |
10-06-2014, 05:59 PM | #497 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: Marvin, Nook Glow
|
Better Red.... Thanks for your reply. I did find that my font book had most of the fonts disabled (no idea why). I enabled them all, but it still didn't fix my problem. How do I find out what font Generate Cover is looking for without being able to get into the plugin? This is probably obvious, but I'm not seeing it. Thank you for any help.
|
Advert | |
|
10-06-2014, 06:15 PM | #498 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It can be opened with Notepad(++) |
|
10-07-2014, 12:17 AM | #499 | |
null operator (he/him)
Posts: 20,458
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you've only got a few pro-forma covers it may be easier to recreate them, you'll find the images in the %CALIBRE_CONFIG_DIRECTORY%\resources\images\genera te_cover folder. Otherwise once you know the PI is working then you could edit the original json file to replace the font names with something 'boring' like Times New Roman. You'd need to change the value of "name", from say Freestyle Script to Times New Roman, in lines such as these: Code:
"fonts": { "title": { "size": 42, "name": "Freestyle Script", "align": "center" }, "series": { "size": 18, "name": "Freestyle Script", "align": "center" }, "custom": { "size": 18, "name": "Forte", "align": "center" }, "author": { "size": 36, "name": "Freestyle Script", "align": "center" } }, Last edited by BetterRed; 10-07-2014 at 12:20 AM. |
|
10-08-2014, 11:04 AM | #500 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
It would be really nice if you could set conditions for the different covers like with icons.
|
Advert | |
|
10-09-2014, 08:18 PM | #501 | |
Plugin Developer
Posts: 6,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I see the same issue with GC running in a fresh portable install. The relevant code in GC is: Code:
... from calibre.utils.config import tweaks ... def get_font_or_default(font_name): default_font = tweaks['generate_cover_title_font'] ... Code:
... from calibre.utils.config import tweaks ... def get_font_or_default(font_name): default_font = tweaks.get('generate_cover_title_font',None) ... If I can a confirmation or two of the problem and that this fixes it, I'll ask Kovid to update the release version. Last edited by JimmXinu; 04-03-2015 at 04:46 PM. Reason: Remove obsolete test versions - replaced by newer test or released version. |
|
10-10-2014, 02:44 AM | #502 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Sep 2013
Device: Samsung Galaxy Note 10.1 2014 ed. with Moon Reader+ and Google Books.
|
|
10-10-2014, 06:47 AM | #503 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: Marvin, Nook Glow
|
I too can confirm that the new version fixed my problem. I can stop banging my head against the wall now. I appreciate all the help.
|
12-22-2014, 07:37 PM | #504 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2014
Device: Nook HD & iPod Touch
|
Problem with Custom text
Hi folks ... I know I'm probably doing something wrong, but I'm having a slight problem with the custom test.
Using FDDL, I've generated a custom column for Category (i.e. Fandom) for what JimmXinu generates for the metadata. When I try and put that value ({Category}) into the custom text of GC, I get an error on the preview "GC template error Value: unknown field category"). I can put other values in there (e.g. {publisher} to get the site name, {pubdate} to get the publishing date, etc.). Like I said, I'm pretty sure I'm doing something wrong but for the life of me I cannot figure out what Thanks in advance for any assistance |
12-22-2014, 08:12 PM | #505 | |
Plugin Developer
Posts: 6,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Hover your mouse of the column header for that column and it will pop a tooltip that tells you the lookup/search. |
|
01-24-2015, 10:47 PM | #506 |
Mia
Posts: 8
Karma: 10
Join Date: Jan 2015
Device: iPad Air 2, Marvin, Calibre
|
Much appreciation for @kiwidude for creating this plugin and spending time to improve it and taking requests for adding more features. I've been lurking for awhile and seeing all the wonderful feedback and assistance and free advice and support in the community. Also kudos to @JimmXinu for continuing to tweek and assisting with bugs and the development with FFDL without which my e-reader would be empty.
I've been attempting to produce slightly more advance covers and have ran into a little problem (a few people have mentioned similar problems on this forum but a solution has yet to be found). I'm trying to include a summary on my cover, so in addition to title, author, series, in the custom text column, I have: Summary: {comments}. However, each time, the <html tags> shows up and when I try using regular expressions to convert, it fails. I admit I have a very novel understanding of Calibre's template language so my ignorance might be part of the problem, but I would really appreciate some advice or assistance. Thank you. |
01-25-2015, 12:08 AM | #507 |
Plugin Developer
Posts: 6,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Well, after that bit of, let's say ego stroking, I looked into it a bit.
It took me a few tries figure out that the regex function in templates *doesn't* want string delimiters (" or ') around it's args. This seems to work for me: Code:
{comments:re(<[^>]+>, )} |
01-25-2015, 07:28 PM | #508 |
Junior Member
Posts: 6
Karma: 10
Join Date: Aug 2009
Device: Sony PRS 700
|
I'm trying to establish a workflow to generate a PDF cover from page X (default page 1) of the file for groups of files. Currently, the ability exists in Calibre to edit metadata, select the cover button, and choose the page from several rendered options. It's slow, however, so it would be nice to point a script at a library to have it complete the job.
Is there a way to do it with this plugin? |
01-25-2015, 11:08 PM | #509 | |
null operator (he/him)
Posts: 20,458
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I don't think there are any PIs that extract data from format files, it's all done by the core product. If I were you I would search for something like "extract first image from PDF" - I suspect its doable with imagemagik or exiftool. BR |
|
01-26-2015, 01:21 AM | #510 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Or, depending on what pdf-reader you usess.
Just extract the first page as an image directly? I know it can be done in Adobe Reader Pro |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] User Category | kiwidude | Plugins | 123 | 03-16-2024 11:59 PM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 402 | 03-16-2024 11:44 PM |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1713 | 03-16-2024 11:37 PM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 24 | 03-16-2024 11:06 PM |