Commit 841d69c9 authored by edepuiff's avatar edepuiff
Browse files

lexique_to_hdoc gestion des ressources

parent 26982eaa
<?xml version="1.0" encoding="UTF-8"?>
<sfm:jpg_jpeg xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:title>Toronto, Canada</sp:title>
<sp:common>
<lx:commonM>
<sp:copyrightRes>Taxiarchos228</sp:copyrightRes>
<sp:licenseRes>
<lx:licenseM>
<sp:license>by</sp:license>
</lx:licenseM>
</sp:licenseRes>
</lx:commonM>
</sp:common>
<sp:alt>
<lx:altM>
<sp:alt>Vue nocturne sur le centre-ville</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:jpg_jpeg>
\ No newline at end of file
<imgProps standardCharSize="10.319917440660474" rotateForbidden="true"/>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<sfm:jpg_jpeg xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>Répartition géographique des cinq types de climats français.</sp:alt>
<sp:desc>
<lx:sTxt>
<sc:para xml:space="preserve">Les cinq types de climats en France sont :</sc:para>
<sc:itemizedList>
<sc:listItem>
<sc:para xml:space="preserve">Hyper-océanique : Bretagne,</sc:para>
</sc:listItem>
<sc:listItem>
<sc:para xml:space="preserve">Montagnard : Pyrénées et Alpes,</sc:para>
</sc:listItem>
<sc:listItem>
<sc:para xml:space="preserve">Méditerranéen : côtes méditerranéennes et Corse,</sc:para>
</sc:listItem>
<sc:listItem>
<sc:para xml:space="preserve">Océanique : à l'ouest d'une ligne entre la Meuse et le Gers,</sc:para>
</sc:listItem>
<sc:listItem>
<sc:para xml:space="preserve">Océanique de transition : à l'est de cette même ligne.</sc:para>
</sc:listItem>
</sc:itemizedList>
</lx:sTxt>
</sp:desc>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:jpg_jpeg>
\ No newline at end of file
<imgProps standardCharSize="15.29051987767584" rotateForbidden="true"/>
\ No newline at end of file
README.md
# Converter lexique_to_hdoc
License GPL.3.0
http://www.gnu.org/licenses/gpl-3.0.txt
Crédits
Estelle de Magondeaux
Antoine Aufrechter
Marouane Hammi
Install
In order to use this converter, follow those steps :
1. Copy your Lexique file (.scar or .zip) into the input directory.
2. Execute the run that correspond to your OS. (run.sh for linux, run.bat for ubuntu
3. You will find the result into the output directory.
1. Create a dictionnary "dictionnaire.xml" which referenciate every definition you want to put ini your hdoc. This dictionnary must respect the "dictionnaire.rng" schema
2. Copy the referenciated definitions in the same current path as the dictionnary (input)
3. Your input folder must contains the dictionnary (dictionnaire.xml) and the lexique definition (**.term).
4. Execute the run that correspond to your OS. (run.sh for linux, run.bat for ubuntu)
5. You will find the result into the output directory: it is named "content.xml".
Dependances
none.
User documentation
You will find a "help" directory taht contains:
- A saple of dictionnary that you neef to write and call "dictionnaire.xml".
- the lexique definition that you can choose to put into your hdoc (help/available_definition folder).
The generated folder is a .xml . If you desire to see the output in you browser, you need to rename it as a .html.
If you want to create more definitions with images and tables, you will need to put this ressources in the folder naed "&". It contains all the ressources which are copy-pasted in the output folder so they can de seen in the hdoc.
Unsupported
Audio and video transformation
Known bugs
TODO
create a better transformation for the ressources. At the moment the user needs to copy the ressources in a folder named "&". The best would be tomatch the ressources in every definitions, and to call an aNT which automatically copy the ressources needed in this folder.
Create a transformation which allows every audio resources to be seen in the hdoc.
Technical notes
If folders names are changed, you will need to change the tasks of the ANT file.
Capitalisation
README.md
# Converter lexique_to_hdoc
License GPL.3.0
http://www.gnu.org/licenses/gpl-3.0.txt
Crédits
Estelle de Magondeaux
Antoine Aufrechter
Marouane Hammi
Install
In order to use this converter, follow those steps :
1. Create a dictionnary "dictionnaire.xml" which referenciate every definition you want to put ini your hdoc. This dictionnary must respect the "dictionnaire.rng" schema
2. Copy the referenciated definitions in the same current path as the dictionnary (input)
3. Copy your ressources in a folder named "&", placed in the same current path as the dictionnary (input)
4. Your input folder must contains the dictionnary (dictionnaire.xml), the lexique definition (**.term), and the ressources folder(&).
5. Execute the run that correspond to your OS. (run.sh for linux, run.bat for ubuntu)
3. You will find the result into the output directory.
Dependance
User documentation
You will find a "help" directory taht contains:
- A saple of dictionnary that you neef to write and call "dictionnaire.xml".
- the lexique definition that you can choose to put into your hdoc (help/available_definition folder).
- a sample of the "&" folder that you need to copy in the input directory. At the moment the only 2 resources referenciated in all the definitions are there, so you can simply copy-paste this directory to the input directory.
The generated folder is a .xml . If you desire to see the output in you browser, you need to rename it as a .html.
Unsupported
Audio and video transformation
Known bugs
TODO
create a better transformation for the ressources. At the moment the user needs to copy the ressources in a folder named "&". The best would be tomatch the ressources in every definitions, and to call an aNT which automatically copy the ressources needed in this folder.
Create a transformation which allows every audio resources to be seen in the hdoc.
Technical notes
If folders names are changed, you will need to change the tasks of the ANT file.
Capitalisation
<?xml version="1.0" encoding="UTF-8"?>
<sfm:png xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>\nabla^2</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:png>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<sfm:png xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>\nabla^2~f(M)=div[\overrightarrow{grad}~f(M)]</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:png>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<sfm:png xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>\nabla^2f=\frac{\partial^2f}{\partial x^2}~+~\frac{\partial^2f}{\partial y^2}~+~\frac{\partial^2f}{\partial z^2}</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:png>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<sfm:png xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>\nabla^2f=\frac{\partial^2f}{\partial \rho^2}~+\frac{1}{\rho}\frac{\partial f}{\partial \rho}~+~\frac{1}{\rho^2}\frac{\partial^2f}{\partial \phi^2}~+~\frac{\partial^2f}{\partial z^2</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:png>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<sfm:png xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sfm="http://www.utc.fr/ics/scenari/v3/filemeta" xmlns:lx="scpf.org:lexicon">
<lx:imgM xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
<sp:alt>
<lx:altM>
<sp:alt>\nabla^2f=\frac{\partial^2f}{\partial r^2}~+~\frac2r\frac{\partial f}{\partial r}~+~\frac1{r^2}\frac{\partial^2f}{\partial\theta^2}~+~\frac{\cot\theta}{r^2}\frac{\partial f}{\partial\theta}+\frac1{r^2~\sin^2\theta}\frac{\partial^2f}{\partial\phi^2}</sp:alt>
</lx:altM>
</sp:alt>
</lx:imgM>
</sfm:png>
\ No newline at end of file
<imgProps standardCharSize="10.204081632653061" rotateForbidden="true"/>
\ No newline at end of file
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