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 05-24-2019, 03:42 AM   #1
bob.f
Connoisseur
bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!
 
Posts: 78
Karma: 99068
Join Date: Nov 2017
Device: N/A
epub to mobi conversion confusing

I have a number of books that each exist in a number of formats, namely .epub, .mobi, .azw3 and .original_epub.

I want to batch convert each .epub to .mobi.

However when I do the conversion, in batch or individually, the .mobi I end up with does not reflect the .epub file. I suspect what is happening is the conversion is using the .original_epub as source. Evidence of this is that if I remove the .original_epub and redo the conversion the resulting .mobi file is as expected.

Is this the expected behaviour, and if so could someone please explain why this is?
bob.f is offline   Reply With Quote
Old 05-24-2019, 09:57 AM   #2
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: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Preferences Behavior has an INPUT FORMAT list. The order biases the conversion choice. (except for the Original_*)

As for using Original_*, that is as designed
BUT
there is a (preferences: tweaks
Code:
ID: save_original_format

When calibre does a conversion from the same format to the same format, for example, from EPUB to EPUB, the original file is saved, so that in case the conversion is poor, you can tweak the settings and run it again. By setting this to False you can prevent calibre from saving the original file. Similarly, by setting save_original_format_when_polishing to False you can prevent calibre from saving the original file when polishing.
I turned it OFF. I also gave up doing same format conversions in 99.9% of the cases. I find it faster-easier to edit EPUB or AZW3 stylesheets by hand while looking at the code than trial-error conversion of the same format (A clean EPUB/AZW3 usually converts to other formats just fine for my use)
theducks is offline   Reply With Quote
Old 05-24-2019, 11:11 AM   #3
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Yes original_epub is always used in a conversion if itnexists and you cannot override it.
I recall asking about that's ages ago.
For a single book you can sneakily move that format out of its folder so that calibre conversion cannot find it and put it back once conversion has started. Then it uses epub.
But for batch. That would be messy. I don't think windows has a bulk undo move option so you would have to manually put each one back where it came from.
The only other option is to delete or archive away the original epub format file.

The only answer I got to Why ,was that "it is designed that way." You can ask Why is it designed that way but I doubt you will get far

Last edited by stumped; 05-24-2019 at 11:13 AM.
stumped is offline   Reply With Quote
Old 05-24-2019, 12:07 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 stumped View Post
Yes original_epub is always used in a conversion if it exists and you cannot override it.
I recall asking about that's ages ago.
For a single book you can sneakily move that format out of its folder so that calibre conversion cannot find it and put it back once conversion has started. Then it uses epub.
But for batch. That would be messy. I don't think windows has a bulk undo move option so you would have to manually put each one back where it came from.
The only other option is to delete or archive away the original epub format file.

The only answer I got to Why ,was that "it is designed that way." You can ask Why is it designed that way but I doubt you will get far
Iirc, the original_* files were meant as a way to recover from bad conversions/mods. Hence, the assumption is the regular version is a bad copy so the original is always used.

What I do is create a selective mirror of the library using Robocopy.
Code:
robocopy "main lib" "epub convert lib" /if *.db *.json *.epub /xx /mir
Run the conversions on the target library, then copy the resulting files to the main library.
Code:
robocopy "epub convert lib" "main lib" /if *.mobi *.azw3 /xx /mir /maxage:1
Then just fix file sizes using Quality Check plugin.

Granted, this uses more storage but I've got sufficient space to spare and I can always buy more or bigger drives if needed.
ilovejedd is offline   Reply With Quote
Old 05-24-2019, 12:15 PM   #5
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Quote:
Originally Posted by ilovejedd View Post
Iirc, the original_* files were meant as a way to recover from bad conversions/mods. Hence, the assumption is the regular version is a bad copy so the original is always used.

What I do is create a selective mirror of the library using Robocopy.
Code:
robocopy "main lib" "epub convert lib" /if *.db *.json *.epub /xx /mir
Run the conversions on the target library, then copy the resulting files to the main library.
Code:
robocopy "epub convert lib" "main lib" /if *.mobi *.azw3 /xx /mir /maxage:1
Then just fix file sizes using Quality Check plugin.

Granted, this uses more storage but I've got sufficient space to spare and I can always buy more or bigger drives if needed.
that is a neat idea.
i don't do bulk conversions, so I am happy to sneakily move the original format out of calibre library , then put it back afterwards.
it only happens when I wand a conversion of something I have fine-tuned for reading in epub e.g. I want to take a copy with me on a kindle
For safety, I don't like to delete the original format until I have actually finished reading the book in question, just in case I discover a bug

Last edited by stumped; 05-24-2019 at 12:19 PM.
stumped is offline   Reply With Quote
Old 05-24-2019, 04:02 PM   #6
bob.f
Connoisseur
bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!bob.f has a thesaurus and is not afraid to use it!
 
Posts: 78
Karma: 99068
Join Date: Nov 2017
Device: N/A
Thanks to all for your comments.
bob.f is offline   Reply With Quote
Old 05-29-2019, 06:17 AM   #7
drjenkins
Addict
drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.
 
Posts: 250
Karma: 1702156
Join Date: Nov 2010
Device: Kindle Voyage
Quote:
Originally Posted by stumped View Post
The only answer I got to Why ,was that "it is designed that way." You can ask Why is it designed that way but I doubt you will get far
The only time I have seen original_epub files was when I did epub to epub conversions. If the converted file is the better of the two I would delete the original_epub. If you do not delete it the presumption is that original_epub is the better source for conversion. It was, after all, the source for your current file.
drjenkins is offline   Reply With Quote
Old 05-29-2019, 10:13 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,273
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by drjenkins View Post
The only time I have seen original_epub files was when I did epub to epub conversions. If the converted file is the better of the two I would delete the original_epub. If you do not delete it the presumption is that original_epub is the better source for conversion. It was, after all, the source for your current file.
Using Polish or Modify Epub also generates an original_epub file. Possibly other modification tools but those two I use rather often.
DNSB is offline   Reply With Quote
Old 05-29-2019, 10:45 PM   #9
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
I wish I'd known about the Modify Epub plugin some time ago. I like that it merely appends to the epub's style file the Extra CSS from Calibre's Common Options > Look & Feel > Styling when you select Modify Epub's Append Extra CSS box. Even though I don't worry about Calibre damaging anything when doing an epub to epub conversion, for the simple stuff I want (ragged right and no space betwen paragraphs) Modify Epub is just the ticket.
lumpynose is offline   Reply With Quote
Old 05-30-2019, 05:03 AM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by DNSB View Post
Using Polish or Modify Epub also generates an original_epub file. Possibly other modification tools but those two I use rather often.
There's are 2 options in Prefs - Tweaks to change the original_ behaviour for anyone who wants to.

save_original_format = True/False controls what happens during conversions

save_original_format_when_polishing = True/False (as the name suggests) during Polishing
jackie_w is offline   Reply With Quote
Old 05-30-2019, 06:22 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,273
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by jackie_w View Post
There's are 2 options in Prefs - Tweaks to change the original_ behaviour for anyone who wants to.

save_original_format = True/False controls what happens during conversions

save_original_format_when_polishing = True/False (as the name suggests) during Polishing
Personally, I want the original file kept. I've had several occasions with malformed epubs where Polish and/or Modify Epub got garbage in and spewed scrambled garbage out. Hence, I now open new epubs in either Sigil or calibre's editor and run the various checkers before any file change operations.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOBI to EPUB conversion zoliky Conversion 7 03-05-2018 06:07 PM
conversion from EPUB to MOBI stoneturner Conversion 2 09-22-2015 10:55 AM
conversion from mobi to epub barbados1952 Conversion 9 05-09-2013 10:01 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM


All times are GMT -4. The time now is 05:48 AM.


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