Translating wikimedia

From Apertium
Jump to navigation Jump to search

En français

To translate wikimedia formatted text, like Wikipedia articles, there are several options.

  • apertium-desmediawiki/-remediawiki in the apertium package is installed by default, but only handles the basics
    • Usage: cat | apertium-desmediawiki | apertium -f none es-ca | apertium-remediawiki >

  • apertium-mediawiki -- a newer work-in-progress format handler that handles links better (see below)

but can you actually translate wikimedia-formatted articles with it, or just po-files and such?

  • you can run a clean-up script such as (which is written for nn-nb) after just using the regular format handler


This is a work-in-progress full format handler for mediawiki.

Download and compile like this:

   svn co
   sudo make install

You should now be able to do

   cat | demediawiki | apertium -f none es-ca | remediawiki >

This extension was originally hosted at , those pages still hold some documentation.

To run the regression tests:

   make test

See also[edit]