View Single Post
Old 02-22-2023, 12:58 AM   #1
F4in7_
Junior Member
F4in7_ began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2023
Device: none
Question Need help in adding a few steps in my Calibre clean-up routine.

I use Calibre to remove publisher ads, ensuring ellipses are consistent and formatted properly, and making tags consistent for some of my saved searches to work properly. However, I do have some things that I'm trying to figure out but can't make it work.

- Changing the first few words at the beginning of a chapter (not the chapter name itself) from uppercase to capitalize. Sometimes page breaks tend to have this too, so it would be great to be able to detect them using regular expressions or other methods.
For example, "I'LL FIGURE SOMETHING out." to "I'll figure something out."
- Ensuring quotation marks aren't missing and actually paired to each other.
For example, What now?” to “What now?”.

Finally, this is a bit of a stretch, but I mentioned that I try to make tags consistent to make my regex work properly, I use a plug-in in Calibre called 'Reformat plug-in' and how I make it work is after I'm satisfied removing what needs to be removed in my book, I delete all stylesheets and run the plug-in.

Now, I know what you're thinking, and yes it will nuke the intended structure of the book. But honestly, I've almost never had a problem with how it looks, the only thing that's holding me back from using it all the time, is sometimes paragraphs that are meant to be centered aren't and numbered bullet points are spaced out too much, so if anyone's familiar with the plug-in or a method similar to what I'm trying to achieve that would resolve some of those issues, I would love to hear it.
F4in7_ is offline   Reply With Quote