Difference between revisions of "Translating wikimedia"

From Apertium
Jump to navigation Jump to search
(Created page with 'To translate wikimedia formatted text, there are several options. * apertium-desmediawiki/-remediawiki in the apertium package is installed by default, but only handles the basic…')
 
Line 1: Line 1:
To translate wikimedia formatted text, there are several options.
To translate wikimedia formatted text, there are several options.
* apertium-desmediawiki/-remediawiki in the apertium package is installed by default, but only handles the basics
* '''apertium-desmediawiki/-remediawiki''' in the apertium package is installed by default, but only handles the basics
** Usage: <code>cat file.wiki | apertium-desmediawiki | apertium -f none es-ca | apertium-remediawiki</code>
** Usage: <code>cat file.wiki | apertium-desmediawiki | apertium -f none es-ca | apertium-remediawiki</code>
* apertium-mediawiki -- a newer work-in-progress that handles links better
* '''apertium-mediawiki''' -- a newer work-in-progress that handles links better
* [http://www.mediawiki.org/wiki/Extension:Translate Mediawiki Extension:Translate] -- if you run a wiki, you can install this to use Apertium through it
* [http://www.mediawiki.org/wiki/Extension:Translate '''Mediawiki Extension:Translate'''] -- if you run a wiki, you can install this to use Apertium through it
:: but can you actually translate wikimedia-formatted articles with it, or just po-files and such?
:: 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 [http://apertium.svn.sourceforge.net/viewvc/apertium/trunk/apertium-nn-nb/wikifix-nb-nn.pl?view=markup&sortby=date wikifix.pl] after just using the regular format handler
* you can run a clean-up script such as [http://apertium.svn.sourceforge.net/viewvc/apertium/trunk/apertium-nn-nb/wikifix-nb-nn.pl?view=markup&sortby=date '''wikifix.pl'''] after just using the regular format handler


you can install the apertium-mediawiki [[Format handling|format handler]] and use it like you would use the HTML format handler. The wikimedia format handler is still a work-in-progress.
you can install the apertium-mediawiki [[Format handling|format handler]] and use it like you would use the HTML format handler. The wikimedia format handler is still a work-in-progress.

Revision as of 08:05, 21 February 2011

To translate wikimedia formatted text, there are several options.

  • apertium-desmediawiki/-remediawiki in the apertium package is installed by default, but only handles the basics
    • Usage: cat file.wiki | apertium-desmediawiki | apertium -f none es-ca | apertium-remediawiki
  • apertium-mediawiki -- a newer work-in-progress that handles links better
  • Mediawiki Extension:Translate -- if you run a wiki, you can install this to use Apertium through it
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 wikifix.pl after just using the regular format handler

you can install the apertium-mediawiki format handler and use it like you would use the HTML format handler. The wikimedia format handler is still a work-in-progress.

apertium-mediawiki

To install:

   svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-mediawiki
   sh make.sh