Quote:
Originally Posted by eschwartz
This is meant to only target the css, whether in a stylesheet or in <style> tags. It searches for the font-weight or -style, and ignores what sgc-class it actually is.
|
Won't that leave all the text using those styles with undefined styles?
The problem is that in one file
<p class="p6 sgc-2">October 11</p> is bold, in another it would be italic.
Quote:
To fix the text (my preference), I'd use:
Find:
Code:
<span class="(?:(b)old|(i)talic)">([^<>]*)</span>
Replace:
And revert it back to <b> and <i> tags.
|
That looks useful, but first I need to get all the text tagged consistently.
Anyway, I think I can do this by unzipping the epub and sorting the files into groups with common style definitions, using Far file manger, then doing S&R on groups of files to make them all consistent, then making a new epub.