Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2010, 04:43 PM   #1
crazyknitter42
Junior Member
crazyknitter42 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: nook
wondering how to create chapters....

I have a nook, and am in the process of creating some documents as pdf to be converted to epub.
I want to give these documents 'chapters', so that I can search faster on the nook.
Is there a tutorial somewhere? Or can someone tell me a bit of how to do this with calibre?
crazyknitter42 is offline   Reply With Quote
Old 11-01-2010, 05:17 PM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 62,488
Karma: 39919465
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
Don't create PDF files if you're subsequently going to want to convert to some other format; PDF files convert very badly to other formats. Save your files in a format such as HTML which can easily be converted. If you save a separate HTML file per chapter, you'll automatically have chapter breaks in the resulting ePub file.
HarryT is online now   Reply With Quote
 
Enthusiast
Old 11-01-2010, 08:07 PM   #3
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 543
Karma: 64420
Join Date: Feb 2010
Device: none
Or, rather than breaking into individual files yourself, just insure that each chapter has a header such as

Code:
<h2>Chapter One</h2>
etc. when the file is saved as one big HTML file.

Then tell calibre to look for the h2 tag and break chapters based on that.
st_albert is offline   Reply With Quote
Old 11-01-2010, 08:55 PM   #4
Ankh
Guru
Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.
 
Ankh's Avatar
 
Posts: 707
Karma: 2003741
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Touch
Quote:
Originally Posted by st_albert View Post
Then tell calibre to look for the h2 tag and break chapters based on that.
I am not sure (and would like to be corrected if I am wrong) that this is equivalent to what HarryT suggested.

I think that calibre will create TOC entries based on <h2> tags, but will not create an individual xhtml file for each chapter. I know for sure that ADE on my prs505 favours bigger number of smaller files inside epub. A chapter per xhtml file is about right.
Ankh is offline   Reply With Quote
Old 11-01-2010, 09:47 PM   #5
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 543
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Ankh View Post
I am not sure (and would like to be corrected if I am wrong) that this is equivalent to what HarryT suggested.

I think that calibre will create TOC entries based on <h2> tags, but will not create an individual xhtml file for each chapter. I know for sure that ADE on my prs505 favours bigger number of smaller files inside epub. A chapter per xhtml file is about right.
Not exactly what HarryT was suggesting. He suggested you manually break the text apart into chapters. I am suggesting you let calibre do that. Yes, it really will. Here's how:

If you are converting, say, one single html file to epub, and in that html file all your chapters have an <h1>Chapter so-and-so</h1> header you can put the html file into calibre and click on "convert books." In the pop up menu, select the "structure detection" tab and use the wizard for "detect chapters at" to indicate what the chapter tags are (<h1> in the above example). For "chapter mark" select "pagebreak" in the drop-down box.

Then on the "EPUB output" page, be sure "Do not split on page breaks" is NOT checked. That should cause calibre to break up the book by chapter, when you perform the conversion.
st_albert is offline   Reply With Quote
Old 11-02-2010, 08:19 AM   #6
crazyknitter42
Junior Member
crazyknitter42 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: nook
Thanks. I am going to give this a try.
crazyknitter42 is offline   Reply With Quote
Old 11-02-2010, 08:23 AM   #7
jbcohen
Wizard
jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.
 
jbcohen's Avatar
 
Posts: 2,631
Karma: 3713996
Join Date: Oct 2010
Location: Palanthas
Device: Kindle 5 Paperwhite
Personally I think this is a function of the word processor that you are using to acomplish the task. Open Office has a function to acomplish that at the click of an icon. I think its the only office suite that provides for this.
jbcohen is offline   Reply With Quote
Old 11-02-2010, 06:05 PM   #8
crazyknitter42
Junior Member
crazyknitter42 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: nook
I tried it. It didn't work. So, I am trying to figure out what I did wrong or what I need to do differently.
crazyknitter42 is offline   Reply With Quote
Old 11-02-2010, 08:44 PM   #9
Ankh
Guru
Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.
 
Ankh's Avatar
 
Posts: 707
Karma: 2003741
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Touch
Quote:
Originally Posted by st_albert View Post
I am suggesting you let calibre do that. Yes, it really will. Here's how:

If you are converting, say, one single html file to epub, and in that html file all your chapters have an <h1>Chapter so-and-so</h1> header you can put the html file into calibre and click on "convert books." In the pop up menu, select the "structure detection" tab and use the wizard for "detect chapters at" to indicate what the chapter tags are (<h1> in the above example). For "chapter mark" select "pagebreak" in the drop-down box.

Then on the "EPUB output" page, be sure "Do not split on page breaks" is NOT checked. That should cause calibre to break up the book by chapter, when you perform the conversion.
Worked like a charm. Thanks, have some karma.
Ankh is offline   Reply With Quote
Old 11-02-2010, 09:44 PM   #10
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 543
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by crazyknitter42 View Post
I tried it. It didn't work. So, I am trying to figure out what I did wrong or what I need to do differently.
So am I. Care to provide some details as clues?

What did you start with?

What settings did you use (in calibre)?

What was the result? I.e. what happened that you did not want/expect?

Any error messages? Or other wierdness that seemed strange to you?

etc.

If I understand what you were trying to do, I think it should work almost with default calibre settings. At least, it has for me. I have converted pdf -> html via pdftohtml + pdfreflow, then html -> epub via calibre.

The last step has worked a treat for me so far. The first two steps, not so much. Which is why HarryT recommended that you NOT start with a pdf.

YMMV
st_albert is offline   Reply With Quote
Old 11-02-2010, 10:53 PM   #11
Ankh
Guru
Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.
 
Ankh's Avatar
 
Posts: 707
Karma: 2003741
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Touch
Quote:
Originally Posted by st_albert View Post
If I understand what you were trying to do, I think it should work almost with default calibre settings.
Not almost, those are the default settings in the latest release.
Ankh is offline   Reply With Quote
Old 11-02-2010, 11:33 PM   #12
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 543
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Ankh View Post
Not almost, those are the default settings in the latest release.
What I meant by "almost" was that one MAY have to modify the settings to identify chapter headers. Otherwise, the defaults will stand.

Glad you were able to make it work for you. It is a powerful piece of software, especially for those who are willing to put forth some effort to discover how it might work for them.

Just sayin'
st_albert is offline   Reply With Quote
Old 11-03-2010, 05:25 AM   #13
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Of course you can also load your epub in Sigil (or HTML) and place chapter marks there. Works like a charm and you can easily if the result is what you want.
Toxaris is offline   Reply With Quote
Old 11-03-2010, 03:04 PM   #14
crazyknitter42
Junior Member
crazyknitter42 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: nook
Quote:
Originally Posted by st_albert View Post
So am I. Care to provide some details as clues?

What did you start with?

What settings did you use (in calibre)?

What was the result? I.e. what happened that you did not want/expect?

Any error messages? Or other wierdness that seemed strange to you?

etc.

If I understand what you were trying to do, I think it should work almost with default calibre settings. At least, it has for me. I have converted pdf -> html via pdftohtml + pdfreflow, then html -> epub via calibre.

The last step has worked a treat for me so far. The first two steps, not so much. Which is why HarryT recommended that you NOT start with a pdf.

YMMV
I know how to convert a pdf to a html, but what is this "pdfreflow"?

Stange, when I put in the <h1>chapter-so-and-so</h1> my document did not accept it as a "code" but just letters part of the chapter so my.
What did I do wrong?
crazyknitter42 is offline   Reply With Quote
Old 11-03-2010, 05:49 PM   #15
Ankh
Guru
Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.Ankh ought to be getting tired of karma fortunes by now.
 
Ankh's Avatar
 
Posts: 707
Karma: 2003741
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Touch
Quote:
Originally Posted by st_albert View Post
It is a powerful piece of software, especially for those who are willing to put forth some effort to discover how it might work for them.
And those who continue to closely follow it's development. Which is not easy, considering how productive Kovid is.

There was a time when calibre would not by default split chapters into separate (x)html files. The Baen's Honorverse ePubs are that way, and they were converted using (one of the previous versions of) Calibre.
Ankh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unutterably Silly Just Wondering...... recluse Lounge 10 07-13-2010 12:55 PM
Just Wondering... recluse Lounge 11 03-01-2010 01:34 AM
ePub Chapters vs. Stanza Chapters kjk Sigil 4 09-14-2009 10:50 AM
just wondering kelly1010 Sony Reader 30 04-01-2009 11:39 PM
create chapters at regular intervals? WarumIch Calibre 11 03-23-2009 04:52 PM


All times are GMT -4. The time now is 01:29 PM.


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