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 04-29-2012, 09:27 AM   #1
Cleophauna
Member
Cleophauna began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2012
Location: FL
Device: Kobo Clara HD
Question Editing conversion of PDF to EPUB

I converted a PDF to EPUB. (using Calibre)The only problem Is that a couple of chapters converted every sentence to a paragraph as well as individual words to paragraphs. I unzipped and edited the individual html files, didn't change any filenames, rezipped and the chapters I edited now don't show up when opening the epub. Did I miss something? I used kompozer to edit the files. This is my first attempt at editing. This type of problem is extremely annoying to me, which prompted me to learning how to correct it.

I assumed that as long as I didn't change any structure, or filenames I'd be safe. But you know what they say when you "Assume".
Cleophauna is offline   Reply With Quote
Old 04-29-2012, 10:20 AM   #2
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)
Probably a better less error-prone way would be to use Sigil (an open source epub WYSWIG editor) to do the editing after conversion to ePub. That would ensure that everything stayed properly epub compatible.
itimpi is offline   Reply With Quote
Advert
Old 04-29-2012, 11:18 AM   #3
Cleophauna
Member
Cleophauna began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2012
Location: FL
Device: Kobo Clara HD
Thanks, I finally found some other posts that suggested converting to RTF, cleanup and then convert to EPUB. In this instance it worked just fine. The spacing is still off a little bit, but tolerable.

I still would like to know why editing the html file messed the book up. Maybe it's a calibre thing. I haven't tried it on an original epub yet. No reason to
Cleophauna is offline   Reply With Quote
Old 04-29-2012, 11:44 AM   #4
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 Cleophauna View Post

I still would like to know why editing the html file messed the book up. Maybe it's a calibre thing. I haven't tried it on an original epub yet. No reason to
I guess the question is "what HTML file"? I had assumed that you opened up the ePub file to edit the contained HTML files? If that was the case then Calibre was no longer involved so if anything went wrong it was something you did during the edit. However maybe there was a step you left out in your original description that gave you the HTML file?
itimpi is offline   Reply With Quote
Old 04-29-2012, 12:40 PM   #5
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,800
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 Cleophauna View Post
Thanks, I finally found some other posts that suggested converting to RTF, cleanup and then convert to EPUB. In this instance it worked just fine. The spacing is still off a little bit, but tolerable.

I still would like to know why editing the html file messed the book up. Maybe it's a calibre thing. I haven't tried it on an original epub yet. No reason to
Did you use Tweak EPUB feature of Calibre to explode and reassemble the EPUB?
EPUB is sensitive to specific assembly rules that a basic Zip does not follow.
theducks is offline   Reply With Quote
Advert
Old 04-29-2012, 01:29 PM   #6
Cleophauna
Member
Cleophauna began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2012
Location: FL
Device: Kobo Clara HD
I used calibre to convert from pdf to epub. I then manually unzipped and edited outside of calibre. I used kompozor to edit the individual html files and then used xp's zip to put back into a zip file. Wasn't aware that I could do all that from within calibre.

So it could be using an external zip program messed it up? I thought that as long as I didn't mess with file names, the structure would be safe.

This whole epub structure thing has somewhat of a learning curve, but, I'm jumping in anyway.
Cleophauna is offline   Reply With Quote
Old 04-29-2012, 02:12 PM   #7
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,800
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 Cleophauna View Post
I used calibre to convert from pdf to epub. I then manually unzipped and edited outside of calibre. I used kompozor to edit the individual html files and then used xp's zip to put back into a zip file. Wasn't aware that I could do all that from within calibre.

So it could be using an external zip program messed it up? I thought that as long as I didn't mess with file names, the structure would be safe.

This whole epub structure thing has somewhat of a learning curve, but, I'm jumping in anyway.
Since you have Calibre, use the built in tool (Tweak EPUB) to do that wor
km.
You can still edit the pieces with Komposer , Then reassemble using the (still open) Tweak Tool.
The file name rule still applies if you don't want to dig into the 2 other files (OPF, NCX)

Last edited by theducks; 04-29-2012 at 03:57 PM. Reason: typo
theducks is offline   Reply With Quote
Old 04-29-2012, 02:25 PM   #8
Cleophauna
Member
Cleophauna began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2012
Location: FL
Device: Kobo Clara HD
Off to try again with Tweak EPUB. Thanks for the info.
Cleophauna is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion PDF -> Epub rudmueller Conversion 0 09-11-2011 10:44 AM
PDF to EPUB Conversion LuchoResto General Discussions 1 11-19-2010 04:54 PM
PDF to EPUB conversion jfontana Calibre 2 03-17-2010 03:09 AM
pdf to epub conversion mediax Sigil 16 11-19-2009 03:48 PM
Help with conversion from PDF to EPUB Fizz Calibre 5 10-25-2009 11:48 AM


All times are GMT -4. The time now is 01:35 AM.


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