Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

One file per chapter

From: Creating Ebooks for the Kindle

Video: One file per chapter

Currently, the book we have here, is in one big long file from So I'm just going to double click on this third file now to open this one up like

One file per chapter

Currently, the book we have here, is in one big long file from start to finish and we need to split that down, to make it easier for the device. So, we can do that in a couple of different ways. In fact, if I come down to the beginning of A Study in Scarlet, just here, and click just before that. I can then go to the Edit menu and choose Split at Cursor. You see that now generates a separate file, like so.

I can also browse through the book and insert split markers. So, we go to the beginning of part one. Just here for example. I can go to the insert menu and choose split marker. It even has a shortcut. Notice that what that does is it puts a line there. I'm going to switch to the code view by clicking on the chevrons here and let's just have a look at what that actually does. If we come down to here, you can see it puts a horizontal rule HTML element in with the class schedule split marker.

So I'm actually going to copy that because that will come in really useful in just a moment. So I'll switch back to the book view like so. If I had worked my way thorough and put those split markers in, I could then go to the edit menu and choose split at markers from there and you see it does exactly that. So I'm just going to double click on this third file now to open this one up like so and I'm going to use find and replace to do the job for me.

The structure inside of this is predominantly made with H1 elements. If I switch over to code view, you'll see the h1 there for Part 1 and just a little way down, you see the h1 for part one, chapter one inside of there as well. So I'm going to bring in Find and Replace Command F or Control F, or if you wanted to go to the search menu at the top, you'll find find change in there. So what I'm going to ask this to do is I'm going to ask it to find the beginning of any page one tag.

Then I'm going to get it to replace it, this is where I'm going to paste in that HRClassSigil split marker, just there, and then I'm going to type the beginning of the H1 tag again, with a space on the end, just there. So that will replace the beginning of the H1 tag with this extra piece of markup. I need to do it just across this file so I'm going to choose the current file from the mode selectors which is there and it even highlights in a fantastic huge tool tip there where it's going to search like so and so I'm just going to check this.

I'm going to click find first. It finds the next instance which is just great and then I'm going to choose Replace All so just looking at that now, you can see that in any h1, there's an hr being placed before it. And so now I can go to the Edit menu and choose Split At Markers, and then it generates me all of the files I need. So if I just go into here like so it's just one place in it so I just close the fine change dialogue down at the very end here where this doesn't have H1's for the publication information so I'm just going to click there and then go edit, split, at cursor just to drop that across into its own file.

There you are. That's how we can split files apart, inside of Sigel.

Show transcript

This video is part of

Image for Creating Ebooks for the Kindle
Creating Ebooks for the Kindle

46 video lessons · 1609 viewers

Tony Harmer
Author

 
Expand all | Collapse all
  1. 3m 58s
    1. Welcome
      48s
    2. What you should know before watching this course
      56s
    3. Using the exercise files
      2m 14s
  2. 8m 10s
    1. IDPF, AZW, and other formats
      1m 44s
    2. Why so many formats?
      1m 33s
    3. calibre and Sigil (where to get them and what they do)
      3m 17s
    4. Kindle Previewer
      1m 36s
  3. 5m 44s
    1. InDesign CS4 to CC
      2m 47s
    2. The Kindle Plugin for InDesign
      2m 57s
  4. 14m 50s
    1. From Word to EPUB
      4m 40s
    2. From Pages to EPUB
      2m 35s
    3. From plain text to EPUB
      4m 31s
    4. Adding images to plain-text conversions
      2m 11s
    5. From HTML or XHTML to EPUB
      53s
  5. 23m 28s
    1. What tools are out there?
      1m 22s
    2. KindleGen
      2m 7s
    3. What can Sigil do?
      2m 21s
    4. A tour of calibre
      4m 36s
    5. A brief XHTML primer
      7m 4s
    6. A brief CSS primer
      5m 58s
  6. 29m 14s
    1. Adding a cover
      2m 36s
    2. Adding or editing metadata
      1m 54s
    3. One file per chapter
      3m 9s
    4. Renaming files
      3m 20s
    5. Building the table of contents
      4m 54s
    6. Adding or editing links
      5m 13s
    7. Loading a dictionary
      2m 8s
    8. Checking spelling
      1m 54s
    9. Validating your EPUB
      4m 6s
  7. 25m 55s
    1. Adding a cover
      1m 21s
    2. Adding or editing metadata
      2m 33s
    3. One file per chapter
      3m 43s
    4. Renaming files
      3m 16s
    5. Building the table of contents
      3m 12s
    6. Adding or editing links
      2m 49s
    7. Loading a dictionary
      1m 17s
    8. Checking spelling
      1m 17s
    9. Validating your EPUB
      6m 27s
  8. 20m 20s
    1. Converting with calibre
      1m 58s
    2. Converting with KindleGen
      5m 29s
    3. Kindle Previewer
      5m 20s
    4. Amazon's Kindle Direct Publishing (KDP)
      2m 37s
    5. Amazon's lending options
      1m 31s
    6. Looking inside
      1m 36s
    7. Forums
      1m 49s
  9. 1m 36s
    1. Where to go from here
      1m 36s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating Ebooks for the Kindle.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.