By having only one 'add_chapter_numbers' option instead of one for TOC and one for in-chapter titles, this is simplified a fair bit.
The attached version has new options:
Code:
## Don't like the numbers at the start of chapter titles on some
## sites? You can use strip_chapter_numbers to strip them off. Just
## want to make them all look the same? Strip them off, then add them
## back on with add_chapter_numbers. Don't like the way it strips
## numbers or adds them back? See chapter_title_strip_pattern and
## chapter_title_add_pattern.
strip_chapter_numbers:true
add_chapter_numbers:true
Add them to your personal.ini (after installing, of course) to give them a try. They will be applied when an existing epub is updated. You can do 'Update Always' to change the chapter titles in existing epubs even without new chapters.
I've included default patterns for the stripping and adding that seem reasonable to me, but they're also configurable: