Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-26-2018, 05:19 PM   #31
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 BetterRed View Post
Which "Restore defaults" are you referencing:

Preferences Attachment 168629 or Single Conversion Attachment 168630
I meant Preferences. Lol, I always do bulk conversion, never single.

Quote:
Originally Posted by BetterRed View Post
IMO the QC plugin would be the logical place to provide something that listed the books with one-off conversion settings, e.g. a Check individual conversion in the Check Epub structure group. But, given plugin is a) not being actively maintained, apart from making sure it continues to work, and b) it currently relies on the content of metadata.opf files for related checks, then this may not be easily done.

So, if it can't be done in via template function used in a custom column as suggested by DivingDuck, then IMO, the next logical place would be a new tool in DaltonSt's JobSpy plugin. Assuming there is someway to interrogate SQL database to get the right answer, as per ilovejedd's post #24.
The Quality Check plugin does rely on the database, too, for certain tools (e.g. Fix -> Check and repair book sizes, Check and rename book paths). As you said though, it's not being maintained anymore.

I expect a check for whether per book saved settings exist would be incredibly easy for DaltonST to add to JobSpy (e.g. what I did on post #24 using DaltonST's MultiColumnSearch plugin). Way simpler compared to Tag Scrubber.

I exported the data blob and it's just simple JSON. Alas, the order of conversion options isn't fixed/sorted so if it's to be compared to the conversion settings in Calibre Preferences, need to add extra code for that.
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 06:24 PM   #32
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,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@ilovejedd - I would think for most users just knowing which books have specific stored conversion settings would suffice.

BR
BetterRed is online now   Reply With Quote
Advert
Old 12-26-2018, 07:01 PM   #33
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 BetterRed View Post
@ilovejedd - I would think for most users just knowing which books have specific stored conversion settings would suffice.

BR
Probably.

Given Calibre saves conversion options with every single conversion, a query like the above wouldn't actually help determine if one is using modified/book-specific settings like @Divingduck wants.

I use EPUB on Android/iOS and MOBI (dual) on my Kindle so all my books have saved conversion settings. Or they would have if I didn't clear those out via bulk metadata edit quite regularly. (I try to clear saved settings immediately after conversion but sometimes I forget.)
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 09:58 PM   #34
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes the conversion_options table is where it is stored, and yes it is always stored there, regardless of whether any option is changed or not.

If you want to see which books have different options from the current defaults, you would need to write code to compare the options on a book by book basis. It should not be too hard, the options are stored as simple JSON dictionaries. You will need to exclude the metadata options such as cover, title, etc.
kovidgoyal is online now   Reply With Quote
Old 12-27-2018, 07:48 AM   #35
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by ilovejedd View Post
Might be possible with SQLiteBrowser.

Browse the conversion_options table and sort it by data column. Select Mode: Binary when viewing cell contents.
That's what I did to check what happen. I didn't take attention to this table before. By the way, thank you for pointing me in this direction.

Need to think about this a little more. I usually try to avoid manipulating the database outside from calibre as I can not be sure that I recognize all dependencies in the database. I don't want to loos bits over the time and don't recognize it until it is too late. The amount on entries in this table is a little bit bigger and additionally I don't want to loose the effort I spend for a lot of fine tuned conversion for individual books. I only want to know which books have a "individual conversion" where I need to take care about. I start some time last year with an additional column where I put this Information in manually after I recognize, that this can help me to find already existing solutions for other books in work (... as soon as I remember it ... ).
Divingduck is offline   Reply With Quote
Advert
Old 12-27-2018, 08:00 AM   #36
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by kovidgoyal View Post
If you want to see which books have different options from the current defaults, you would need to write code to compare the options on a book by book basis. It should not be too hard, the options are stored as simple JSON dictionaries. You will need to exclude the metadata options such as cover, title, etc.
Yes, it seems I need to find some time for it.
Divingduck is offline   Reply With Quote
Old 12-27-2018, 03:43 PM   #37
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,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
A search in stackoverflow etc will find a number of python JSON compare modules.

BR
BetterRed is online now   Reply With Quote
Old 12-27-2018, 09:10 PM   #38
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
well to get you started, here is how you can load both global and bookspecific options, run it using calibre-debug:


Code:
from calibre.library import db
db = db()
from calibre.ebooks.conversion.config import load_defaults, load_specifics
specifics = load_specifics(db, book_id)
page_defaults = load_defaults('page_setup')
You will need to load the defaults for all the different "pages" of the conversion dialog and ever individual format. look in the conversion sub-directory of the calibre config directory for the names to use. Both the above are basically python dictionaries. You can compare them using whatever methodology you like,
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saved conversion settings... paulfiera Calibre 4 09-22-2013 12:29 PM
Used saved conversion settings... paulfiera Calibre 0 05-24-2012 09:04 AM
epub "padding left" to mobi "block quote" conversion issue 1611mac Conversion 3 01-11-2012 02:10 PM
"Settings," then "311" - Int'l Kindle searches for wireless providers in the area Dr. Drib Amazon Kindle 2 08-28-2011 10:27 AM
Firmware Update No "Update your Kindle" option in "Settings" shimoncellos Amazon Kindle 4 05-26-2010 05:37 PM


All times are GMT -4. The time now is 06:16 AM.


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