Commit 634d15af authored by Antoine's avatar Antoine

Merge branch 'master' of https://gitlab.utc.fr/crozatst/hdoc

parents 321c1701 694f65ed
......@@ -26,7 +26,9 @@
</fileset>
</delete>
<copy file="input/pad.html" todir="${eth_in}"/>
<exec dir="../etherpad_to_hdoc" executable="run.sh"/>
<exec executable="/bin/bash" dir="../etherpad_to_hdoc">
<arg value="../etherpad_to_hdoc/run.sh"/>
</exec>
</target>
<target name="to_lex_unix" if="${is_unix}">
......
......@@ -35,7 +35,7 @@
<include name="*.hdoc"/>
</fileset>
</delete>
<copy file="${eth_out}/output.hdoc" todir="${opti_in}"/>
<copy file="${eth_out}/pad.hdoc" todir="${opti_in}"/>
<exec dir="../hdoc_to_optim" executable="run.sh"/>
<copy file="${opti_out}/*.scar" todir="output"/>
</target>
......@@ -46,7 +46,7 @@
<include name="*.hdoc"/>
</fileset>
</delete>
<copy file="${eth_out}/output.hdoc" todir="${opti_in}"/>
<copy file="${eth_out}/pad.hdoc" todir="${opti_in}"/>
<exec dir="../hdoc_to_optim" executable="run.bat"/>
<mkdir dir="output"/>
<copy file="${opti_out}/result.scar" todir="output"/>
......
......@@ -69,6 +69,8 @@ Todo list
---
* Single file conversion with parameter
* Clean the bibtex_to_opale : the code in this folder seems to be never used although he's called in the file prepareReferencesConversions.xsl. In the case which this folder is never used, it has to be deleted.
* Qualify the Opale supported version
* Solve bugs
Technical Notes
......@@ -117,8 +119,3 @@ When moveRessourceFiles.xsl is applied on hdoc's content file (usually named "co
### Main XSL-XSLT transformation (transformation.xsl)
It consists in a simple ANT task : the main transformation file ("transformation2.xsl") matches hdoc markups and tries to convert them into opale markups.
Capitalization
---
The understanding of the conversion was a bit long and dfficult. Indeed, there are some transformations which creates other ANT files which are executed. But this project has streghtened my knowledge of ANT and XSLT.
......@@ -29,7 +29,7 @@ User Documentation
------------------
### Running the script
1. Put the file (`.scar`) you want to convert into the `input` directory
1. Put the file (`.scar`) you want to convert into the `input` directory (you can convert paper, section, website, slideshow and webpage)
2. Run the `run.sh` file on a Unix system (Linux, Mac OS, etc.) or the `run.bat` on Windows
3. Your converted file is placed into the `output` directory (a log file is also placed into the `log` directory)
4. Enjoy!
......
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