Difference between revisions of "Translating wikimedia"
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…') |
(Link to French page) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Traduction des documents wikimedia|En français]] |
|||
⚫ | |||
* apertium-desmediawiki/-remediawiki in the apertium package is installed by default, but only handles the basics |
|||
⚫ | |||
⚫ | |||
* apertium- |
* '''apertium-desmediawiki/-remediawiki''' in the apertium package is installed by default, but only handles the basics |
||
⚫ | |||
⚫ | |||
* '''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? |
:: but can you actually translate wikimedia-formatted articles with it, or just po-files and such? |
||
⚫ | |||
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. |
|||
⚫ | |||
== apertium-mediawiki == |
== apertium-mediawiki == |
||
This is a work-in-progress full format handler for mediawiki. |
|||
Download and compile like this: |
|||
To install: |
|||
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-mediawiki |
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-mediawiki |
||
sh |
sh autogen.sh |
||
make |
|||
sudo make install |
|||
You should now be able to do |
|||
cat es-article.wiki | demediawiki | apertium -f none es-ca | remediawiki > ca-article.wiki |
|||
This extension was originally hosted at https://code.google.com/p/apertium-mediawiki/ , those pages still hold some documentation. |
|||
To run the regression tests: |
|||
make test |
|||
==See also== |
|||
* [[Wikitrans]] |
|||
* [https://blog.wikimedia.org/2013/03/04/parsoid-how-wikipedia-catches-up-with-the-web/ Description of the Parsoid Mediawiki parser] |
|||
* [[Tips for translators]] |
|||
* [[Format handling]] |
|||
[[Category:Development]] |
|||
[[Category:Formats]] |
|||
[[Category:Documentation in English]] |
Latest revision as of 10:32, 6 October 2014
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 es-article.wiki | apertium-desmediawiki | apertium -f none es-ca | apertium-remediawiki > ca-article.wiki
- Usage:
- apertium-mediawiki -- a newer work-in-progress format handler that handles links better (see below)
- 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 (which is written for nn-nb) after just using the regular format handler
apertium-mediawiki[edit]
This is a work-in-progress full format handler for mediawiki.
Download and compile like this:
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-mediawiki sh autogen.sh make sudo make install
You should now be able to do
cat es-article.wiki | demediawiki | apertium -f none es-ca | remediawiki > ca-article.wiki
This extension was originally hosted at https://code.google.com/p/apertium-mediawiki/ , those pages still hold some documentation.
To run the regression tests:
make test