View Single Post
Old 04-25-2011, 09:55 AM   #1
christinerose
Junior Member
christinerose began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2011
Device: Kindle
Sigil Automatically Adding Code

I originally exported the ePub from InDesign CS3, then started tweaking it from there.

I found that the Sigil CSS converted different paragraph styles into different font sizes, so I went in and made them all the same font size (1.00em). I also changed all the font families to "Times New Roman" instead of the ones made by InDesign (Adobe Garamond, etc.).

However, now I find that Sigil is automatically changing some of those fonts back with sgc-## in-line.

It's driving me crazy. Each time I fix it, it regenerates on its own again.

Ex. from xhtml:
Code:
    p.sgc-8 {text-align: left;font-family: 'Adobe Garamond Pro'; line-height: 1.23em; font-size: 1.08em; margin-bottom: 0em; margin-top: 0em; text-indent: 0em; margin-right: 0em; margin-left: 0em; font-weight: bold; font-style: normal; color: rgb(0, 0, 0);}
Code:
    <p class="boxes sgc-8"><span class="generated-style"><span class="generated-style">ADVICE:&nbsp;</span><span class="sgc-5">Don't sign with any publisher unless they are&nbsp;</span><span class="sgc-5">giving you some kind of advance.&nbsp;</span>Don't sign away your rights for nothing.</span></p>
From CSS:
Code:
p.boxes {
	font-family: "Times New Roman";
	line-height: 1.33em;
	font-size: 1.00em;
	margin-bottom: 0.00em;
	margin-top: 0.00em;
	text-indent: 0.00em;
	margin-right: 0.00em;
	margin-left: 0.00em;
	text-align: center;
	font-weight: bold;
	font-style: normal;
	color: rgb(0,0,0);
}
christinerose is offline   Reply With Quote