Quote:
Originally Posted by Amalthia
I read the advanced formatting and looked at the information in the spoiler section and I'm still confused.
|
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}
...but if there's no chapter title, they'll come out as
Chapter 1 -
Chapter 2 -
More troublesome to my eye is the fact that if the story has:
Prologue
Chapter 1
Chapter 2. Named Chapter
...you'd end up with:
Chapter 1 - Prologue
Chapter 2 -
Chapter 3 - Named Chapter
...and now your chapter numbers don't match the author's.
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.