Quote:
Originally Posted by DaleDe
I suspect they are being generated as part of things like centering a paragraph, at least this is one example I have seen. Also bold and italics showing up as SGC instead of being generated as inline b and em tags. I am not sure why they appear. I can't remember an SGC tag being automatically placed in a CSS file, instead I always find them in a style section within the head section of the file itself. I haven't played with post 5.0 versions to know if this is continuing but it certainly was in 4.2. I know I used to do this in page mode (WYSIWYG) before I realized it would sometimes do me in.
Dale
|
Well, this makes perfect sense to me, if you are using the alignment icons for these functions, rather than a named style in a stylesheet; of course Sigil will create a paragraph style of whatever name for this, and make an internal stylesheet entry for it. I'd have a fit if Sigil placed the ss entry into my
own CSS sheet--so the internal entry is the place for it, OR, as suggested, a separate Sigil stylesheet. BUT, in order to remedy the major complaint here-that Sigil uses different style names in each xhtml file for the same things, i.e., italics in the base para style--this means that Sigil would have to track that specific style across all files--which is the whole POINT of a stylesheet. In other words, Sigil would have to a) create a Sigil.css stylesheet, place any created styles there, and then reference and use them across all xhtml documents in the file. What happens if, for example, someone has a stylesheet for file 10.xhtml, that has an italicized style for a base paragraph, which is named, e.g., p class="italic", and Sigil creates the same thing for another xhtml file, which is called SGC-3? (This begins, BTW, to feel remarkably like Calibre styles, which I personally loathe.) And does Sigil automatically place the Sigil.css stylesheet in the head of all xhtml styles in the entire book? I'm not sure this is as simple in execution as some of you think it is--but I'm not a coder, so it might be, but I see the possibility of some real conflicts here.
Sigil indubitably currently creates internal styles for each xhtml file, as would be absolutely correct coding if an external stylesheet does not already have the particular desired style covered.
@toxie:
I've not had that happen, when we have a stylesheet in place. I've only seen italic and bold tags cause internal ss entries when no stylesheet exists. You've seen differently? In recent Sigil releases?
FWIW,
Hitch