Quote:
Originally Posted by Toxaris
If you use for example .calibre\d+ you would catch all classes. If you do not use the actual tag, it will leave it there. For example spans would become empty and can easily be removed in one go with the plugin from DiapDealer.
So, search for 'class=".calibre\d+"' and replace it by nothing. Then run TagMechanic and remove empty span. Two actions only.
Another option could be is to import the ePUB into Word, do some cleaning/fixing if needed (check quotation marks for example) and then export the ePUB from Word. That would also remove the .calibre classes if you want. It is also possible to keep the classes you do want.
I have to say that removing all the calibre classes in one go is tricky in all cases. You could easily get rid of formatting that way that you don't want to loose. That is the problem with a generic class name, you don't know what it is about. It is however a side-effect from conversion that usually cannot be prevented. I would personally never remove all calibre classes in one go.
|
You can use that REGEX (calibre\d+) within Diaps Tag tool. Just tick the REGEX box at the end if the pattern