View Single Post
Old 03-04-2011, 08:43 AM   #10
RAH
Guru
RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.RAH ought to be getting tired of karma fortunes by now.
 
RAH's Avatar
 
Posts: 615
Karma: 575652
Join Date: Oct 2010
Location: Hampton, NH
Device: Kobo Aura H20; Kobo ClaraBW
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.
RAH is offline   Reply With Quote