Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2020, 11:55 AM   #1
mb2u
Enthusiast
mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.
 
Posts: 25
Karma: 6052
Join Date: Jul 2013
Device: Kobo Touch and Mini
How to add to a TOC in MOBI/EPUB files?

I have some reference material on MOBI and EPUB but its such a pain to try to find a particular spot because the Table of Contents isn't broken down enough. How can I add more detail to the existing TOC or do I need to start a fresh one? On paper things are so easy to find because it usually tells you at the top/bottom of each page the page number and chapter so you always know where you are. As this doesn't exist on digital documents without breaking up the flow (though it could be displayed as an option when needed!), I think I need to redo the TOC.

It has to integrate with the paper version, unlike most ereaders' attempt at showing you the "progress" bar. You can spend several minutes looking for a particular spot on an ereader. This is by far their weakest area that really needs to be addressed.

The problem may be people usually use ereaders for entertainment and not for learning. They get a book (often bought though millions are available for free if they venture away from Amazon, etc), read it and delete it. Its never read again. This is very profitable for the ebook seller! This is very expensive for the consumer!

With good organization (the manufacturers wanting to encourage consumption don't make it easy to organize lots of books at a time on their devices with only one level of folders/collections/groups usually available), you can have quite a pile of books on your ereader. What we need is to be able to organize all our material on our computer, then transfer the entire thing to the ereader. Or link the ereader and do it from the computer. Organizing on the ereader is a tortuous pain.

Last edited by mb2u; 12-06-2020 at 12:03 PM.
mb2u is offline   Reply With Quote
Old 12-06-2020, 02:07 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mb2u View Post
How can I add more detail to the existing TOC or do I need to start a fresh one?
It's relatively easy to automatically generate a new TOC, if all headings are formatted as h1..h6 tags.

For example:

Code:
<h1>Chapter 1</h1>
Unfortunately, that's rarely the case. Most likely your chapter headings look like this:

Code:
<p class="calibre7"><span class="calibre8">Chapter 1</span></p>
If you're familiar with regular expressions, you can write a regular expression to replace the <p> tags with <h1> tags.

Once all headings are formatted as h1..h6 tags, you can re-generate the TOC:

a) Calibre Editor: Tools > Table of Contents > Edit Table of Contents > Generate ToC from all headings
b) Sigil: Tools > Table of Contents > Generate Table of Contents.

(Of course, you could also manually add/remove TOC entries in Calibre Editor or Sigil.)
Doitsu is offline   Reply With Quote
Advert
Old 12-06-2020, 02:32 PM   #3
mb2u
Enthusiast
mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.
 
Posts: 25
Karma: 6052
Join Date: Jul 2013
Device: Kobo Touch and Mini
I don't even see the "Calibre Editor" anywhere. I'm using version 5.6. Do I need to download Calibre Editor separately or is it in the main Calibre program? Using Win7.

And what is Sigil?
mb2u is offline   Reply With Quote
Old 12-06-2020, 02:44 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mb2u View Post
I don't even see the "Calibre Editor" anywhere.
It comes with Calibre. To open it, right-click a book and select Edit book.

Quote:
Originally Posted by mb2u View Post
And what is Sigil?
Sigil is a stand-alone epub editor. Here's the download link for the latest version.
Doitsu is offline   Reply With Quote
Old 12-06-2020, 03:07 PM   #5
mb2u
Enthusiast
mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.mb2u got an A in P-Chem.
 
Posts: 25
Karma: 6052
Join Date: Jul 2013
Device: Kobo Touch and Mini
Does this tell you anything? Its numbered on the left column. Here are the first 6 sections. "Matthew" is the name of the chapter.

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MATTHEW</title>
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
<link href="../stylesheet.css" type="text/css" rel="stylesheet"/><style type="text/css">
mb2u is offline   Reply With Quote
Advert
Old 12-06-2020, 03:29 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mb2u View Post
Does this tell you anything?
That's just the preamble. The actual text starts somewhere after the <body> tag. For example:

Code:
<xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
</head>

<body>
  <p>This is the first paragraph.</p>
No offense, but it might be easier for you, if you simply downloaded free New Testament epubs with better TOCs.
American Bible Union
King James
Others

Last edited by Doitsu; 12-06-2020 at 03:33 PM.
Doitsu is offline   Reply With Quote
Old 01-09-2021, 02:06 AM   #7
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Doitsu View Post
That's just the preamble. The actual text starts somewhere after the <body> tag. For example:

Code:
<xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
</head>

<body>
  <p>This is the first paragraph.</p>
No offense, but it might be easier for you, if you simply downloaded free New Testament epubs with better TOCs.
American Bible Union
King James
Others
Doits, don't you think he should ask the mods to move this to the Workshop subforum?

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple HTML files w/ TOC to MOBI, not added in order listed in TOC dysfunction Conversion 3 01-03-2014 01:40 AM
mobi to epub toc nlundberg Conversion 0 07-12-2013 06:42 PM
Can't add TOC link to MOBI file!!! karenbryant Calibre 3 09-16-2012 10:04 AM
ePub TOC to mobi TOC edmnddntes Conversion 5 01-24-2011 03:56 AM
Is there a way to add only mobi files? carld Calibre 6 10-04-2010 02:00 PM


All times are GMT -4. The time now is 08:15 AM.


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