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 06-12-2025, 07:52 PM   #1
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: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Book specific conversion settings

Whenever I override the Conversion settings for a specific book I add 'conv-set' in the book's #admin-tags column… but I sometimes forget to do that

And if I revert to the Preferences settings more often than not I forget to remove 'conv-set' from #admin_tags.

So, at irregular intervals I eyeball the results of a search for #admin_tags:"=conv-set" alongside the 'conversion_options' table in metadata_db. and make necessary corrections in the #admin-tags column.

Can anyone suggest an easier, preferably automatic way to achieve the same result

I looked in the template function doco, and JobSpy; and AFAICT Action Chains is unaware of what happens within the child windows of the Convert Book dialogue.

BR
BetterRed is offline   Reply With Quote
Old 06-12-2025, 10:34 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You could write a small plugin that syncs the value of your custom column to whether the stored conversion settings differ from the current defaults. But that is probably not what you actually want, since if you change a default then all books get marked as having custom settings.
kovidgoyal is offline   Reply With Quote
Old 06-13-2025, 02:13 AM   #3
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: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
What I really need is for CRISPR to provide me with a memory upgrade.

Maybe chaley could add a 'has_conv_settings' template function - a'la his 'has_extra_files' function. I currently show a diode.png if #admin_tags has conv-set, which I could change to has_conv_settings().

BR
BetterRed is offline   Reply With Quote
Old 06-13-2025, 06:22 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,384
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I don't think this has enough general utility to make a template function for it.

Here is a python stored template that does the job. It is in a form suitable for import in the Stored Templates tab in Preferences / Template functions.
Attached Files
File Type: txt has_conversion_options.txt (303 Bytes, 9 views)
chaley is offline   Reply With Quote
Old 06-13-2025, 10:46 AM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by BetterRed View Post
What I really need is for CRISPR to provide me with a memory upgrade.
I believe that unfortunately CRISPR has random side effects. Worth risking if the alternate is dying from some genetic disease, or if it cures some severe disablement.
Quoth is offline   Reply With Quote
Old 06-13-2025, 10:32 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: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
I don't think this has enough general utility to make a template function for it.

Here is a python stored template that does the job. It is in a form suitable for import in the Stored Templates tab in Preferences / Template functions.
- works a treat of course.

Click image for larger version

Name:	has_conversion_options.jpg
Views:	14
Size:	22.6 KB
ID:	216217

I assumed that if I click Restore defaults button in the Book conversion dialogue it would remove the relevant row in the conversion_options table - but it doesn't. What the button does is to "Use the defaults" for this conversion. The only way I've found to remove them is via the explicit checkbox in Bulk metadata edit.

BR
BetterRed is offline   Reply With Quote
Old 06-14-2025, 05:33 AM   #7
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: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
I assumed that if I click Restore defaults button in the Book conversion dialogue it would remove the relevant row in the conversion_options table - but it doesn't. What the button does is to "Use the defaults" for this conversion. The only way I've found to remove them is via the explicit checkbox in Bulk metadata edit.
Huh - I get a row added to conversion-option table for every conversion I do.

I created a new library and added the Quick Start guide. I added the Stored Template chaley provided above, and use that template in a column icon rule.

I then did an EPUB->EPUB conversion with no adjustments to any of the Transform settings. After the conversion the "has_conversion_options" icon is shown AND a row has been added to the conversion options table - see attached before and after screenshots.

That seems contrary to what's written here ==>> How options are set/saved for conversion

BR
Attached Thumbnails
Click image for larger version

Name:	before.jpg
Views:	16
Size:	401.5 KB
ID:	216219   Click image for larger version

Name:	after.jpg
Views:	11
Size:	195.2 KB
ID:	216220  
BetterRed is offline   Reply With Quote
Old 06-14-2025, 06:19 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,384
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Yea, converting a book always saves the coversion settings for that book. I don't know of any exception.

I found you can erase the conversion settings in the convert dialog by checking the "Use defaults" button then pressing cancel.

It seems that you never want to save conversion settings. I don't know how to do that, but it is easy enough to erase them all using bulk edit. It would also be easy(ish) to use action chains and a python action to reset the conversion settings for selected books.
chaley is offline   Reply With Quote
Old 06-14-2025, 08:00 PM   #9
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: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
Yea, converting a book always saves the coversion settings for that book. I don't know of any exception.
Miss Memory's fault

Don't do many in-library conversions, I did a few epub->docx recently using the default settings and was surprised to see the entries in the conversion-options table.

Quote:
Originally Posted by chaley View Post
I found you can erase the conversion settings in the convert dialog by checking the "Use defaults" button then pressing cancel.
I assume you're referring to bulk convert. Yes, that removes the entry from the table but the stored template doesn't detect that until I refresh the book list, whereas checking Remove stored conversion settings… in bulk MDE is detected immediately.

Quote:
Originally Posted by chaley View Post
It seems that you never want to save conversion settings. I don't know how to do that, but it is easy enough to erase them all using bulk edit. It would also be easy(ish) to use action chains and a python action to reset the conversion settings for selected books.
What I want is indication that I didn't use the default conversion settings. Miss Memory led me up the garden path by persuading me that the presence/absence of a row in the conv_options table would do that.

But, I will keep the has_conversion_options stored template and column icon as a reminder — to clear the conv_options entry via bulk MDE if I used the default settings, OR leave the entry in place, and make a note of what changes I made to which Transforms to achieve what result.

What is the difference between these two shortcuts, Edit metadata->Edit metadata AND Edit metadata->Edit metadata individually

BR
Attached Thumbnails
Click image for larger version

Name:	why two.jpg
Views:	8
Size:	203.1 KB
ID:	216235  
BetterRed is offline   Reply With Quote
Old 06-14-2025, 08:33 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
What is the difference between these two shortcuts, Edit metadata->Edit metadata AND Edit metadata->Edit metadata individually

BR
The first will show you single or bulk dialogs depeneding on the number fo books selected automatically.
kovidgoyal is offline   Reply With Quote
Old 06-15-2025, 06:26 AM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,384
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
What is the difference between these two shortcuts, Edit metadata->Edit metadata AND Edit metadata->Edit metadata individually
BR
The Edit Metadata shortcut will start Edit Metadata (Single) if one book is selected, otherwise Edit Metadata (bulk). The Edit Metadata individually shortcut will always start the Edit Metadata (Single) dialog no matter how many books are selected. You use "next" and "previous" to move through the selected books.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to open settings to specific page? neil_swann80 PocketBook Developer's Corner 1 03-13-2024 02:40 AM
Book Conversion Settings for Kindle Princess kindle Conversion 8 04-26-2020 07:49 PM
Mass conversion on specific file type. C Alberga Conversion 2 08-20-2016 11:18 PM
Book Specific Conversion Settings Column BetterRed Library Management 0 05-10-2015 05:04 PM
remove stored conversion settings - single book - how? cybmole Conversion 3 02-23-2011 07:12 AM


All times are GMT -4. The time now is 02:11 PM.


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