Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
39ac0e3b
Commit
39ac0e3b
authored
Jan 01, 2017
by
Asus-PC
Browse files
css images
parent
29749a83
Changes
3
Hide whitespace changes
Inline
Side-by-side
hdoc_to_epub/file/stylesheet.css
View file @
39ac0e3b
...
...
@@ -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%
;
}
hdoc_to_epub/hdoc_to_epub.ant
View file @
39ac0e3b
...
...
@@ -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"
>
...
...
hdoc_to_epub/xsl/chapitre.xsl
View file @
39ac0e3b
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment