View Single Post
Old 09-14-2014, 01:32 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Sigil will create these classes with one of its options for moving style definitions outside of the text itself.

EDIT: http://web.sigil.googlecode.com/git/...faq_formatting
Quote:
What does sgc-1 mean in my document?

sgc indicates a Sigil class that is used to set the formatting style for certain parts of your text. sgc classes are automatically created for certain span tags and "style=" attributes if you have HTML Tidy turned on (Edit→Clean Source).

regex

Find:
Code:
[a-zA-Z.]+ \{font-(style|weight): (italic|bold)}
Replace:
Code:
.\2 {font-\1: \2}

Last edited by eschwartz; 09-14-2014 at 01:51 AM.
eschwartz is offline   Reply With Quote