View Single Post
Old 01-06-2014, 05:04 AM   #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,732
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Strahan View Post
Hi. I have some large text files that I threw on my Kindle. I'd love to be able to edit the text file and insert some sort of code so the Kindle knows where chapter breaks are.
Since Calibre supports Markdown input, you could use Markdown to mark chapters with # signs in your text files and do a TXT->MOBI conversion. For example:

Code:
### Chapter 1
will be converted to:

Code:
<h3>Chapter 1</h3>
if you change the input file Formatting style option to markdown in Calibre.
Unfortunately, Calibre doesn't seem to be able to automatically generate a Kindle TOC, even if the Generate TOC option is enabled.

If you're not afraid of command line utilities, also check out pandoc, which can convert Markdown text files to epubs, which you can then convert to Kindle books with Calibre.
Doitsu is offline   Reply With Quote