Difference between revisions of "Convert2MediaWiki"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Asking for help...)
 
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
=Explanations=
+
{{Old|EN}}
 +
OpenOffice.org versions 2.4 and later have a MediaWiki [[export]] filter built in.  Just open a Writer document and click '''File''' - '''Export'''.  Then, change '''File format''' to '''MediaWiki'''.
  
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...
+
== 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...
  
 
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:
+
This XSLT is modified from [http://uniwakka.sourceforge.net/OpenOffice2UniWakka OpenOffice2UniWakka] to convert some of the OpenOffice styles to MediaWiki.
  
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).
+
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.
  
Pour l'instant, elle supporte :
+
== Installation ==
 +
First, download the XSLT: [http://mouchevii.free.fr/fichiers/OpenOffice2MediaWiki/OOo2MediaWiki.xslt.gz OOo2MediaWiki.xslt.gz]
  
:* les niveaux de titre 1 à 8
+
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:
:* le soulignement
+
*'''Filter name:''' <tt>MediaWiki</tt>
:* l'italique
+
*'''Application:''' <tt>OpenOffice.org Writer (.sxw)</tt>
:* le gras
+
*'''Name of file type:''' <tt>MediaWiki</tt>
:* le centrage
+
*'''File extension:''' <tt>txt</tt>
  
Il reste des éléments de conversion propres à UniWakka, qui disparaitront (peut-être) au fur et à mesure de mes besoins.
+
Go to the '''Transformation''' tab and browse for the downloaded XSLT file to select the '''XSLT for export'''
  
 +
== 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.
  
'''Téléchargement : [http://mouchevii.free.fr/fichiers/OOo2MediaWiki.xslt.gz OOo2MediaWiki.xslt.gz]'''
+
== Related pages ==
 +
*[[Odt2Wiki]] for conversion from OpenOffice.org 2.0 (odt) to MediaWiki.
  
 
+
[[Category:Wiki]]
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.
+

Latest revision as of 12:43, 9 July 2018

Book-old.png    This article is outdated.    

OpenOffice.org versions 2.4 and later have a MediaWiki export filter built in. Just open a Writer document and click File - Export. Then, change File format to MediaWiki.

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 export

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.

Related pages

  • Odt2Wiki for conversion from OpenOffice.org 2.0 (odt) to MediaWiki.
Personal tools