10-12-2009, 06:18 PM | #1 |
Captain Courageous
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
|
Text files with # and ##
these don't seem to work as title and chapter detection marks when converting a text file from the command line. Is there some new?
Thanks, Paul |
10-12-2009, 08:43 PM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Use the --markdown option. I disabled processing with markdown (how #'s turn into chapter markings) by default a few versions ago. This decision was made because of the number of people who were having trouble with random formatting that was creeping into the output.
|
Advert | |
|
10-12-2009, 09:21 PM | #3 |
Captain Courageous
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
|
*exactly* how is the --markdown option used the skimpy user manual is not that clear.
Even converting the text to html and making <h1> and <h2> tags is no use. The TOC is just never generated. It used to be so simple to generate an ebook file. Why is it so complicated now? Last edited by p3aul; 10-12-2009 at 09:26 PM. |
10-12-2009, 10:22 PM | #4 | ||
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
To get it working in your case, set the --level1-toc to "//*[name()='h1']" in the table of contents section to have it work. Use the same xpath with h2 and h3 for level 2 and 3 to get the sub items (## and ###). |
||
10-12-2009, 10:31 PM | #5 |
Captain Courageous
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
|
I followed your link. it was about as clear as mud! now do I have to download and install some sort of pre-processor in order to use # and ## in my text files? Somehow I don't think that's an improvement. and you still didn't tell me how to use --markdown what options come after --markdown on the command line?
|
Advert | |
|
10-13-2009, 06:35 AM | #6 | |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
This confusion is exactly why I disabled it by default. Nothing comes after it. Last edited by user_none; 10-13-2009 at 06:37 AM. |
|
10-13-2009, 03:10 PM | #7 |
Captain Courageous
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
|
OK, I understand --markdown now. Sorry for all the frustration! .6.17 is reinstalled and I have my beloved # and ## back now!
Paul |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
help with formatting text files | chooky | Workshop | 2 | 11-26-2009 04:16 AM |
Text files blanked | Halk | Calibre | 21 | 05-18-2009 01:31 PM |
Do need help editing text files? | Nate the great | Workshop | 3 | 04-01-2009 01:18 PM |
Text tool for formatting Gutenberg text files | bob_ninja | Workshop | 5 | 11-13-2007 12:28 PM |
Reading Text Files ? | grayfox | iRex | 8 | 10-17-2007 11:20 PM |