View Single Post
Old 06-11-2012, 03:26 PM   #151
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: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Améliorer la présentation de sa feuillle de style.

Sortie brute du convertisseur, la feuille de style peut ressembler à ça
Spoiler:

Code:
body {font-family:'Times New Roman'}
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}
a:link {color:#000080;text-decoration:underline}
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.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.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.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.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}
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%}
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}
.frameGraphics {margin-left:0;margin-right:0;margin-top:0;margin-bottom:1em;border:none;padding:0}
.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}
.frameGraphics p {margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}
.frameFrame p {margin-left:0.201cm;margin-right:0.201cm;margin-top:0.201cm;margin-bottom:0.201cm}
body {background-color:transparent}

Voici une solution efficace. Si le Fichier.css est sur le bureau:
Code:
roger@lmde64 ~ $ cd ~/Bureau
roger@lmde64 ~/Bureau $ sort Fichier -o Fichier
roger@lmde64 ~/Bureau $ sed -i 's/{/{\n\t/;s/:/: /g;s/;/;\n\t/g;s/}/;\n}\n/' Fichier
roger@lmde64 ~/Bureau $
Avec le traitement ci-dessus (Linux), votre feuille de style ressemble désormais à ça:
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;
}

Nota: la commande ci-dessus rajoute un point-virgule avant l'accolade fermante, ce qui peut provoquer des erreurs difficiles à détecter. Si cela ne vous plaît pas, il vous suffit de le supprimer dans la commande elle-même.

Et les Windowsiens?

Ils peuvent essayer ce logiciel gratuit qui fonctionne aussi pour Linux (Wine).
Free CSS Toolbox
http://www.blumentals.net/csstool/index.php

Last edited by roger64; 06-11-2012 at 04:42 PM.
roger64 is offline   Reply With Quote