Skip to content
GitLab
Menu
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
0d7479ae
Commit
0d7479ae
authored
Dec 18, 2016
by
Asus-PC
Browse files
mise en place OCF, début OPF
parent
d771cbfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
hdoc_to_epub/file/container.xml
0 → 100644
View file @
0d7479ae
<?xml version="1.0"?>
<container
xmlns=
"urn:oasis:names:tc:opendocument:xmlns:container"
version=
"1.0"
>
<rootfiles>
<rootfile
full-path=
"OEBPS/content.opf"
media-type=
"application/oebps-package+xml"
/>
</rootfiles>
</container>
hdoc_to_epub/file/mimetype
0 → 100644
View file @
0d7479ae
application/epub+zip
hdoc_to_epub/hdoc_to_epub.ant
View file @
0d7479ae
...
...
@@ -7,6 +7,7 @@
<property
name=
"in"
location=
"${basedir}/input"
/>
<property
name=
"out"
location=
"${basedir}/output"
/>
<property
name=
"tmp"
location=
"${basedir}/tmp"
/>
<property
name=
"file"
location=
"${basedir}/file"
/>
<property
name=
"schema"
location=
"${basedir}/schema"
/>
<target
name=
"convert"
>
...
...
@@ -34,6 +35,13 @@
<antcall
target=
"ValidateInput"
>
<param
name=
"filename"
value=
"${filename}"
/>
</antcall>
<antcall
target=
"MakeOCF"
/>
<!--<antcall target="MakeOPF"/> -->
<antcall
target=
"MakeOPS"
/>
</sequential>
</for>
</target>
...
...
@@ -57,4 +65,21 @@
</trycatch>
</target>
<target
name=
"MakeOCF"
>
<mkdir
dir=
"${out}/META-INF"
/>
<mkdir
dir=
"${out}/oebps"
/>
<copy
file=
"${file}/mimetype"
todir=
"${out}"
/>
<copy
file=
"${file}/container.xml"
todir=
"${out}/META-INF"
/>
</target>
<target
name=
"MakeOPF"
>
</target>
<target
name=
"MakeOPS"
>
<mkdir
dir=
"${out}/oebps/images"
/>
<mkdir
dir=
"${out}/oebps/styles"
/>
<mkdir
dir=
"${out}/oebps/text"
/>
</target>
</project>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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