Commit 39ac0e3b authored by Asus-PC's avatar Asus-PC

css images

parent 29749a83
......@@ -110,3 +110,34 @@ td{
.bold{
font-weight: bold;
}
.imgContainer1{
text-indent:0;
text-align:center;
margin-right:auto;
margin-left:auto;
width:99%;
page-break-before:auto;
page-break-inside:avoid;
page-break-after:auto;
}
.imgContainer2{
margin-left:0;
margin-right:0;
text-align:center;
text-indent:0;
height:100%;
width:100%;
}
p .imgContainer3{
display:inline-block;
text-indent:0;
width:100%;
}
img{
max-width:99%;
max-height:75%;
}
......@@ -97,7 +97,7 @@
<target name="MakeOPF">
<!-- Récupération du nom des images dans my.images séparé par des ','-->
<path id="pathImage">
<fileset dir="${tmp}/${filename}/decompressedHdoc/re">
<fileset dir="${tmp}/${filename}/decompressedHdoc/re" erroronmissingdir="false">
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
<include name="**/*.svg"/>
......@@ -151,7 +151,7 @@
<target name="ValidateOutput">
<java jar="./epubcheck-4.0.2/epubcheck.jar" fork="true">
<arg value="${out}/${properFilename}.epub"/>
</java>
</java>
</target>
<target name="CleanTmp">
......
......@@ -184,10 +184,23 @@
</xsl:template>
<xsl:template match="//img" priority="4">
<xsl:element name="img">
<xsl:attribute name="src">../images/<xsl:value-of select="./@alt"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute>
</xsl:element>
<!--<div class="imageWrapperHi">
<xsl:element name="img">
<xsl:attribute name="src">../images/<xsl:value-of select="./@alt"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute>
</xsl:element>
</div>-->
<div class="imgContainer1">
<div class="imgContainer2">
<xsl:element name="img">
<xsl:attribute name="src">../images/<xsl:value-of select="./@alt"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute>
</xsl:element>
</div>
</div>
</xsl:template>
<xsl:template match="//a[not(starts-with(@href,'http'))]" priority="4">
......
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