The problem I had with underlining was compounded by Sigil adding its own local style on top of a style in the stylesheet. I don't know why it did that.
The original HTML shows this:
<u>meself</u>
After conversion in Calibre to epub, it shows this:
<span class="calibre20 sgc-1">meself</span>
where calibre20 is defined in the stylesheet.css as:
.calibre20 {
line-height: 1.1;
text-decoration: underline
}
but sgc-1 is defined at the top of any chapter that has an underline, in the html file as:
span.sgc-1 {text-decoration:underline}
So to change the underline to italic, I wanted to just change the definition in the stylesheet, but it wouldn't work. I had to also do a global change of the sgc-1 definition. Fortunately, Sigil's Find tool has the ability to do such a change, but I do wonder why Sigil added that extra local definition.
|