Commit bb48d4e3 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix text justification in HTML document reconstruction.

	* demo/xml2doc/templates/html/css.css,
	* demo/xml2doc/templates/html/main.xsl,
	* demo/xml2doc/templates/html/main_base64.xsl: Add new CSS rules.
parent 47a070a1
2011-09-13 Guillaume Lazzara <z@lrde.epita.fr>
Fix text justification in HTML document reconstruction.
* demo/xml2doc/templates/html/css.css,
* demo/xml2doc/templates/html/main.xsl,
* demo/xml2doc/templates/html/main_base64.xsl: Add new CSS rules.
2011-09-12 Guillaume Lazzara <z@lrde.epita.fr>
Small fixes in Scribo.
......
......@@ -3,8 +3,8 @@
position:absolute;
background-color:white;
z-index:7;
display:inline;
white-space:pre;
/*white-space:pre;*/
/* FIXME */
letter-spacing:-2px;
......@@ -13,6 +13,9 @@
margin:0px;
filter:alpha(opacity=100);
font-family:"Times New Roman", Times, serif;
text-align: justify;
display: block;
}
.para
{
......@@ -28,4 +31,9 @@
{
position:absolute;
border:0;
}
.line noop
{
width:1000px;
display: inline-block;
}
\ No newline at end of file
......@@ -10,27 +10,41 @@
.line
{
position:absolute;
background-color:white;
z-index:7;
display:inline;
white-space:pre;
/*white-space:pre;*/
<!-- FIXME -->
/* FIXME */
letter-spacing:-2px;
padding:0px;
margin:0px;
filter:alpha(opacity=100);
font-family:"Times New Roman", Times, serif;
text-align: justify;
display: block;
}
.region
.para
{
position:absolute;
z-index:6;
}
.region
{
position:absolute;
z-index:5;
}
.image
{
position:absolute;
border:0;
}
.line noop
{
width:1000px;
display: inline-block;
}
</style>
</head>
<body>
......@@ -222,6 +236,7 @@
color:<xsl:value-of select="$color" />;
</xsl:attribute>
<xsl:value-of select="@text"/>
<noop />
</span>
<!-- ENF OF TEXT LINE -->
</xsl:template>
......
......@@ -7,13 +7,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SCRIBO</title>
<style type="text/css">
.line
.line
{
position:absolute;
background-color:white;
z-index:7;
display:inline;
white-space:pre;
/* white-space:pre; */
/* FIXME */
letter-spacing:-2px;
......@@ -22,6 +22,9 @@
margin:0px;
filter:alpha(opacity=100);
font-family:"Times New Roman", Times, serif;
text-align: justify;
display: block;
}
.para
{
......@@ -38,6 +41,11 @@
position:absolute;
border:0;
}
.line noop
{
width:1000px;
display: inline-block;
}
</style>
<!-- <link rel="stylesheet" type="text/css" href="css.css" /> -->
</head>
......@@ -237,6 +245,7 @@
color:<xsl:value-of select="$color" />;
</xsl:attribute>
<xsl:value-of select="@text"/>
<noop />
</span>
<!-- ENF OF TEXT LINE -->
</xsl:template>
......@@ -376,6 +385,7 @@
color:<xsl:value-of select="$color" />;
</xsl:attribute>
<xsl:value-of select="@text"/>
<noop />
</div>
</xsl:if>
<!-- ENF OF TEXT LINE -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment