02-13-2017, 05:39 PM | #1 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Can I convert Epub 3.0 to 2.0?
Can I convert an Epub 3.0 that I created with Sigil to Epub 2.0?
I've found the setting in Preferences that lets me create new projects in the 2.0 format. But I'd like to make a copy of a 3.0 project and change it to 2.0. I found this code in the content.opf file... Code:
<package version="3.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf"> Another possibility is that I could create a new project in 2.0, then open my 3.0 project with eCanCrusher and import the files into my new project. |
02-13-2017, 05:48 PM | #2 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
There's no built-in option and no plugin for converting epub3 books to epub2 books, however, since Sigil generates epub2 compatible epub3 books by default and Amazon KDP will accept valid epub3 books as input files, there's hardly any reason to convert epub3 books to epub2 books unless your book aggregator/distributor won't accept epub3 books.
|
Advert | |
|
02-13-2017, 06:13 PM | #3 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Everyone's been telling me that I should forget about Epub 3.0 and publish in the 2.0 format.
|
02-13-2017, 06:29 PM | #4 |
Resident Curmudgeon
Posts: 75,991
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
02-13-2017, 07:31 PM | #5 |
Grand Sorcerer
Posts: 27,942
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Actually, no they're not "correct". A fairly decent chunk of the commercial epubs i buy and read these days are epub3.
To the OP: there is no automated way from epub3 back to epub2. Not with Sigil anyway. You wouldn't be able to change that package version attribute within Sigil even if you wanted to. |
Advert | |
|
02-13-2017, 07:44 PM | #6 | |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
I created a new project (2.0) and imported all my files from the 3.0 version. It seems to be working OK, so far. I have to reorder all my pages, but it looks like you do that by simply dragging them into position. |
|
02-13-2017, 08:02 PM | #7 |
A Hairy Wizard
Posts: 3,200
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Looks like you got it figured out. However, for anyone else that might be wondering how to do this:
1) Rename the file extension from .epub to .zip 2) Open up the zip file and navigate to the .opf file 3) Change the <package version="3.0" ...> to version="2.0" 4) Save the zip 5) Rename the file extension from .zip to .epub 6) Open with your epub editor of choice and remove any other ePub3 specific tags that you don't wish to keep. i.e. <section></section> You can create a basic ePub3 (one that doesn't use all the extra media features) and it will be readable in most of your larger devices/apps. ePub3 is the successor to ePub2 (at least until a newer version comes out) and more devices/apps are supporting those files. I dare to say that all of the current devices/apps still support ePub2 so that's why the majority of ePubs are still made in the version 2 format. If your target audience supports ePub3, then there really isn't a reason to avoid ePub3...it doesn't hurt anything...other than, maybe the sensibilities of a certain individual here on MR. |
02-13-2017, 08:04 PM | #8 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
That's what I was thinking - make one version for a general audience and a more fully featured version for the Apple crowd, or any other device that might support it. I'm thinking of embedding some audio files in one book, and it sounds like Epub 2.0 doesn't support that.
|
02-14-2017, 02:04 AM | #9 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
epub3 IN, epub2 OUT, easy peasy, all on default settings { because I could not perform some sigil edit in an epub 3 source, I tried the above & it worked 1st time. I was able to edit the output file which sigil reported as being epub 2 } |
|
02-14-2017, 04:21 AM | #10 | |
Grand Sorcerer
Posts: 27,942
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If you're happy with the outcome, that's all that matters. Just know that a full calibre epub to epub conversion to go from 3 to 2 is a pretty drastic solution (from a volume-of-code altered standpoint). Especially if the ultimate goal is to get the epub into Sigil for editing. Most commercial epub3s can be manually converted fairly simply with Turtle91's above described procedure. With something like 7Zip, you can even edit the OPF within the epub archive and skip all the renaming unzipping/rezipping. I'll see if I can't resurrect my input plugin that fixed opfs that incorrectly had 1.0 package versions and adapt it to change the 3.0 to 2.0. It won't automatically convert an epub3 to epub2 entirely, but it should get one into Sigil in an editable state where the rest can be done manually. Last edited by DiapDealer; 02-14-2017 at 04:33 AM. |
|
02-14-2017, 04:34 AM | #11 |
Grand Sorcerer
Posts: 6,351
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
@DiapDealer, I do this as a routine when the warning about nav.xhtml appears in calibre editor (plain epub, really). Is there any secondary effect that you know?
|
02-14-2017, 04:36 AM | #12 |
Resident Curmudgeon
Posts: 75,991
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I do change ePub 3 to ePub 2. I use Notepad++ or Calibre's editor to do so. It's not difficult to do so. It means the ePub I end up with is more compatible overall. These eBooks do not need any ePub 3 specific features. Making them ePub 3 is silly. It just causes code bloat. i prefer to have the simplest code possible to do the job.
|
02-14-2017, 04:53 AM | #13 | |
Grand Sorcerer
Posts: 27,942
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But then I don't do a lot of EPUB3 to EPUB2 conversions these days. Quite the opposite, in fact. I prefer the EPUB3 renderer in the Bookari reading app, so if the books I buy aren't already EPUB3, I tend to use Sigil's Epub3-itizer plugin to make them that way. |
|
02-14-2017, 04:54 AM | #14 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
I had not even realised it was epub3 until I looked into why the operation was not being allowed... it's been a while but I am pretty sure it would not let me delete a specific xhtml file from the left hand list, while in epub3, and the error message was something about operation not allowed. I remember googling that for a clue... I don't think I have an epub3 source to hand, else I'd try to replicate it for you.... ....update: I did keep a copy. i wanted to delete toc.xtml from the top of the left window files list, expecting the "real" toc to be elsewhere in the epub (i.e. as toc.ncx at the bottom of that list ), and I got " the nav document cannot be removed"... is there a difference in where the toc is usually placed & how it is named, between e2 & e3 or was that something specific to this source. Sigil, when operating on epub2 , allows delete/ rename etc... for anything in that left window file list ? Last edited by stumped; 02-14-2017 at 05:06 AM. |
|
02-14-2017, 04:57 AM | #15 | |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
And should you encounter a commercial epub3 book without an NCX file, you can easily add one with Sigil (Tools > Epub3 Tools > Generate NCX from Nav). |
|
Tags |
2.0, 3.0, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extractor.epub: Convert VitalSource EPUBBook to regular EPUB | cyanic | Other formats | 1 | 11-08-2015 05:08 AM |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |