Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Translating a TMX

From Apertium
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
It might be useful to use apertium to translate one side of a TMX file. This is quite easy with apertium-tmx-tools.
+
{{Github-unmigrated-tool}}
  +
It might be useful to use Apertium to translate one side of a TMX file. Note: this is different from [[Translation memory|using a translation memory to aid Apertium in translating]].
  +
  +
Although TMX is not a built-in format, translating a TMX file is quite easy with apertium-tmx-tools.
   
 
Assuming you have apertium and your language pair installed, this is how you do it:
 
Assuming you have apertium and your language pair installed, this is how you do it:
 
<pre>
 
<pre>
  +
# Download tmx-tools and enter the downloaded directory:
 
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-tmx-tools
 
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-tmx-tools
 
cd apertium-tmx-tools
 
cd apertium-tmx-tools
   
  +
# Translate your input file, e.g. en-es.tmx, from Spanish to Catalan:
 
./apertium-ftmx es ca <en-es.tmx >en-ca.tmx
 
./apertium-ftmx es ca <en-es.tmx >en-ca.tmx
   
# Optionally add a mode:
+
# Optionally add a mode, if the TMX source/target language is not equal the translation source/target:
 
./apertium-ftmx es ca es-ca_valencia <en-es.tmx >en-ca_valencia.tmx
 
./apertium-ftmx es ca es-ca_valencia <en-es.tmx >en-ca_valencia.tmx
 
</pre>
 
</pre>

Latest revision as of 03:43, 10 March 2018

Note: After Apertium's migration to GitHub, this tool is read-only on the SourceForge repository and does not exist on GitHub. If you are interested in migrating this tool to GitHub, see Migrating tools to GitHub.

It might be useful to use Apertium to translate one side of a TMX file. Note: this is different from using a translation memory to aid Apertium in translating.

Although TMX is not a built-in format, translating a TMX file is quite easy with apertium-tmx-tools.

Assuming you have apertium and your language pair installed, this is how you do it:

# Download tmx-tools and enter the downloaded directory:
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-tmx-tools
cd apertium-tmx-tools

# Translate your input file, e.g. en-es.tmx, from Spanish to Catalan:
./apertium-ftmx es ca <en-es.tmx >en-ca.tmx

# Optionally add a mode, if the TMX source/target language is not equal the translation source/target:
./apertium-ftmx es ca es-ca_valencia <en-es.tmx >en-ca_valencia.tmx


[edit] See also

Personal tools