Commit e78283a9 authored by Tyrannas's avatar Tyrannas

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

parents 823f8929 f47813e9
Hdoc to Epub
------------
License
-------
http://www.gnu.org/licenses/gpl-3.0.txt
Credits
-------
### Autumn 2016
* Biagianti Marie
* Couturier Valentin
Presentation
------------
Dependencies
------------
User Documentation
------------------
Unsupported
-----------
Known bugs
----------
Todo list
---------
Technical Notes
---------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- test.ant -->
<project>
<property name="p">Default</property>
<echo message="${p}"/>
</project>
@echo off
set lib=lib
set ant=hdoc_to_epub.ant
set antparam=-Dprogram.param=%1
set scJarList=%lib%\*
java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
pause
REM start /MIN java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
#!/bin/sh
lib="lib"
ant="hdoc_to_epub.ant"
antparam="-Dprogram.param=$1"
#Recherche de java et controle que se soit une version SUN
vJavaCmd="java"
xCheckJava () {
vInputVarName=\$"$1"
vInputVarVal=`eval "expr \"$vInputVarName\" "`
if [ -z "$vInputVarVal" ];then
eval "$1=false"
return
fi
vSunJavaFound=`$vInputVarVal -version 2>&1 | grep -Eo -m 1 "(HotSpot)|(OpenJDK)"`
if [ "$vSunJavaFound" != "HotSpot" ] && [ "$vSunJavaFound" != "OpenJDK" ] ; then
eval "$1=false"
return
fi
}
xCheckJava vJavaCmd
if [ "$vJavaCmd" = "false" ]; then
vJavaCmd="$JAVA_HOME/bin/java"
xCheckJava vJavaCmd
if [ "$vJavaCmd" = "false" ]; then
echo "ERREUR: JRE de SUN introuvable. Veuillez déclarer la variable d'environnement JAVA_HOME."
exit 1
fi
fi
#Lancer la commande
scJarList="$lib/*"
$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam
Converter hdoc_to_pdf
-----------------------
The purpose of this converter is to obtain an PDF file from a hdoc document.
License GPL3.0
--------------
http://www.gnu.org/licenses/gpl-3.0.txt
Credits
-------
* Raphaël Debray
* Baptiste Perraud
Dependance
----------
This project can be used alone if you only want to convert a hdoc file into a PDF file.
User documentation
------------------
Known bugs
----------
Todo
----
* Generate a clean PDF file (using the LaTeX formatting example)
- Create a default CSS file with basic spine rules
- Get the right free font (equivalent to the LaTeX's one)
* Handle as fully as possible of widows and girl orphans; trying to match Prince's layout and implementing the suitable CSS rules (which shall not be interpreted by FS)
* Allow the user to override some specific CSS rules, according to the main layout logical rules
* Bonus: find out a HTML editor to manually add line breaks to a hdoc file in order to resolve widows and girl orphans problems after the PDF file's generation
Technical notes
---------------
* The backlog of the current project is at the following url: https://framemo.org/NF29_Opale_to_Pdf
* The user stories of the current project are at the following url: https://bimestriel.framapad.org/p/NF29_Opale_to_Pdf_userstory
Capitalisation
--------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?><map version="0.8.1"><node CREATED="1450696201432" ID="2nngtspni6hi1484pfec44c8lk" MODIFIED="1450696201432" TEXT="MindMapping"><node CREATED="1450696201432" ID="00lp6bpfm6jibhcjrpdonrhoqb" MODIFIED="1450696201432" POSITION="right" TEXT="#1 MindMapping to Hdoc"><node CREATED="1450696201432" ID="3qm1jgu7dfgs328jthlek5fd4e" MODIFIED="1450696201432" TEXT="Prendre en main le projet existant"/><node CREATED="1450696201432" ID="0u38ectmhqqp4p08p5guvgij71" MODIFIED="1450696201432" TEXT="#wrng Corriger les bugs existants"><node CREATED="1450696201432" ID="6cl96umgglk7bg98n0u6v3tena" MODIFIED="1450696201432" TEXT="#p Il subsiste des bugs dans la transformation."/></node><node CREATED="1450696201432" ID="3b1t9o2te6enh59j4iv48f4mdi" MODIFIED="1450696201432" TEXT="Restructurer le ant"/></node><node CREATED="1450696201432" ID="6lohsep5crh5g3ngj8ld8loei6" MODIFIED="1450696201432" POSITION="right" TEXT="#2 MindMapping to Opale"><node CREATED="1450696201432" ID="5pl3210hq6if3nv7r2chtjstmo" MODIFIED="1450696201432" TEXT="Faire la connexion avec le transformateur Hdoc to Opale"/><node CREATED="1450696201432" ID="3haa2fgohe9j4n04ilddco84uh" MODIFIED="1450696201432" TEXT="Permettre la personnalisation de l'organisation du module"><node CREATED="1450696201432" ID="4ie264076qt3tnlu0pqpp1dh1p" MODIFIED="1450696201432" TEXT="#ex A l'aide de hashtag"><node CREATED="1450696201432" ID="6qegjh2snbh0s21cn7sdukun6v" MODIFIED="1450696201432" TEXT="#p L'idée est d'utiliser les hashtag pour identifier le type de contenu"/></node><node CREATED="1450696201432" ID="23mafrh60fmdmkjsp1jdg6c58g" MODIFIED="1450696201432" TEXT="#ex A l'aide d'attributs"><node CREATED="1450696201432" ID="3cofh24e4l95fo0pgcqiefc3gv" MODIFIED="1450696201432" TEXT="#p L'idée est d'utiliser les attributs pour identifier le type de contenu"/></node></node><node CREATED="1450696201432" ID="11k2hbkcu415e1mgk5c5ucr48k" MODIFIED="1450696201432" TEXT="Permettre la personnalisation dy type de noeud (Intro, conclusion etc.)"><node CREATED="1450696201432" ID="5pf0idbv9nln725d14rs1c1p0a" MODIFIED="1450696201432" TEXT="#ex A l'aide d'attributs"><node CREATED="1450696201432" ID="6pa7h6p941mljiimpb18tv628g" MODIFIED="1450696201432" TEXT="#p L'idée est d'utiliser les hashtag pour identifier le type de contenu"/></node><node CREATED="1450696201432" ID="48799q1i5c6rns3smpa8vnekfb" MODIFIED="1450696201432" TEXT="#ex A l'aide de hashtag"><node CREATED="1450696201432" ID="1j3m1erstm0171a1i29hg3dgj6" MODIFIED="1450696201432" TEXT="#p L'idée est d'utiliser les attributs pour identifier le type de contenu"/></node></node><node CREATED="1450696201432" ID="4npf8jpvak3lffn9c1rsogi0sq" MODIFIED="1450696201432" TEXT="Permettre la personnalisation grâce aux couleurs/icônes"/></node><node CREATED="1450696201432" ID="3n8v43p8qb005puq3qiv7aiubc" MODIFIED="1450696201432" POSITION="right" TEXT="#3 MindMapping to Optim"><node CREATED="1450696201432" ID="2bn1la3apnjf1fi8qqfqde226t" MODIFIED="1450696201432" TEXT="#def Faire la connexion avec le transformateur Hdoc to Optim"><node CREATED="1450696201432" ID="2juvq1lehuivco8c1h0scqh1lr" MODIFIED="1450696201432" TEXT="#p Le connecteur hdoc_to_optim n'est pas encore opérationnel"/></node></node><node CREATED="1450696201432" ID="3s00si3hquol4pldg7lo9opjd6" MODIFIED="1450696201432" POSITION="right" TEXT="#4 MindMapping to Lexique"><node CREATED="1450696201432" ID="37jlfl25iuaoe6f2cpiv30qksd" MODIFIED="1450696201432" TEXT="#p Faire la connexion avec le transformateur Hdoc to Lexique"/></node><node CREATED="1450696201432" ID="27gnl6pgottjfiukpa3ulfdjrj" MODIFIED="1450696201432" POSITION="left" TEXT="#5 Prendre d'autres outils de carte mentales en entrée"><node CREATED="1450696201432" ID="6ci8ukhfg8fd96vsvgn9sb30cr" MODIFIED="1450696201432" TEXT="#a http://hdoc.crzt.fr/www/co/hdocConverter.html"/></node><node CREATED="1450696201432" ID="24d41nnnnvvu7fv5m8m4vegu0g" MODIFIED="1450696201432" POSITION="left" TEXT="#intro This converter aims at convert a given MindMapping file into a Hdoc file which then will be imported in Opale (advanced only)."/><node CREATED="1450696201432" ID="6a7pr2b5vvmq6na5964dhf9e13" MODIFIED="1450696201432" POSITION="left" TEXT="#conclu DONE : MindMapping to Hdoc, MindMapping to Opale TODO : MindMapping to Optim, MindMapping to Lexique"/></node></map>
\ No newline at end of file
<map version="1.0.1">
<node ID="ID_1" TEXT="Test NF29 1">
<edge COLOR="#9900ff"/>
<node ID="ID_2" POSITION="right" STYLE="fork" TEXT="#1 Noeud1">
<node ID="ID_11" POSITION="right" STYLE="fork" TEXT="#def D&#233;finition">
<node COLOR="#00ff00" ID="ID_12" POSITION="right" STYLE="fork" TEXT="#p Contenu 1"/>
<node ID="ID_13" POSITION="right" STYLE="fork" TEXT="#p Contenu 2">
<font BOLD="true" ITALIC="true" SIZE="12"/>
</node>
<node ID="ID_14" POSITION="right" STYLE="fork" TEXT="#p Contenu 3">
<arrowlink DESTINATION="ID_8" ENDARROW="Default"/>
</node>
</node>
<node ID="ID_5" POSITION="right" STYLE="fork" TEXT="#rmk Remarque"/>
<node ID="ID_8" POSITION="right" STYLE="fork" TEXT="#compl Compl&#233;ment"/>
<node ID="ID_9" POSITION="right" STYLE="fork" TEXT="#wrng Attention"/>
<node ID="ID_10" POSITION="right" STYLE="fork" TEXT="#ex Exemple"/>
<node ID="ID_7" POSITION="right" STYLE="fork" TEXT="#emph Emphase"/>
<node ID="ID_6" POSITION="right" STYLE="fork" TEXT="#adv Conseil"/>
</node>
<node ID="ID_16" POSITION="left" STYLE="fork" TEXT="Lambda">
<node ID="ID_17" POSITION="left" STYLE="fork" TEXT="Fils 1">
<node ID="ID_19" POSITION="left" STYLE="fork" TEXT="Petit-fils 1">
<node ID="ID_20" POSITION="left" STYLE="fork" TEXT="#p Paragraphe"/>
</node>
</node>
<node ID="ID_18" POSITION="left" STYLE="fork" TEXT="Fils 2">
<node ID="ID_21" POSITION="left" STYLE="fork" TEXT="Paragraphe"/>
</node>
</node>
<node ID="ID_3" POSITION="right" STYLE="fork" TEXT="#2 Noeud2"/>
<node ID="ID_4" POSITION="right" STYLE="fork" TEXT="#intro Intro"/>
<node ID="ID_15" POSITION="right" STYLE="fork" TEXT="#conclu Conclusion"/>
</node>
</map>
\ No newline at end of file
<map version="1.0.1">
<node ID="ID_1" TEXT="Test NF29 1">
<node ID="ID_2" POSITION="right" STYLE="fork" TEXT="#1 Noeud1">
<node ID="ID_11" POSITION="right" STYLE="fork" TEXT="#def D&#233;finition">
<node ID="ID_12" POSITION="right" STYLE="fork" TEXT="#p Contenu 1"/>
<node ID="ID_13" POSITION="right" STYLE="fork" TEXT="#p Contenu 2"/>
<node ID="ID_14" POSITION="right" STYLE="fork" TEXT="#p Contenu 3"/>
</node>
<node ID="ID_5" POSITION="right" STYLE="fork" TEXT="#rmk Remarque"/>
<node ID="ID_8" POSITION="right" STYLE="fork" TEXT="#compl Compl&#233;ment"/>
<node ID="ID_9" POSITION="right" STYLE="fork" TEXT="#wrng Attention"/>
<node ID="ID_10" POSITION="right" STYLE="fork" TEXT="#ex Exemple"/>
<node ID="ID_7" POSITION="right" STYLE="fork" TEXT="#emph Emphase"/>
<node ID="ID_6" POSITION="right" STYLE="fork" TEXT="#adv Conseil"/>
</node>
<node ID="ID_16" POSITION="left" STYLE="fork" TEXT="Lambda">
<node ID="ID_17" POSITION="left" STYLE="fork" TEXT="Fils 1">
<node ID="ID_19" POSITION="left" STYLE="fork" TEXT="Petit-fils 1">
<node ID="ID_20" POSITION="left" STYLE="fork" TEXT="#p Paragraphe"/>
</node>
</node>
<node ID="ID_18" POSITION="left" STYLE="fork" TEXT="Fils 2">
<node ID="ID_21" POSITION="left" STYLE="fork" TEXT="Paragraphe"/>
</node>
</node>
<node ID="ID_3" POSITION="right" STYLE="fork" TEXT="#2 Noeud2"/>
<node ID="ID_4" POSITION="right" STYLE="fork" TEXT="#intro Intro"/>
<node ID="ID_15" POSITION="right" STYLE="fork" TEXT="#conclu Conclusion"/>
</node>
</map>
\ No newline at end of file
Initialisation du dossier
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