Difference between revisions of "Convert2MediaWiki"
(Asking for help...) |
(No difference)
|
Revision as of 07:28, 20 November 2006
Explanations
I found on the La Mouche wiki a page with an xslt file and instructions (in french) on how to convert from OOo to media wiki. I changed a bit the xslt file, but "La Mouche" wiki is not editable any more (closed?). So I would like to post the file here and copy the instructions...
Unfortunately I can't find how to post a file! Can someone help me? (When trying to copy the file on the server it says (in French) that .xslt is not a recommanded image file format...)
Original (in French)
The original instructions says:
Ayant besoin de convertir des documents OpenOffice en code MediaWiki, j'ai adapté une feuille de transformation XSLT pour UniWakka (http://uniwakka.sourceforge.net/OpenOffice2UniWakka).
Pour l'instant, elle supporte :
- les niveaux de titre 1 à 8
- le soulignement
- l'italique
- le gras
- le centrage
Il reste des éléments de conversion propres à UniWakka, qui disparaitront (peut-être) au fur et à mesure de mes besoins.
Téléchargement : OOo2MediaWiki.xslt.gz
Pour l'installer, lancer OpenOffice, puis naviguer dans les menus Outils --> Paramétrage du filtre XML --> Nouveau, puis remplir les champs comme suit :
- Nom du filtre : MediaWiki
- Application : OpenOffice.org Writer (.sxw)
- Nom du type de fichier : MediaWiki
- Extension de fichier : wiki (ou txt, comme vous préférez)
Dans l'onglet Transformation, en face de XSLT pour export, indiquez le chemin du fichier OpenOffice2MediaWiki.xslt.
Pour convertir un fichier : Fichier --> Exporter, choisir le bon filtre, et c'est vendu.