Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-08-2019, 12:08 AM   #1
GloverEggs
Member
GloverEggs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2017
Device: Calibre
Customizing Calibre Cover Generator

I apologize if this is already in these forums. I have been searching both here and online for over 3 hours and have had no luck in finding an answer.

So, I want to change/add to the text shown on the Calibre generated covers. I can get the text to work if I use the "standard" fields such as title, author, languages, publisher, etc. I cannot get anything to work if I try to use custom columns/fields.

For example, if I put in {title:lowercase()} it works. If I put in {#fandom:lowercase()} or {fandom:lowercase()} it comes up with EXCEPTION: Value: unknown field fandom. This would lead me to believe that I need to do something different for a custom field, but I have absolutely no clue what I need to do.

Click image for larger version

Name:	Untitled.png
Views:	689
Size:	27.7 KB
ID:	175444

(#fandom was just an example. I have tried all of my custom column names in case type of field mattered. Every field gave the same error.)

I know a little java programming, but nothing in python. Anything you guys can help with is appreciated. Thanks!
GloverEggs is offline   Reply With Quote
Old 12-08-2019, 02:39 AM   #2
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
Quote:
Originally Posted by GloverEggs View Post
EXCEPTION: Value: unknown field fandom
Yes, that appears when you are designing the cover.
But don't pay attention, because when you generate the cover, it will work well.
jbacelar is offline   Reply With Quote
Advert
Old 12-08-2019, 03:22 PM   #3
GloverEggs
Member
GloverEggs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2017
Device: Calibre
No it doesn't. The cover shows exactly the same thing that the cover generation settings shows.

Click image for larger version

Name:	cover.jpg
Views:	576
Size:	77.5 KB
ID:	175458

Click image for larger version

Name:	Settings.png
Views:	631
Size:	13.6 KB
ID:	175459

I wondered the same thing and tried many times hoping that it wasn't really an error.
GloverEggs is offline   Reply With Quote
Old 12-08-2019, 04:10 PM   #4
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by GloverEggs View Post
No it doesn't. The cover shows exactly the same thing that the cover generation settings shows.

Attachment 175458

Attachment 175459

I wondered the same thing and tried many times hoping that it wasn't really an error.
I assume you actually have a #forum custom column and that wasn't supposed to be #fandom?
ilovejedd is offline   Reply With Quote
Old 12-08-2019, 05:14 PM   #5
GloverEggs
Member
GloverEggs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2017
Device: Calibre
Okay, yeah that test this morning was a typo. I fixed the typo to what I had used last night (I had saved it in a text file) and now it works. I'm pulling my hair out because I did this yesterday and got an error and now the $%^ thing works. Well, don't get me wrong, I'm glad it is working, but I'm going nuts as to why it didn't yesterday.

Regardless, thank you.

Is there anyway to pull in a field that is an active url link without it showing all of the html coding when it prints on the cover?
Click image for larger version

Name:	Example.png
Views:	355
Size:	149.5 KB
ID:	175460

I have a field that is long text, html where I store the link of the file. The issue is that many of my items are stored on more than one website. So I have a couple of these fields. I want to be able to put the links on the cover.

Am I chasing something that can't be done? I really want it to just show the link and nothing else. While I don't care if the text on the cover is an active link, I want the field to be a link because I show it in the right panel of the Calibre screen.
GloverEggs is offline   Reply With Quote
Advert
Old 12-08-2019, 05:31 PM   #6
BetterRed
null operator (he/him)
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: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If you replace the second URL, the one immediately before the </a>, with something like "AO3" - i.e. a user friendly name - it will still be clickable in the Book Details Panel.

If you use the link tool you just fill in the blanks - viz:

Click image for larger version

Name:	Annotation 2019-12-09 082622.jpg
Views:	381
Size:	62.4 KB
ID:	175461

BR
BetterRed is offline   Reply With Quote
Old 12-08-2019, 05:55 PM   #7
GloverEggs
Member
GloverEggs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2017
Device: Calibre
I did use the link tool. However, the link took shows plane text in the window and on the Calibre screen. The link tool shows the html text when I try to place it in the cover.
GloverEggs is offline   Reply With Quote
Old 12-08-2019, 06:54 PM   #8
BetterRed
null operator (he/him)
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: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by GloverEggs View Post
I did use the link tool. However, the link took shows plane text in the window and on the Calibre screen. The link tool shows the html text when I try to place it in the cover.
You need to type something into the "Enter name (optional):" field in the link tool dialogue - as you can see in my previous screenshot. Then it will appear in the Book Details panel, and you can click it to open the url in your browser - viz:

Click image for larger version

Name:	Annotation 2019-12-09 094152.jpg
Views:	709
Size:	235.6 KB
ID:	175463

As for the Cover Generator - it would appear that it doesn't handle long text HTML columns as I would expect, i.e. show the rendered text rather than the HTML text. And I would regard that as a bug - you could report it at ==>> https://bugs.launchpad.net/calibre

Note: I cloak long text columns with icons in the book list to save space and keep things tidy, and I change them by pressing F2 on the book list cells.

BR

Last edited by BetterRed; 12-08-2019 at 06:56 PM.
BetterRed is offline   Reply With Quote
Old 12-08-2019, 11:01 PM   #9
GloverEggs
Member
GloverEggs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2017
Device: Calibre
Whether I fill in the "Enter name (optional)" or not, it prints exactly the same. Maybe it's because I'm putting the full address in as the name?

I don't show the long text columns on my desktop screen (they are hidden), but I do show the fields in the right side panel (or what you have on the bottom of your example). I actually want to see the address.
Click image for larger version

Name:	Side Panel.png
Views:	297
Size:	170.4 KB
ID:	175478

I will play around with it some more and if I still am hitting the wall, I'll put it in as a bug report. There's a good chance that I'm still screwing something up on my end, especially since I've been working this while watching football today.

THANK YOU for all the help!!
GloverEggs is offline   Reply With Quote
Reply

Tags
code, cover, custom, custom columns, text


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running the cover generator standalone on linux olin-shivers Conversion 9 10-31-2017 12:02 PM
Problem on Cover Generator qprfan99 Calibre 2 10-09-2017 08:42 AM
Customizing the Generate Cover results dylan_k Library Management 5 02-23-2016 01:29 PM
New (built-in) Cover Generator weberr Calibre 8 11-08-2014 11:55 PM
Customizing Calibre lunixer Calibre 5 08-23-2010 02:21 PM


All times are GMT -4. The time now is 03:38 PM.


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