Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2017, 05:13 PM   #1
JimPhelps
Member
JimPhelps began at the beginning.
 
JimPhelps's Avatar
 
Posts: 22
Karma: 10
Join Date: May 2016
Location: Georgia, USA
Device: Kindle Paperwhite, Nook HD+, LG G4
Question about adding Text to an EPUB with Calibre

I've got an ebook that is literally missing about 15 pages from the actual book and I'm trying to add it back in. I've been transcribing the missing pages from the actual book. I was doing it in Calibre's edit feature, but since its so much to add, I've been transcribing the missing part on Wordpad and was going to just copy and paste what's missing into the editor when I finished.

My question though, in order to preserve the line breaks and paragraphs, will I need to copy and paste this piecemeal where i want the line breaks by adding the <p class="calibre2"> and </p> for every place I want the line breaks or can I just copy and paste the whole document into the book and hit the Beautify Ebook button to do it more quickly without wasting my time?

Since I discovered this feature, I actually have a ton of ebooks that I need to fix (spelling errors and table of contents mainly) and this would just be helpful that I won't have to waste a lot of time if there is a smarter way to do this.
JimPhelps is offline   Reply With Quote
Old 03-05-2017, 05:55 PM   #2
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: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Tricky because the class assigned to a paragraph tag may be different between books

Maybe this will work for your (simple) text files
Pre process before attempting the merge

I will assume you have a WIP library (work in progress)
1)add the TXT file to the Library
2)convert to EPUB
3) now using the editor, bulk change the class= to the new selector

NOTE this name may be in use other places SO YOUR PREVIEW MAY LOOK OFF

Save (just in case)
simplest, if small)
Copy all to Clipboard
Now switch the editor to the destination book ( previously edit the book, so it will be listed in the file history)
4) Create a (temporary) New (blank) File in the book.
5) paste the clipboard into the blank file, remember to link the stylesheet if you want to preview
6)Move the text to its home as desired

That should do it
theducks is online now   Reply With Quote
Advert
Old 03-07-2017, 12:55 AM   #3
JimPhelps
Member
JimPhelps began at the beginning.
 
JimPhelps's Avatar
 
Posts: 22
Karma: 10
Join Date: May 2016
Location: Georgia, USA
Device: Kindle Paperwhite, Nook HD+, LG G4
I think I understand what you mean. So I'm going to give this a try. Thanks. Hopefully, this will come out right.
JimPhelps is offline   Reply With Quote
Old 03-07-2017, 01:06 AM   #4
JimPhelps
Member
JimPhelps began at the beginning.
 
JimPhelps's Avatar
 
Posts: 22
Karma: 10
Join Date: May 2016
Location: Georgia, USA
Device: Kindle Paperwhite, Nook HD+, LG G4
Hot diggity _____! It did! Thank you so much! That worked so much better than the piecemeal way of copying and pasting I thought I was going to have to do in order to finish this. Thanks!
JimPhelps is offline   Reply With Quote
Old 03-07-2017, 09:48 AM   #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: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
There might be a simpler way, someone else may have an idea.
I am willing to do steps rather than pulling out what little hair left, trying to figure a 100% automated way.

Who knows, while you are shuffling my way, you might spot some other problem
theducks is online now   Reply With Quote
Advert
Old 03-08-2017, 12:16 AM   #6
JimPhelps
Member
JimPhelps began at the beginning.
 
JimPhelps's Avatar
 
Posts: 22
Karma: 10
Join Date: May 2016
Location: Georgia, USA
Device: Kindle Paperwhite, Nook HD+, LG G4
Oh I wasn't being sarcastic...it did work for me...lol. For some reason, when I was quoting Bender from Futurama it changed "Daffodil" to a blank line...oh well. Anyway, it worked, my thanks to ya ducks. Now I just gotta start learning what all I can and need to do to add chapter breaks in my books that don't have them since they won't sync between my 2 ereaders. Thanks again!
JimPhelps is offline   Reply With Quote
Old 03-08-2017, 03:02 AM   #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: 30,944
Karma: 60358908
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 JimPhelps View Post
Oh I wasn't being sarcastic...it did work for me...lol. For some reason, when I was quoting Bender from Futurama it changed "Daffodil" to a blank line...oh well. Anyway, it worked, my thanks to ya ducks. Now I just gotta start learning what all I can and need to do to add chapter breaks in my books that don't have them since they won't sync between my 2 ereaders. Thanks again!
I am in the Chapter per file camp.
In the Editor, open the preview pane.
At the bottom there is a Icon (the tool tip will let you know) that looks like two pages. Click that, then move the cursor to where the break sould be (a Green line appears) Click. Repeat for each split point
theducks is online now   Reply With Quote
Old 03-13-2017, 06:39 AM   #8
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by theducks View Post
I am in the Chapter per file camp.
In the Editor, open the preview pane.
At the bottom there is a Icon (the tool tip will let you know) that looks like two pages. Click that, then move the cursor to where the break sould be (a Green line appears) Click. Repeat for each split point
Or right-click the file, and then select "split at multiple locations". I generally merge all the files into one and then re-split them on h1/h2 tags when the file breaks are in random places rather than on chapter boundaries.
Phssthpok is offline   Reply With Quote
Old 03-13-2017, 07:11 AM   #9
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: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Phssthpok View Post
Or right-click the file, and then select "split at multiple locations". I generally merge all the files into one and then re-split them on h1/h2 tags when the file breaks are in random places rather than on chapter boundaries.


BR

Last edited by BetterRed; 03-13-2017 at 07:26 AM.
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding purchased epub books to Calibre Philipgc Library Management 4 11-14-2012 02:12 PM
Adding .epub hangs Calibre HowardBrazee Calibre 11 02-23-2012 08:58 AM
Adding book to NOOK with Calibre question - wierd files appeared Snauzoo Calibre 3 07-22-2011 10:57 AM
Adding Epub to Calibre Issue Arkayas Library Management 0 05-16-2011 12:04 PM
Calibre - adding books question Roberta Carrota Calibre 4 01-09-2011 04:31 PM


All times are GMT -4. The time now is 12:17 AM.


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