Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
f895ec30
Commit
f895ec30
authored
Jan 04, 2017
by
Charlotte luszcz
Browse files
added opale_to_canoprof
parent
76553894
Changes
7
Hide whitespace changes
Inline
Side-by-side
opale_to_canoprof/README.md
0 → 100644
View file @
f895ec30
Liste des fonctions du convertisseur wikipedia_to_canoprof
Une activité est composée de :
-
Entete :
titre
Durée => Ne peut pas être renseignée à partir de wiki
organisation => Faisable
résumé => Concrètement le 1e paragraphe du wiki
Compétences du socle/ Notions et compétences/ métadonnées d'indexation => Correspond à quoi concrétement ?
-
(Section | element)
*
Les éléments sont :
*
Information
*
Attention
*
Complément
*
Conseil
*
Définition
*
Exemple
*
Hypothèse
*
Méthode
*
Rappel
*
Question avec corrigé masqué ou non
=> Pas forcément utile dans le cas où les articles wikipédia ne comportent pas de QCM
Les sections sont composées : section(titre,element
*
)
*
titre
*
element
Chaque element est decoupé en : element(titre?,contenu)
Contenu est de la forme :
1.
Texte multimédia (paragraphe)
*
paragraphe :
possibilité de mise en page
<important/>
<italique/>
Citation (paragraphe)
Indice
Exposant
Liens Web (url,titre,description) -> Utilité de description ?
Lien vers activité = sc:uLink role="activity"
Lien vers média = sc:uLink role="media"
Illustration =
<sc:extBlock
role=
"illustration"
sc:refUri=
"/texte.activite"
/>
Inline image
Liste = puce ou ordonné
Tableau => A priori pas utile, parce qu'avec Wikipédia, ca sera texte + url + image c'est tout
Les tableaux seront sous forme d'image
2.
Texte vis-à-vis = pas utile pour la transfo
3.
Zone de saisie élève , consigne élève, remarque professeur => pas utiles non plus
Mise en relation hdoc // Canoprof
\ No newline at end of file
opale_to_canoprof/lib/ant-contrib.jar
0 → 100644
View file @
f895ec30
File added
opale_to_canoprof/lib/ant-launcher.jar
0 → 100644
View file @
f895ec30
File added
opale_to_canoprof/lib/ant.jar
0 → 100644
View file @
f895ec30
File added
opale_to_canoprof/lib/saxon9he.jar
0 → 100644
View file @
f895ec30
File added
opale_to_canoprof/opale_to_canoprof.ant
0 → 100644
View file @
f895ec30
<?xml version="1.0" encoding="UTF-8"?>
<project
basedir=
"."
name=
"opale_to_canoprof"
default=
"main"
>
<property
file=
"opale_to_canoprof.properties"
/>
<!-- Check the OS family -->
<condition
property=
"is_windows"
>
<os
family=
"windows"
/>
</condition>
<condition
property=
"is_unix"
>
<os
family=
"unix"
/>
</condition>
<target
name=
"main"
>
<delete
dir=
"${out}"
failonerror=
"false"
/>
<mkdir
dir=
"output"
/>
<antcall
target=
"to_hdoc_unix"
/>
<antcall
target=
"to_hdoc_windows"
/>
<antcall
target=
"to_canoprof_windows"
/>
<antcall
target=
"to_canoprof_unix"
/>
<antcall
target=
"to_canoprof_end"
/>
</target>
<!-- Targets if windows -->
<!-- Conversion opale to hdoc -->
<!-- 1. delete the opale_to_hdoc input file -->
<!-- 2. copy the local input file to opale_to_hdoc -->
<!-- 3. run the opale_to_hdoc conversion -->
<target
name=
"to_hdoc_windows"
if=
"${is_windows}"
>
<delete>
<fileset
dir=
"${opa_in}"
>
<include
name=
"*.scar"
/>
</fileset>
</delete>
<copy
todir=
"${opa_in}"
>
<fileset
dir=
"${in}"
>
<include
name=
"*.scar"
/>
</fileset>
</copy>
<exec
dir=
"../opale_to_hdoc"
executable=
"../opale_to_hdoc/run.bat"
/>
</target>
<!-- Conversion hdoc to canoprof -->
<!-- 1. delete the hdoc_to_canoprof input file -->
<!-- 2. copy the opale_to_hdoc's output file to hdoc_to_canoprof input folder -->
<!-- 3. run the hdoc_to_canoprof conversion -->
<target
name=
"to_canoprof_windows"
if=
"${is_windows}"
>
<delete>
<fileset
dir=
"${cano_in}"
>
<include
name=
"*.hdoc"
/>
</fileset>
</delete>
<copy
todir=
"${cano_in}"
>
<fileset
dir=
"${opa_out}"
>
<include
name=
"*.hdoc"
/>
</fileset>
</copy>
<exec
dir=
"../hdoc_to_canoprof"
executable=
"../hdoc_to_canoprof/run.bat"
/>
</target>
<!-- Targets if unix -->
<!-- Conversion opale to hdoc -->
<!-- 1. delete the opale_to_hdoc input file -->
<!-- 2. copy the local input file to opale_to_hdoc -->
<!-- 3. run the opale_to_hdoc conversion -->
<target
name=
"to_hdoc_unix"
if=
"${is_unix}"
>
<delete>
<fileset
dir=
"${opa_in}"
>
<include
name=
"*.scar"
/>
</fileset>
</delete>
<copy
todir=
"${opa_in}"
>
<fileset
dir=
"${in}"
>
<include
name=
"*.scar"
/>
</fileset>
</copy>
<exec
executable=
"/bin/bash"
dir=
"../opale_to_hdoc"
>
<arg
value=
"../opale_to_hdoc/run.sh"
/>
</exec>
</target>
<!-- Conversion hdoc to canoprof -->
<!-- 1. delete the hdoc_to_canoprof input file -->
<!-- 2. copy the opale_to_hdoc's output file to hdoc_to_canoprof input folder -->
<!-- 3. run the hdoc_to_canoprof conversion -->
<target
name=
"to_canoprof_unix"
if=
"${is_unix}"
>
<delete>
<fileset
dir=
"${cano_in}"
>
<include
name=
"*.hdoc"
/>
</fileset>
</delete>
<copy
todir=
"${cano_in}"
>
<fileset
dir=
"${opa_out}"
>
<include
name=
"*.hdoc"
/>
</fileset>
</copy>
<exec
executable=
"/bin/bash"
dir=
"../hdoc_to_canoprof"
>
<arg
value=
"../hdoc_to_canoprof/run.sh"
/>
</exec>
</target>
<!-- After the file is converted to canoprof, copy the resulting file to opale_to_canoprof's output folder -->
<target
name=
"to_canoprof_end"
>
<copy
todir=
"${out}"
>
<fileset
dir=
"${cano_out}"
/>
</copy>
</target>
</project>
opale_to_canoprof/opale_to_canoprof.properties
0 → 100644
View file @
f895ec30
in
=
${basedir}/input
out
=
${basedir}/output
tmp
=
${basedir}/tmp
xsl
=
${basedir}/xsl
lib
=
${basedir}/lib
log
=
${basedir}/log
opa_in
=
../opale_to_hdoc/input
opa_out
=
../opale_to_hdoc/output
cano_in
=
../hdoc_to_canoprof/input
cano_out
=
../hdoc_to_canoprof/output
rootfilename
=
content.xml
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment