![]() |
#1 | ||||
Connoisseur
![]() Posts: 68
Karma: 10
Join Date: Feb 2010
Device: none
|
Making chapter from textfiles
Hello
is it possible to define chapters when I convert a textfile to epub? I only found some XPath definitions and html-tags to find chapters, but not the possibility to define some RegEx to find a chapter. E.g. I have this: Quote:
Best would be some: Code:
\*\*\* ([-\w\x20()]+) \*\*\* Is something like this possible for textfiles? I tried it with html-files (zip-files for calibre only) and I could define the chapters, but I stopped, when I noticed, calibre isn't able to detect linebreakes (br), e.g.: Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Use Markdown or Textile to mark your chapter headings, e.g.
Code:
Title ====== ## Chapter 1 ## Chapter 2 Code:
//*[name()='h1' or name()='h2'] |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre normally looks for headings the begin with:
Chapter Book Section Part See 'Structure Detection' in Conversion or Preferences Common options |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 06:35 AM |
What are SGF Chapter Marker and Chapter Break? | webphone | Sigil | 1 | 05-25-2011 02:43 PM |
Calibre making unwanted chapter breaks | PatNY | Calibre | 6 | 10-08-2010 09:58 PM |
Next Chapter skips to End in last chapter? | JoGoCo | Kobo Reader | 5 | 07-13-2010 09:23 PM |
K2 v K1: Chapter-to-chapter missing from some books? | Starhawk | Amazon Kindle | 4 | 03-10-2009 06:27 PM |