Commit 1d07ed9c authored by crzt's avatar crzt
Browse files

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

parents 9da87dcf 644a3335
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</target> </target>
<target name="buildOutput" depends="unzipSource"> <target name="buildOutput" depends="unzipSource">
<xslt classpath="${libdir}/saxon9he.jar" style="${xsldir}/termToRef.xsl" basedir="${srcdir}" destdir="${OutputPath}" followsymlinks="false" extension=".ref"> <xslt classpath="${libdir}/saxon9he.jar" style="${xsldir}/termToRdf.xsl" basedir="${srcdir}" destdir="${OutputPath}" followsymlinks="false" extension=".rdf">
<include name="**/*.term"/> <include name="**/*.term"/>
</xslt> </xslt>
<copy file="opale.wspmeta" tofile="${OutputPath}/.wspmeta"></copy> <copy file="opale.wspmeta" tofile="${OutputPath}/.wspmeta"></copy>
...@@ -71,4 +71,4 @@ ...@@ -71,4 +71,4 @@
<delete dir="${outdir}" /> <delete dir="${outdir}" />
</target> </target>
</project> </project>
\ No newline at end of file
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ont="nf29ont" xmlns:ont="nf29ont"
xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:lx="scpf.org:lexicon" xmlns:lx="scpf.org:lexicon"
xmlns:op="utc.fr:ics/opale3" exclude-result-prefixes="xs sp sc lx"
exclude-result-prefixes="xs"
version="2.0"> version="2.0">
<xsl:output method="xml" indent="yes" /> <xsl:output method="xml" indent="yes" />
......
...@@ -198,6 +198,11 @@ ...@@ -198,6 +198,11 @@
<mkdir dir="${tmp}"/> <mkdir dir="${tmp}"/>
<delete dir="${out}" failonerror="false"/> <delete dir="${out}" failonerror="false"/>
<mkdir dir="${out}"/> <mkdir dir="${out}"/>
<delete dir="${optim_to_hdoc_in}" failonerror="false"/>
<mkdir dir="${optim_to_hdoc_in}"/>
<delete dir="${hdoc_to_opale_in}" failonerror="false"/>
<mkdir dir="${hdoc_to_opale_in}"/>
</target> </target>
</project> </project>
\ No newline at end of file
Optim to Opale (optim_to_opale) Optim to Opale (`optim_to_opale`)
------------------------------- ===============================
Last edit: January 4, 2016
Last edit: December 17, 2015 License
-------
This project is under [GPL 3.0 licence](http://www.gnu.org/licenses/gpl-3.0.txt).
# Purpose Credits
-------
### Autumn 2015
`optim_to_opale` is an ANT script to convert a file from Optim format to Opale format. * Ivan D'HALLUIN
* JEFFREY DECORDE
* Jean-Baptiste MARTIN
# Dependencies Presentation
------------
`optim_to_opale` is an ANT script that converts a file from Optim format to Opale format. It simply calls `optim_to_hdoc`and `hdoc_to_opale`scripts.
Dependencies
------------
In order to work properly this script needs In order to work properly this script needs
1. `optim_to_hdoc` (Optim to HDoc conversion) 1. [`optim_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/optim_to_hdoc) (Optim to HDoc conversion)
2. `hdoc_to_opale` (HDoc to Opale conversion) 2. [`hdoc_to_opale`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_opale) (HDoc to Opale conversion)
# Running the script User Documentation
------------------
### Running the script
1. Put the file you want to convert into the `input` directory 1. Put the file you want to convert into the `input` directory
2. Run the `run.sh`file on a Unix system (Linux, Mac OS, etc.) or the `run.bat`on Windows 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) 3. Your converted file is placed into the `output` directory (a log file is also placed into the `log`directory)
4. Enjoy! 4. Enjoy!
# How is this script working ### How is this script working
1. The script first determines what OS you are using so it then can call the right scripts 1. The script first determines what OS you are using so it then can call the right scripts
2. It cleans the `log`, `tmp`and `output`directories 2. It cleans the `log`, `tmp`and `output`directories
...@@ -32,3 +45,21 @@ In order to work properly this script needs ...@@ -32,3 +45,21 @@ In order to work properly this script needs
7. It copies the files that are inside the `output`directory of `hdoc_to_opale` to the `output` directory of `optim_to_opale` 7. It copies the files that are inside the `output`directory of `hdoc_to_opale` to the `output` directory of `optim_to_opale`
During all the process it also prints some basic information both on screen and in the log file. During all the process it also prints some basic information both on screen and in the log file.
Unsupported
-----------
* The script currently doesn't support any paramater to specify the file to convert. If multiple files are in the `input`directory, the script will convert all these files.
Known bugs
----------
N/A for now.
Todo
----
Technical notes
---------------
Capitalization
--------------
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