View Single Post
Old 06-11-2012, 02:28 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 1,418
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
A solution from a Linux forum. The style sheet to be cleaned is named Brute and is sitting on my Desktop (Bureau).

Code:
roger@lmde64 ~ $ cd ~/Bureau
roger@lmde64 ~/Bureau $ sort Brute -o Brute
roger@lmde64 ~/Bureau $ sed -i 's/{/{\n\t/;s/:/: /g;s/;/;\n\t/g;s/}/;\n}\n/' Brute
roger@lmde64 ~/Bureau $
And here is the instant result (long life Linux!): Compare with the spoiler in the first message.
Spoiler:

Code:
a: link {
	color: #000080;
	text-decoration: underline;
}

body {
	background-color: transparent;
}

body {
	font-family: 'Times New Roman';
}

.frameFrame {
	margin-left: 0.201cm;
	margin-right: 0.201cm;
	margin-top: 0.201cm;
	margin-bottom: 0.201cm;
	border: 0.05cm solid #000000;
	padding: 0.15cm;
}

.frameFrame p {
	margin-left: 0.201cm;
	margin-right: 0.201cm;
	margin-top: 0.201cm;
	margin-bottom: 0.201cm;
}

.frameGraphics {
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 1em;
	border: none;
	padding: 0;
}

.frameGraphics p {
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 0;
}

h2 {
	page-break-before: always;
	margin-left: 0.0cm;
	margin-right: 0.0cm;
	margin-top: 1.499cm;
	margin-bottom: 0.601cm;
	border: none;
	padding: 0.0cm;
	text-indent: 0.0cm;
	text-align: center;
	font-family: 'Times New Roman',serif;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	text-decoration: none;
	text-transform: none;
	clear: left;
}

p.Centrage {
	margin-left: 0.0cm;
	margin-right: 0.0cm;
	margin-top: 0.499cm;
	margin-bottom: 0.499cm;
	border: none;
	padding: 0;
	text-indent: 0.0cm;
	text-align: center;
	font-size: 83%;
}

p.Header {
	margin-left: 0;
	margin-right: 0;
	margin-top: 0.6cm;
	margin-bottom: 0.6cm;
	border: none;
	padding: 0;
	text-align: center;
	font-style: italic;
	font-weight: normal;
	font-size: 83%;
}

p.Italdroite {
	margin-left: 0.0cm;
	margin-right0.499cm;
	margin-top: 0.499cm;
	margin-bottom: 0.499cm;
	border: none;
	padding: 0;
	text-indent: 0.0cm;
	text-align: right;
	font-style: italic;
	font-weight: normal;
	font-size: 83%;
}

p.let {
	margin-left: 0.0cm;
	margin-right: 0.0cm;
	margin-top: 0.0cm;
	margin-bottom: 0.0cm;
	border: none;
	padding: 0;
	background-color: transparent;
	text-indent: 0.0cm;
	text-align: justify;
}

p.smcpCentrage {
	margin-left: 0.0cm;
	margin-right: 0.0cm;
	margin-top: 0.499cm;
	margin-bottom: 0.499cm;
	border: none;
	padding: 0;
	text-indent: 0.0cm;
	text-align: center;
	font-family:  'LinuxLibertineOCRegular';
	font-size: 83%;
}

p.smcpDroite {
	margin-left: 0.0cm;
	margin-right: 0.499cm;
	margin-top: 0.499cm;
	margin-bottom: 0.499cm;
	border: none;
	padding: 0;
	text-indent: 0.0cm;
	text-align: right;
	font-family:  'LinuxLibertineOCRegular';
	font-style: normal;
	font-weight: normal;
	font-size: 83%;
}

p.Textbody {
	margin-left: 0.0cm;
	margin-right: 0.0cm;
	margin-top: 0.0cm;
	margin-bottom: 0.0cm;
	border: none;
	padding: 0;
	background-color: transparent;
	text-indent: 0.9cm;
	text-align: justify;
}

span.smcpIncise {
	font-family:  'LinuxLibertineOCRegular';
	font-style: normal;
}

span.smcpTypeA {
	font-family:  'LinuxLibertineOCRegular';
	font-style: normal;
	 margin-left:  -1em;
}

span.smcpTypeV {
	font-family:  'LinuxLibertineOCRegular';
	font-style: normal;
	margin-left:  0em;
}

To install in the Sigil of tomorrow?

Note: The above command adds one ; before the } to make editing easier. Pay attention to this because it could trigger some silent mistakes. If you are unhappy with this, easy, just take out the last ; in the command (the one before the sign } )

Last edited by roger64; 06-11-2012 at 10:48 AM.
roger64 is offline   Reply With Quote