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 07-15-2011, 04:39 PM   #1
fitzhugh
Member
fitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheese
 
Posts: 13
Karma: 1120
Join Date: Jul 2011
Device: nook str
Save original when converting epub to epub?

I converted an epub to epub so I could change some things (justification etc.), and entered a new title, expecting it to make another copy and leave the old, as if I had made a new filename, not just new title. It didn't. This makes sense when I think about it, but we are used to dealing with filenames and being able to rename when saving so as to not lose the original. Would it be possible to add a checkbox for "save original" when converting from a format to the same format?

I know I can save to disk first, this is more about the program working differently than some might expect in a way that can't necessarily be easily undone.

A small issue at most.

Thank you for such a fantastic program!
fitzhugh is offline   Reply With Quote
Old 07-15-2011, 05:16 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by fitzhugh View Post
Would it be possible to add a checkbox for "save original" when converting from a format to the same format?
This is a great idea and Kovid as said at least three times in recent weeks that this is on his ToDo list, but will have have wait while he rewrites the database backend for network/multiple access.

Quote:
Originally Posted by fitzhugh View Post
I know I can save to disk first, this is more about the program working differently than some might expect in a way that can't necessarily be easily undone.
While we wait this is the solution.

Quote:
Originally Posted by fitzhugh View Post
Thank you for such a fantastic program!
DoctorOhh is offline   Reply With Quote
Advert
Old 07-16-2011, 07:57 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dwanthny View Post
TWhile we wait this is the solution.
My preference is to duplicate the book record, then do the conversion in the duplicate. If I'm happy, I can delete the original record. If not, I delete the duplicate.
Starson17 is offline   Reply With Quote
Old 07-22-2011, 03:28 PM   #4
fitzhugh
Member
fitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheesefitzhugh can extract oil from cheese
 
Posts: 13
Karma: 1120
Join Date: Jul 2011
Device: nook str
Thanks!

Starson17 and Dwanthny, thank you both for the helpful replies. I realized just how much I'm relying on Calibre this morning when I thought about how hard it would be to do without it (got first reader a month ago, installed Calibre first time then). Nice to see there is a helpful community to go with it.

I'm glad to hear he's considering this. Since there are easy workarounds I only feel it matters is because it acts in a way that differs from what seems reasonable to assume, and does so in a "destructive" manner (just mean it deletes original w/ no undo). I didn't lose anything and the inconvenience was less than trivial, but someone might lose something important if they expect the same result as I had. Even a popup window saying something like the following would be fine:

"Converting a file to the same format (e.g., EPUB to EPUB) will overwrite the original file. Would you like to continue?
[] yes [x]no
Note: Make a duplicate copy before running the conversion if you wish to preserve the original version."


Thanks!
fitzhugh is offline   Reply With Quote
Old 07-22-2011, 03:56 PM   #5
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
As long as the warning can be disbled that is fine.

I actually thought there was such a warning and that I had disabled it. I know there is one for bulk convert. (Wish I could disable that one )

Occasionally if I am feeling cautious and want to test a conversion option I will convert to another format first.

And of course I always keep the original on a seperate device (drive, usb stick etc.) and backup my library every few months as well to a different device.

Warnings are good for many, but they give me a false confidence and I can click yes when I mean no.

Helen
speakingtohe is offline   Reply With Quote
Advert
Old 07-22-2011, 07:46 PM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by fitzhugh View Post
Even a popup window saying something like the following would be fine:

"Converting a file to the same format (e.g., EPUB to EPUB) will overwrite the original file. Would you like to continue?
[] yes [x]no
Note: Make a duplicate copy before running the conversion if you wish to preserve the original version."!
Good Idea.

Kovid did you one better in the current release.

Release: 0.8.11 [22 Jul, 2011]
New Features
When doing a conversion from some format to the same format, save the original file

When calibre does a conversion from the same format to the same format, for example, from EPUB to EPUB, the original file is saved as original_epub, so that in case the conversion is poor, you can change the settings and run it again. The original is automatically used every time you run a conversion with that format as input. If you want to disable this, there is a tweak that prevents calibre from saving the originals in Preferences->Tweaks. You can easily replace the converted version with the original in the Edit metadata dialog by right clicking on the list of formats in the top right corner.

Last edited by DoctorOhh; 07-22-2011 at 08:02 PM.
DoctorOhh is offline   Reply With Quote
Old 07-24-2011, 09:04 AM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dwanthny View Post
Kovid did you one better in the current release.
Thanks, Kovid.
Starson17 is offline   Reply With Quote
Old 07-24-2011, 11:24 AM   #8
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,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome, I got bored of working on the new db backend, so I took a break to fix a few long standing issues
kovidgoyal is online now   Reply With Quote
Old 07-24-2011, 07:35 PM   #9
DuskyRose
Guru
DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.
 
DuskyRose's Avatar
 
Posts: 726
Karma: 9209502
Join Date: Apr 2007
Location: Virginia
Device: Boox Palma, Kdle Scribe & Paperwhite, Kobo Eclipsa 2e & Libra 2, Ipads
I'd like to disable this, but when I go to change the Tweak from "save_original_format = True" to "save_original_format = False" it won't let me save the change. It says...

"The tweaks you entered are invalid, try resetting the teaks to default and changing them one by one until you find the invalid setting."

Show Details says....

calibre, version 0.8.11
ERROR: Invalid tweaks: The tweaks you entered are invalid, try resetting the tweaks to default and changing them one by one until you find the invalid setting.

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\tweaks.py", line 328, in commit
File "<string>", line 400
Qt = <class 'PyQt4.QtCore.Qt'>
^
SyntaxError: invalid syntax

I'm using version 0.8.11. I've tried reinstalling, and then running a 'repair'.

Do I need to do something different?
DuskyRose is offline   Reply With Quote
Old 07-24-2011, 07:57 PM   #10
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,812
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 DuskyRose View Post
I'd like to disable this, but when I go to change the Tweak from "save_original_format = True" to "save_original_format = False" it won't let me save the change. It says...

"The tweaks you entered are invalid, try resetting the teaks to default and changing them one by one until you find the invalid setting."

Show Details says....

calibre, version 0.8.11
ERROR: Invalid tweaks: The tweaks you entered are invalid, try resetting the tweaks to default and changing them one by one until you find the invalid setting.

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\tweaks.py", line 328, in commit
File "<string>", line 400
Qt = <class 'PyQt4.QtCore.Qt'>
^
SyntaxError: invalid syntax

I'm using version 0.8.11. I've tried reinstalling, and then running a 'repair'.

Do I need to do something different?
I just made the line read:

Code:
save_original_format = False
theducks is online now   Reply With Quote
Old 07-24-2011, 07:59 PM   #11
DuskyRose
Guru
DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.
 
DuskyRose's Avatar
 
Posts: 726
Karma: 9209502
Join Date: Apr 2007
Location: Virginia
Device: Boox Palma, Kdle Scribe & Paperwhite, Kobo Eclipsa 2e & Libra 2, Ipads
Quote:
Originally Posted by theducks View Post
I just made the line read:

Code:
save_original_format = False
The only word I'm changing is "True" to "False".
DuskyRose is offline   Reply With Quote
Old 07-24-2011, 10:12 PM   #12
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,812
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 DuskyRose View Post
The only word I'm changing is "True" to "False".
I re-read the error message.
It could be ANY tweak with a non-default setting.

If you don't have a lot of tweaks, you can open the Calibre Config directory with the button on Preferences: Misc .
Quit Calibre
Delete the tweaks.py file.
restart Calibre, the file will be created with default settings.
Now try the tweak
theducks is online now   Reply With Quote
Old 07-25-2011, 10:37 AM   #13
DuskyRose
Guru
DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.DuskyRose ought to be getting tired of karma fortunes by now.
 
DuskyRose's Avatar
 
Posts: 726
Karma: 9209502
Join Date: Apr 2007
Location: Virginia
Device: Boox Palma, Kdle Scribe & Paperwhite, Kobo Eclipsa 2e & Libra 2, Ipads
Thanks, Theducks.

I don't remember ever playing with anything in the tweaks before, so decided to delete the tweaks.py file. I'll just have to figure out later what I might have changed.

It seemed to accept the change when I hit "apply", and I did the restart as suggested. The whole option seems to be gone from the Tweak list now, but I'll have to play with it for a while to see if it's all doing what it should now.

(ed. Ah, it's there, it's just at the top of the list now instead of the bottom, but it does say "False"!)

Appreciate the help!
DuskyRose is offline   Reply With Quote
Old 07-25-2011, 11:03 AM   #14
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,812
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 DuskyRose View Post
Thanks, Theducks.

I don't remember ever playing with anything in the tweaks before, so decided to delete the tweaks.py file. I'll just have to figure out later what I might have changed.

It seemed to accept the change when I hit "apply", and I did the restart as suggested. The whole option seems to be gone from the Tweak list now, but I'll have to play with it for a while to see if it's all doing what it should now.

(ed. Ah, it's there, it's just at the top of the list now instead of the bottom, but it does say "False"!)

Appreciate the help!
Once an Option is set, it floats to the top of the list and the title on the left becomes bold
theducks is online now   Reply With Quote
Old 07-26-2011, 01:01 PM   #15
Valentino
Connoisseur
Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.Valentino ought to be getting tired of karma fortunes by now.
 
Posts: 86
Karma: 999999
Join Date: Dec 2010
Device: some.
Whoohoo, thanks Kovid.

I just noticed that I cant use use the original_epub as a source in the convert dialog. Is this in the plans?
Valentino is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when trying to save new ePub project rstevenson Sigil 19 06-26-2011 12:25 AM
Changing original font css in ePub jlbfoot Sony Reader 4 12-28-2010 12:07 PM
original files for converting epub yuxi_kelly ePub 2 12-04-2010 05:56 AM
Calibre does not save pdf / epub etc formats?! lakicsv Calibre 1 12-09-2009 01:43 PM
converting epub to epub gandor62 Calibre 1 08-13-2009 12:27 AM


All times are GMT -4. The time now is 12:37 AM.


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