Difference between revisions of "Convert2MediaWiki"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Asking for help...)
 
(Translate installation instructions)
Line 1: Line 1:
=Explanations=
+
= Overview =
 
+
I found on the [http://mouchevii.free.fr/wiki/ La Mouche] wiki an XSLT file and instructions (in french) on how to convert from OpenOffice SXW format to MediaWiki. 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...
I found on the [http://mouchevii.free.fr/wiki/ 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...)
 
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 are in French [http://mouchevii.free.fr/wiki/index.php?title=Convertir_un_document_OpenOffice_en_page_MediaWiki here], and are translated to English as follows:
 
+
The [http://mouchevii.free.fr/wiki/index.php?title=Convertir_un_document_OpenOffice_en_page_MediaWiki 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 : [http://mouchevii.free.fr/fichiers/OOo2MediaWiki.xslt.gz OOo2MediaWiki.xslt.gz]'''
+
This XSLT is modified from [http://uniwakka.sourceforge.net/OpenOffice2UniWakka OpenOffice2UniWakka] to convert some of the OpenOffice styles to MediaWiki.
  
 +
Currently it supports the following styles:
 +
*Heading levels 1 to 8
 +
*Underlined text
 +
*Italic text
 +
*Bold text
 +
*Centered text
  
Pour l'installer, lancer OpenOffice, puis naviguer dans les menus '''Outils''' --> '''Paramétrage du filtre XML''' --> '''Nouveau''', puis remplir les champs comme suit :
+
There are still style elements that work for UniWakka, which I will (maybe) develop for MediaWiki with my needs.
  
:* '''Nom du filtre''' : ''MediaWiki''
+
= Installation =
:* '''Application''' : ''OpenOffice.org Writer (.sxw)''
+
First, download the XSLT: [http://mouchevii.free.fr/fichiers/OOo2MediaWiki.xslt.gz OOo2MediaWiki.xslt.gz]
:* '''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''.
+
The XSLT is then installed into OpenOffice as a file export filter. Launch OpenOffice, go into the '''Tools''' menu, select '''XML Filter Settings''' then click the '''New''' button. Fill out the resulting dialog box as follows:
 +
*'''Filter name:''' <tt>MediaWiki</tt>
 +
*'''Application:''' <tt>OpenOffice.org Writer (.sxw)</tt>
 +
*'''Name of file type:''' <tt>MediaWiki</tt>
 +
*'''File extension:''' <tt>txt</tt>
  
 +
Go to the '''Transformation''' tab and browse for the downloaded XSLT file to select the '''XSLT for import'''
  
Pour convertir un fichier : '''Fichier''' --> '''Exporter''', choisir le bon filtre, et c'est vendu.
+
= Usage =
 +
To convert a document, go to '''Export''' in the '''File''' menu, and set the '''File format''' to <tt>MediaWiki (.txt)</tt>, then click '''Save'''. The resulting text file can then be pasted into a MediaWiki article.

Revision as of 10:30, 15 January 2007

Overview

I found on the La Mouche wiki an XSLT file and instructions (in french) on how to convert from OpenOffice SXW format to MediaWiki. 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...)

The original instructions are in French here, and are translated to English as follows:

This XSLT is modified from OpenOffice2UniWakka to convert some of the OpenOffice styles to MediaWiki.

Currently it supports the following styles:

  • Heading levels 1 to 8
  • Underlined text
  • Italic text
  • Bold text
  • Centered text

There are still style elements that work for UniWakka, which I will (maybe) develop for MediaWiki with my needs.

Installation

First, download the XSLT: OOo2MediaWiki.xslt.gz

The XSLT is then installed into OpenOffice as a file export filter. Launch OpenOffice, go into the Tools menu, select XML Filter Settings then click the New button. Fill out the resulting dialog box as follows:

  • Filter name: MediaWiki
  • Application: OpenOffice.org Writer (.sxw)
  • Name of file type: MediaWiki
  • File extension: txt

Go to the Transformation tab and browse for the downloaded XSLT file to select the XSLT for import

Usage

To convert a document, go to Export in the File menu, and set the File format to MediaWiki (.txt), then click Save. The resulting text file can then be pasted into a MediaWiki article.

Personal tools