12-08-2019, 12:08 AM | #1 |
Member
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. (#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! |
12-08-2019, 02:39 AM | #2 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
Advert | |
|
12-08-2019, 03:22 PM | #3 |
Member
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.
I wondered the same thing and tried many times hoping that it wasn't really an error. |
12-08-2019, 04:10 PM | #4 | |
hopeless n00b
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:
|
|
12-08-2019, 05:14 PM | #5 |
Member
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? 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. |
Advert | |
|
12-08-2019, 05:31 PM | #6 |
null operator (he/him)
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: BR |
12-08-2019, 05:55 PM | #7 |
Member
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.
|
12-08-2019, 06:54 PM | #8 | |
null operator (he/him)
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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. |
|
12-08-2019, 11:01 PM | #9 |
Member
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. 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!! |
Tags |
code, cover, custom, custom columns, text |
|
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 |