Quote:
Originally Posted by Doitsu
. . .Simply add the tag name and a pipe symbol (|). For example:
Find:<(div|span|p|b|i|u|h[1-6]|ol|ul|li|body) [^>]+>
|
Sometimes the books I've bought have span class items many times, breaking up sentences etc. Below is an example from a B&N book. The nook did not display the paragraphs correctly and they ended up giving me a credit for the book.
Quote:
<p class="pubitCssCls19"><span class="pubitCssCls18">But the one thing that isn’t strange is that anyone that does happen to notice, probably only has it occupy his or her attention for a few moments</span><span class="pubitCssCls18">. They might wonder why someone would behave like this. They might wonder about the circumstances that</span> <span class="pubitCssCls18">could have</span> <span class="pubitCssCls18">lead up to this point in time. They might spend a few seconds wondering about this</span> <span class="pubitCssCls18">before</span> <span class="pubitCssCls18">they go back to gawking at the sights, or</span> <span class="pubitCssCls18">before they continue</span> <span class="pubitCssCls18">rushing to wherever they’re going. Before they</span> <span class="pubitCssCls18">simply</span> <span class="pubitCssCls18">move on.</span>. . .</p>
|
After the find: <(div|span|p|b|i|u|h[1-6]|ol|ul|li|body) [^>]+>
replace: <\1>
I end up with a bunch of <span> & </span> left over as seen below:
Quote:
<p><span>But the one thing that isn’t strange is that anyone that does happen to notice, probably only has it occupy his or her attention for a few moments</span><span>. They might wonder why someone would behave like this. They might wonder about the circumstances that</span> <span>could have</span> <span>lead up to this point in time. They might spend a few seconds wondering about this</span> <span>before</span> <span>they go back to gawking at the sights, or</span> <span>before they continue</span> <span>rushing to wherever they’re going. Before they</span> <span>simply</span> <span>move on.</span> <span>. . .</P>
|
I also loose any span class that is configured for italics.
SmoothRemove used to remove the extras, but leave italics and bolds. SmoothRemove will not install on my Windows 10 x64 computer - it says it is not compatible with the OS.
Any further ideas? (please note that I know the basics, but am not an expert at Sigil/CSS coding)
Thanks for your help.