![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 1010000
Join Date: Jul 2008
Device: PRS505
|
What do you use for editing epub files after creation?
and also do programs like epubcheck help me verify the created epub files?
I'm finding about 1/25 epub files just don't work at all in my sony, and crash at some point during the book forcing the reader to reboot. |
![]() |
![]() |
![]() |
#2 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
You can edit an EPUB book using 'unzip', the text/HTML editor of your choice, then 'zip'. Check out HXA's "Epub Format Construction Guide" for some details on the necessary arguments to the 'zip' command-line tool when re-archiving the book. (You're on your own if doing this with a GUI -- best of luck.) |
|
![]() |
![]() |
![]() |
#3 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I just unzip the .epub and edit the files with vim.
To re-create the .epub I have this script: Code:
#!/bin/bash FILE="Title of the Book.epub" rm -f "$FILE" zip -X0 "$FILE" mimetype zip -X9Dr "$FILE" META-INF OEBPS |
![]() |
![]() |
![]() |
#4 |
book creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,657
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
I just unzip them, too and edit them with Notetab Light. Well, if things are not too complicated, I edit in the epub file directly by opening the epub as I would a zip, open the file (mostly ncx anyway) and resave it directly to the zip folder.
Last edited by mtravellerh; 01-07-2009 at 05:34 AM. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2009
Device: psr 505
|
how would you re-create the epub file on OSX?
|
![]() |
![]() |
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Doesn't OSX have a command line zip? If it does, you can use what I wrote above:
Code:
zip -X0 file.epub mimetype zip -X9Dr file.epub META-INF OEBPS |
![]() |
![]() |
![]() |
#7 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Those flags should work fine on OS X.
I have a command aliased that gets rid of all the .DS_Store files that I run first. I then run the first zip line exactly as Jellby has it listed. For the second pass at the zip I use 'zip -r file.epub * -x mimetype'. Default compression settings are okay with me, and I'm assuming everything else in the directory should end up in the ePub anyways (I clean the directory up beforehand). The extra file attributes don't seem to cause any problems (unlike with the mimetype), but I should probably go ahead and add the -X into the second zip command anyways. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I use is WinRAR to access the contents of the ePub. It works very well. I don't need to rename the ePub from .epub to .zip ever. I just right click and slect open with WinRAR.
When I edited any of the files (non-graphics), I use Notepad++ as it works very well and has very nice regex. Plus, since ePub is split into multiple files, I can load all the HTML files in one go and do search/replace on all of them like they were one file. So I do not have to make the same corrections umpteen different times. And best of all, Notepad++ is free. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub creation is a breeze | mtravellerh | Sigil | 12 | 12-07-2009 03:21 AM |
on-the-fly epub creation | ilovejedd | ePub | 19 | 04-16-2009 07:36 PM |
epub creation tools | jbenny | ePub | 20 | 03-13-2009 12:30 PM |
ePub creation / conversion | philippd | ePub | 8 | 06-04-2008 04:23 AM |
Yet another creation question: Is it possible to split files? | mflood | Sony Reader | 5 | 02-28-2008 04:39 PM |