Commit 0d7479ae authored by Asus-PC's avatar Asus-PC

mise en place OCF, début OPF

parent d771cbfe
<?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>
application/epub+zip
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<property name="in" location="${basedir}/input"/> <property name="in" location="${basedir}/input"/>
<property name="out" location="${basedir}/output"/> <property name="out" location="${basedir}/output"/>
<property name="tmp" location="${basedir}/tmp"/> <property name="tmp" location="${basedir}/tmp"/>
<property name="file" location="${basedir}/file"/>
<property name="schema" location="${basedir}/schema"/> <property name="schema" location="${basedir}/schema"/>
<target name="convert"> <target name="convert">
...@@ -34,6 +35,13 @@ ...@@ -34,6 +35,13 @@
<antcall target="ValidateInput"> <antcall target="ValidateInput">
<param name="filename" value="${filename}"/> <param name="filename" value="${filename}"/>
</antcall> </antcall>
<antcall target="MakeOCF"/>
<!--<antcall target="MakeOPF"/> -->
<antcall target="MakeOPS"/>
</sequential> </sequential>
</for> </for>
</target> </target>
...@@ -57,4 +65,21 @@ ...@@ -57,4 +65,21 @@
</trycatch> </trycatch>
</target> </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> </project>
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