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:
*** chapter one ***
blablablablabla
blabla
and so on
++++++++++++++++
*** chapter two ***
blabla bla blabla
blabla and so on...
++++++++++++++++
|
Either I could find the + or better the *** to define a chapter.
Best would be some:
Code:
\*\*\* ([-\w\x20()]+) \*\*\*
to find the chapters name (\1) and tell it to calibre.
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:
blablabla<br />blablabla<br />blablabla<br />
|
is after conversion to epub just:
Quote:
blablabla blablabla blablabla
|
and not:
Quote:
blablabla
blablabla
blablabla
|
frank