View Single Post
Old 08-22-2014, 11:33 PM   #3265
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JimmXinu View Post
This confusion is my fault. I forgot that the template for that is the
python string Template, not the calibre template string. There's no prefix/suffix feature in the python string Template. I apologize for the incorrect information.

So you can do a pattern like this:

Code:
chapter_title_add_pattern:Chapter ${index} - ${title}
Personally, I set strip_chapter_numbers:true and add_chapter_numbers:true and use the default chapter_title_strip_pattern and chapter_title_add_pattern (by not sending them in personal.ini).

So for the example above, I get:
1. Prologue
2. Chapter 1
3. Chapter 2 Named Chapter

...and I can see both what the author meant and absolute 'chapter' numbers.

Again, sorry for the misinformation.
Thanks for all the different examples. I think I'm more grateful that the chapter headings have worked so well with just the defaults.
Amalthia is offline