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-25-2018, 09:30 PM   #16
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Phssthpok View Post
Can I ask why the checkbox is only available on the bulk convert dialog, and not when converting a single book?
Actually, IIRC there is a Retore defaults button in the single conversion dialog as well, bottom left area I thikn

Last edited by kovidgoyal; 12-25-2018 at 09:40 PM.
kovidgoyal is offline   Reply With Quote
Old 12-26-2018, 06:40 AM   #17
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,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Kovid,
is there maybe a chance to add a function in the template language for identify books with non standard conversion settings?

I'm perfectly ok with the standard and per book behavior. I modified my standard in the main conversion setup so that it works for most books and my reading devices, but I sometimes need to change these settings due to books that need more fine tuning or because of special adjustments for different ebook devices.
One of the major problems I had, is to identify those books and I often wish to have a custom column with a function that I can use to identify these books.

Best regards,
DD
Happy Holiday Season and all the best for the New Year
Divingduck is offline   Reply With Quote
Advert
Old 12-26-2018, 10:12 AM   #18
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC the quality check plugin already has a function to identify these books, and if not it would be trivial to add there.
kovidgoyal is offline   Reply With Quote
Old 12-26-2018, 11:13 AM   #19
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,111
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 kovidgoyal View Post
IIRC the quality check plugin already has a function to identify these books, and if not it would be trivial to add there.
I checked and I can't find this option on the Quality Check plugin. I tried doing conversion_options:true in the Calibre search bar and that didn't work, either.
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 11:42 AM   #20
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ilovejedd View Post
I checked and I can't find this option on the Quality Check plugin. I tried doing conversion_options:true in the Calibre search bar and that didn't work, either.
It is at the bottom of the 'Check ePub Structure' menu.
I am not really sure what it uses for the detection template.

If you have a SQLlite browser look at the conversion_options table: Data column (blob will be set)
theducks is offline   Reply With Quote
Advert
Old 12-26-2018, 12:14 PM   #21
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,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Kovid,
I guess my request wasn't described very well.

As fare as I know, there is no information available to check for a "non standard" conversion. With standard I mean, what is stored in the general conversion template. In the Quality Check plugin I can find only books with a conversion in general.

I don't look for the book itself, I try to find the information that identify a conversion setup different from the standard template. In the end all books with an individual conversion setup that is stored somewhere in your database as soon as I tweak a conversion setup for a book individual.

In addition, QC works, if I remember correct, only for EPUB and maybe MOBI (last one I didn't check). I look for a more general search that works for all formats as described above (if possible)
Divingduck is offline   Reply With Quote
Old 12-26-2018, 12:21 PM   #22
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the moment you change any setting, all previously converted books no longer match that setting, (unless you are toggling that setting between a few commonly used values). So this function would get a lot of false positives.
kovidgoyal is offline   Reply With Quote
Old 12-26-2018, 12:51 PM   #23
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,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Normally I use only the conversion w/o tweaking my conversion template because I did that in the general template via preferences -> conversion. This template I don't change for a long time. Individual changes I do only if a conversion fails with this method. And for those individual changes I was looking for.

How is this working for the library? My understanding was that you store this individual conversion setup for a book only if I tweak a conversation and if I click on "restore defaults" this will be deleted or overwritten with the general template. That was the point where I thought it is possible to identify the books with "non standard" conversion entries in the database or where ever this information is stored.
Divingduck is offline   Reply With Quote
Old 12-26-2018, 12:54 PM   #24
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,111
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 theducks View Post
It is at the bottom of the 'Check ePub Structure' menu.
I am not really sure what it uses for the detection template.

If you have a SQLlite browser look at the conversion_options table: Data column (blob will be set)
I know about the conversion_options table. That's why I tried conversion_options:true in Calibre search.

The "Check calibre conversion" in Quality Check PI only checks if an epub was converted with Calibre. It doesn't actually tell you if there are saved conversion options for a specific book. It does this by opening the OPF file inside the EPUB and checking for:
Code:
name="calibre:timestamp:

or

<dc:contributor opf:role="bkp">calibre


I just remembered that the MultiColumnSearch plugin has a tab for Raw SQL Queries.

This worked for checking which books have saved conversion settings:
Code:
SELECT id FROM books WHERE id IN (SELECT book FROM conversion_options)
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 01:04 PM   #25
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,111
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 Divingduck View Post
How is this working for the library? My understanding was that you store this individual conversion setup for a book only if I tweak a conversation and if I click on "restore defaults" this will be deleted or overwritten with the general template. That was the point where I thought it is possible to identify the books with "non standard" conversion entries in the database or where ever this information is stored.
I believe "Restore defaults" only restores the Calibre-wide general conversion settings to their original values. (so those would be in config/conversion/*.py)

It doesn't affect the per book saved conversion settings which are stored in the "conversion_options" table in metadata.db.
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 02:12 PM   #26
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,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by ilovejedd View Post
It doesn't affect the per book saved conversion settings which are stored in the "conversion_options" table in metadata.db.
I took a look to the conversion_options table and it seems this is the table to look at. In first view this table includes only book_id's hat have modified conversion settings.

@Kovid, can you confirm this?
Divingduck is offline   Reply With Quote
Old 12-26-2018, 02:23 PM   #27
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,111
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 Divingduck View Post
I took a look to the conversion_options table and it seems this is the table to look at. In first view this table includes only book_id's hat have modified conversion settings.

@Kovid, can you confirm this?
Note, if you do a conversion in Calibre, those settings will be stored in that table regardless if you use the default settings or modified them.

I'm guessing this is why Kovid mentioned you'd get a lot of false positives for your particular use-case.
ilovejedd is offline   Reply With Quote
Old 12-26-2018, 03:31 PM   #28
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,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by ilovejedd View Post
I'm guessing this is why Kovid mentioned you'd get a lot of false positives for your particular use-case.
Yea, I just recognize this too with a test library.
It looks like there is no easy way to identify what I'm looking for.
Divingduck is offline   Reply With Quote
Old 12-26-2018, 04:31 PM   #29
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,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ilovejedd View Post
I believe "Restore defaults" only restores the Calibre-wide general conversion settings to their original values. (so those would be in config/conversion/*.py)

It doesn't affect the per book saved conversion settings which are stored in the "conversion_options" table in metadata.db.
Which "Restore defaults" are you referencing:

Preferences Click image for larger version

Name:	preferences.jpg
Views:	169
Size:	80.6 KB
ID:	168629 or Single Conversion Click image for larger version

Name:	single conversion.jpg
Views:	183
Size:	104.8 KB
ID:	168630

My reading of the tooltip for the the first is that it resets the selected Preference values to the Factory (installed) Default settings; and I have always assumed the second resets the selected values to what is currently set in Preferences. I haven't messed with conversion settings for a couple of years, so my memory is a bit rusty.

The button in Single Conversion lacks a tooltip, perhaps that could be remedied, and maybe relabel the button to "Restore User Preference Settings", or "Remove Book specific stored settings". The latter would make it consistent with Bulk Metadata Edit; if that indeed is what it does.

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.

BR
BetterRed is offline   Reply With Quote
Old 12-26-2018, 04:41 PM   #30
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,111
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 Divingduck View Post
Yea, I just recognize this too with a test library.
It looks like there is no easy way to identify what I'm looking for.
Might be possible with SQLiteBrowser.

Browse the conversion_options table and sort it by data column. Select Mode: Binary when viewing cell contents.

Granted, the reason this might be working for me is because I do a lot of bulk conversions (hundreds or thousands of books at a time) so at the very least, the blobs for each batch of books are identical.

And yep, I've deleted records from the conversion_options using SQLiteBrowser with seemingly no ill effects.
ilovejedd is offline   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 12:29 AM.


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