03-27-2015, 04:01 AM | #31 |
Ex-Helpdesk Junkie
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. |
03-27-2015, 04:27 AM | #32 |
Wizard
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. |
Advert | |
|
03-27-2015, 04:39 AM | #33 |
Wizard
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. |
03-27-2015, 05:11 AM | #34 |
Wizard
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) |
03-27-2015, 09:12 AM | #35 | ||
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
Quote:
|
||
Advert | |
|
03-27-2015, 10:02 AM | #36 | |
Ex-Helpdesk Junkie
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:
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? |
|
03-27-2015, 11:00 AM | #37 |
Addict
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.
|
03-27-2015, 04:46 PM | #38 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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. |
|
03-28-2015, 02:24 AM | #39 |
Wizard
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 |
03-28-2015, 08:06 AM | #40 |
Grand Sorcerer
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 To see all the options on the for command, in a command window type Code:
for /? |
03-28-2015, 08:52 AM | #41 |
Wizard
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 |
03-28-2015, 10:33 AM | #42 |
Grand Sorcerer
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" 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" 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. |
03-28-2015, 10:36 AM | #43 |
Wizard
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
|
03-28-2015, 11:09 AM | #44 |
Grand Sorcerer
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" |
03-28-2015, 11:13 AM | #45 |
Grand Sorcerer
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" Code:
for /r %1 in (*.original_epub) do 7za a "%~pn1".7z "%1" Last edited by PeterT; 03-28-2015 at 11:16 AM. |
|
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 |