View Single Post
Old 09-06-2022, 08:03 PM   #7510
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
Without seeing your personal.ini or knowing the story you're trying to apply it to, my best guess is you didn't uncomment it? My crystal ball is still on back order.
Hi, I had hopefully one last follow up question.

Now that I've implemented the below code:
Code:
chapter_title_add_pattern: Chapter ${number}: ${title}
chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?
My chapters have a colon "Chapter 1:" is it possible to remove the colon" in the chapter_title_strip_pattern?

I've tried a few things and none of them worked.

Here is one attempt:
Code:
chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?(: )?
I've tried matching the end of the line with the below code and it duplicated stuff instead:

Code:
chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?(: $)?
Before I sink more time into this I'd like to know if I'm on the right track or barking up the wrong tree.

Thanks,
Amalthia

p.s. I don't want to remove the colon from chapter_title_add_pattern: because then I have "Chapter 1 title of chapter" and I'd like some break between the chapter number and title.
Amalthia is offline   Reply With Quote