Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 09-26-2012, 01:47 PM   #31
Jesse Chisholm
Enthusiast
Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.
 
Jesse Chisholm's Avatar
 
Posts: 27
Karma: 56200
Join Date: Jul 2011
Location: California
Device: none
Quote:
Originally Posted by DiapDealer View Post
H* tags always trigger a page-break-before on the Kindle. That's not always desirable. Like chapter numbers with a (same-sized) chapter name beneath it. Nobody wants a pagebreak in between those two items, so they use a P tag with CSS to simulate a header.

I wish chapter headers were more consistently tagged, but I also understand why they're oftentimes not.
The workaround for this is, naturally:
<h1>ChapterNumber<br>Chapter Name</h1>

But there will be cases (like the TOC) where that doesn't look quite right either.

UPDATE: I see I'm responding to a much older post that I originally thought I was. Nevermind!

-Jesse

Last edited by Jesse Chisholm; 09-26-2012 at 01:54 PM.
Jesse Chisholm is offline   Reply With Quote
Old 11-18-2012, 04:54 AM   #32
Small Elephant
Junior Member
Small Elephant began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2012
Location: Denmark
Device: kindle 2
Hi
I was frustrated not having a working Table Of Contents for my e-ink Kindle books and after reading your posts I now know how to do it.

In Calibre I convert them to Epub.
In Sigil I create TOC.
In Calibre I convert to MOBI.

Thank you so much for the information.

I have a question though. Is there any way to automatically remove the paragraph following all the page numbers? As it is now, the page number shows up in the middle of the text followed by a new paragraph with the name of the author or chapter and then the book continues on yet another new paragraph. It would be nice to only see the page number followed by a space and then continuing text. I know how to manually find and replace the paragraphs in Sigil. It takes a long time and in some books the text following the page numbers is different from chapter to chapter therefore I have to go into all chapters and manually do it.

example:
thought he 79</p>

<p class="calibre2">MILTON ERICKSON</p>

<p class="calibre2">would try something different.

Last edited by Small Elephant; 11-18-2012 at 05:16 AM.
Small Elephant is offline   Reply With Quote
Advert
Old 11-22-2012, 12:29 AM   #33
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
Quote:
Originally Posted by jswinden View Post
I hate that so many publishers/authors build their eBooks without using the basic standard HTML tags. Instead of using H1, H2, H3 many use a P tag with a gosh-awful CSS class call out. HELLO, that makes autocreation of TOCs a no go!! I personally like a minimalist approach to CSS within eBooks. If I have to modify a book, the first thing I do is strip out all the garbage from the CSS file. No need to remove the CSS classes and what not from each HTML file as it will be ignored if it cannot be found in the CSS file. Next I make sure each chapter/section heading has an H1 or H2 tag. If it is not to much work I also make sure all subheadings have a heading tag as well. It usually isn't too time consuming, but some publishers seem to use a different class for every subheading (within the same level) making a search replace impossible. Idiots!
InDesign spits out HTML like that - with classes instead of simple h1, h2 etc. Not sure if other software does too. Very irritating.
Klip is offline   Reply With Quote
Old 12-26-2013, 02:05 PM   #34
Tagbert
Junior Member
Tagbert began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2007
Location: Seattle
Device: iPod Touch / Blackberry Pearl
Actually, the best way to format that chapter heading would be like this:

<h1><span class="chapternum">ChapterNumber </span>Chapter Name</h1>

then in the css you would have
.chapternum{display:block;}

That way, it should just display normally in a TOC with no line breaks. The css "display" setting forces a line break after that element.
Tagbert is offline   Reply With Quote
Reply

Tags
mobi2mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sideloading MOBI files to Kindle for iPad GRiker Devices 34 08-31-2012 06:02 AM
Will non-drm prc (mobi) files work with the Kindle app? tmgplc Amazon Kindle 8 01-05-2011 10:17 PM
Download and save MOBI files to Kindle over 3g? guiyoforward Amazon Kindle 4 09-19-2010 10:56 AM
Mobi files on Kindle 2 Boxdoc Calibre 3 09-21-2009 03:09 PM
Looking for Linux PDF editing tools for DX format tobor Kindle Developer's Corner 1 06-19-2009 07:37 PM


All times are GMT -4. The time now is 10:22 AM.


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