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 03-27-2015, 04:01 AM   #31
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If the books were painstakingly tweaked and you still *need* the old copies, that is versioning.

If you need a version per device, I cannot help you... note that calibre doesn't support that anyway.
eschwartz is offline   Reply With Quote
Old 03-27-2015, 04:27 AM   #32
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
I call it archiving.
versioning is wanting two or more files of a given format, not one of each.

this is not versioning, it's diversity
1 x file.original_epub
1 x file.epub
1 x file.mobi
1 x file.azw
with all 4 selectable as source formats for conversion

versioning would be
file at date a.epub
file at date b.epub
....

the original_FMT files behaves like an archive format in most instances already e.g. it cannot be opened in calibre viewer, or in calibre editor....

Last edited by cybmole; 03-27-2015 at 04:30 AM.
cybmole is offline   Reply With Quote
Advert
Old 03-27-2015, 04:39 AM   #33
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
For archive purposes, why not attach a RAR file as an additional format, and then store any Archive versions within the RAR file. That way you can have Calibre keep the archived version with the current book entry, and it is easy to get things out of the archive by double-clicking it when required. Not a perfect solution but definitely workable.

If you do not want to pay for a RAR license then use something like 7-Zip instead. Avoid storing any archive files as a ZIP file as this can get confused with the way Calibre handles HTML files.
itimpi is offline   Reply With Quote
Old 03-27-2015, 05:11 AM   #34
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
i have rar & 7z, but that sort of work-around will confuse the database integrity checks,

Once calibre sees that original_FMT has been deleted, it's not then going to know that it is back again when manually extracted from the rar or via a rename. Maybe a library repair will pick it up again but what a rigmarole, compared with turning on a select epub as source format conversion option.
Even though in practice, I've not ever really needed the library mainenence tools, why deliberately do stuff that will mess them about.

Luckily I mostly prefer reading my books on Kindle Fire in their epub format via mantano app, vs reading an azw version in the native kindle app, so this is an user-choice-principle argument.
(I can't customise left handed page turn controls in kindle app , like I can in Mantano)
cybmole is offline   Reply With Quote
Old 03-27-2015, 09:12 AM   #35
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by cybmole View Post
i have rar & 7z, but that sort of work-around will confuse the database integrity checks,
I find it does not as long as you add it as a book format via Calibre.

Quote:
Once calibre sees that original_FMT has been deleted, it's not then going to know that it is back again when manually extracted from the rar or via a rename. Maybe a library repair will pick it up again but what a rigmarole, compared with turning on a select epub as source format conversion option.
Even though in practice, I've not ever really needed the library mainenence tools, why deliberately do stuff that will mess them about.
It easy to open the RAR (via Calibre) and then drag-drop a file from the RAR archive back into Calibre so that it knows it is there again.
itimpi is offline   Reply With Quote
Advert
Old 03-27-2015, 10:02 AM   #36
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by cybmole View Post
I call it archiving.
versioning is wanting two or more files of a given format, not one of each.

this is not versioning, it's diversity
1 x file.original_epub
1 x file.epub
1 x file.mobi
1 x file.azw
with all 4 selectable as source formats for conversion

versioning would be
file at date a.epub
file at date b.epub
....

the original_FMT files behaves like an archive format in most instances already e.g. it cannot be opened in calibre viewer, or in calibre editor....
versioning.

1x book.epub
1x book.old-version_epub

Play the semantic games all you want, I don't really care. You have two versions of one format (as can be ascertained by examining the contents and finding an EPUB).
Regardless of whether you call it versioning or archiving, you will get no help from calibre. Because calibre is not meant to do it. So any degree to which calibre does so anyway is to be taken as a blessing.

Adding new features -- because that is what this is -- is something to treat as... <drumroll>... a Feature Request!
Regardless of how *reasonable* you think it is, the fact remains that Kovid rejected your request -- and really, I agree with that decision.

And again, it seems like the root of the problem is your desire for a customized EPUB per device. Leaving aside the issue of how wrong that mindset is (ask the people who literally make their living off EPUB design), calibre does not support this.

Why not just make a different database record for each of your versions?
eschwartz is offline   Reply With Quote
Old 03-27-2015, 11:00 AM   #37
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
I also tweak books when I buy them and like to have an "archived" copy to fall back on if I screw up. I just have a separate, physical library called "originals" and copy new books there before touching them.
Section8 is offline   Reply With Quote
Old 03-27-2015, 04:46 PM   #38
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 itimpi View Post
I find it does not as long as you add it as a book format via Calibre.

It easy to open the RAR (via Calibre) and then drag-drop a file from the RAR archive back into Calibre so that it knows it is there again.
@itimpi - that's true if you have WinRAR, you can drag it out of the RAR and drop it into the Book Details panel.** But only if the extension is recognised by calibre as an ebook extension, in this context, it would seem that xxxx.ORIGINAL_EPUB is not an ebook extension.

Also you can't drag files out of a RAR and drop into the Book List via the WinRAR browser - not sure if that's a WinRAR or calibre issue.

So the only way out is to unpack the archive into a folder. If the RAR is in the book folder (which in this context it will be), the default location will be a subfolder in the book folder. You can then drag the ORIGINAL_EPUB from the newly created subfolder into the Book List. What happens next depends on the settings in Add books for dealing with duplicates - at worse you'll have to Merge books. Then you need to trash the subfolder that WinRAR created.

In the context of this discussion that's not what I'd call 'easy', at best I'd called it 'fiddlesome'. It might be overcome if calibre allowed drag/drop of non-ebook files into Book Details, but... the answer on that was... No. But even then it would only work if you have WinRAR.

BR

** BTW, you can't drag/drop ebook files out of a RAR to Book Details with Peazip, nor perhaps 7zip.
BetterRed is offline   Reply With Quote
Old 03-28-2015, 02:24 AM   #39
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
it's also darn near impossible to write a batch file that will go through all the calibre subfolders and move all orig_TMT into rar or 7z containers.
none of the suggested workarounds, here or previously (for which i am grateful BTW), are easy to automate. bulk rename via a batch file process and then sacrifice library integrity/repair checks is looking simplest.. I have not tested the one I linked to before, but I examined the coding in notepad++ & can see how it works.

PS the fact that folks are offerign up workarounds is encouraging, either that implies i'm not totally stuipd to want what I want, & that they have done similar things , or that some folks are super helpful here
cybmole is offline   Reply With Quote
Old 03-28-2015, 08:06 AM   #40
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Its TRIVIAL to write such a batch file.....

The jist of it will be
Code:
for /r %1 in (*.original_fmt) do some_command_involving_%1
This will search for original_fmt files in all child directories of the current directory.

To see all the options on the for command, in a command window type
Code:
for /?
. There are many MANY options to parse the filename (ie the %1).
PeterT is offline   Reply With Quote
Old 03-28-2015, 08:52 AM   #41
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
back up your claim please:

rather than say it is TRIVIAL, & then walk away - how about you prove it by giving us the batch code to do what' been suggested i.e. to scan an entire calibre library & place each original_FMT file into its own individual .rar or an 7z container of the same name , in the correct book subfolder.

('cos I don't think it is trivial at all but will be happy to be proved wrong/ to learn how )

What was was suggested will require repeatedly invoking the main RAR or 7z .exe and handing it each found file via command line options?, without losing control of overall flow.

you lose marks if I am left with several hundred instances of RAR /7z still open at end of batch run.

and then write the matching one that reverses all of the above, if you can.

PS for a gold star you also have to do all of the above in less time that it would have taken to teak calibre source file select options in convert screen
cybmole is offline   Reply With Quote
Old 03-28-2015, 10:33 AM   #42
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Well never having used 7za (the command line tool) it took a few minutes

Code:
for /r %1 in (*.original_epub) do 7za a "%~p1""%~n1".7z "%1"
This will create a new 7Z archive within the same folder that the original_epub file was located with the same name as the original_epub that contains a single file.

There are NO processes left running after this command; the only issue is that I'm not sure how to have 7za drop the file after it has been added. This could be done by a second for command

Code:
for /r %1 in (*.original_epub) do del "%1"
PS: I only SAW your reply about 10 minutes ago; in that time I located the 7zip command line version, installed it, wrote the batch line, tested it, AND wrote this message.

PPS: Quite likely no need to compress due to the fact that an epub actually IS a zip file (albeit with the possibility that not all components of it might be compressed. So one could add the -x0 switch to the command line

Last edited by PeterT; 03-28-2015 at 10:47 AM.
PeterT is offline   Reply With Quote
Old 03-28-2015, 10:36 AM   #43
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Impressive,but for 2 gold stars can you automate putting humpty dumpy back together again I.e. make all those orig.fmt files reappear where they used to be
cybmole is offline   Reply With Quote
Old 03-28-2015, 11:09 AM   #44
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Sigh..... All that is needed is to use 7za to EXTRACT the file....
Code:
for /r %1 in (*.7z) do 7za e "%1" -o"%~p1"
PeterT is offline   Reply With Quote
Old 03-28-2015, 11:13 AM   #45
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Just to explain a few things

for /r says scan the current directory and all sub directories
"%1" ensures that if the matched file name contains spaces there are no issues
%~p1 extracts the directory name
%~n1 extracts just the file name (with no path or extension)

AH... I could have simplified
Code:
for /r %1 in (*.original_epub) do 7za a "%~p1""%~n1".7z "%1"
to
Code:
for /r %1 in (*.original_epub) do 7za a "%~pn1".7z "%1"

Last edited by PeterT; 03-28-2015 at 11:16 AM.
PeterT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting EPUB's for Kindle Paperwhite - AZW3 or MOBI? HardwareLust Conversion 81 11-07-2016 02:41 AM
Converting AZW3 to Epub Lyn2012 Conversion 17 10-06-2014 08:47 AM
Error converting .azw3 to mobi: Zugriff verweigert godlich Kindle Formats 0 11-26-2013 01:24 PM
Error Converting AZW3 to Mobi Samiya98 Conversion 1 08-14-2013 11:24 PM
Converting azw3 to epub failure Rbneader Conversion 1 06-22-2013 02:44 PM


All times are GMT -4. The time now is 11:42 AM.


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