-m memory.tmx
use a translation memory to recycle translations
Machine translation application platform
apertium [-au]
[-d
datadir]
[-f
format]
language-pair
[infile
[outfile]]
apertium is the application that most people will be using as it simplifies the use of apertium/lt-toolbox tools for machine translation purposes.
This tool tries to ease the use of lt-toolbox (which contains all the lexical processing modules and tools) and apertium (which contains the rest of the engine) by providing a unique front-end to the end-user.
The different modules behind the apertium machine translation architecture are in order:
Separates the text to be translated from the format information.
Tokenizes the text in surface forms.
Chooses one surface forms among homographs.
Reads each source-language lexical form and delivers a corresponding target-language lexical form.
Detects fixed-length patterns of lexical forms (chunks or phrases) needing special processing due to grammatical divergences between the two languages and performs the corresponding transformations.
Delivers a target-language surface form for each target-language lexical form, by suitably inflecting it.
Performs orthographical operations such as contractions and apostrophations.
Restores the format information encapsulated by the de-formatter into the translated text and removes the encapsulation sequences used to protect certain characters in the source text.
-d datadir
The directory holding the linguistic data. By default it will use the expected installation path.
The language pair: LANG1–LANG2 (for instance “es-ca” or “ca-es”).
-f format
Specifies the format of the input and output files which can have these values:
txt(default value) Input and output files are in text format.
htmlInput and output files are in “html” format. This “html” is the one accepted by the vast majority of web browsers.
html-noentInput and output files are in “html” format, but preserving native encoding characters rather than using HTML text entities.
rtfInput and output files are in “rtf” format. The accepted “rtf” is the one generated by Microsoft WordPad and Microsoft Office up to and including Office 97.
-u
Disable marking of unknown words with the ‘*’ character.
-H
Enable header-detection (only used in some language pairs; will lead to stray ‘❡’ characters in pairs that don't support it).
-a
Enable marking of disambiguated words with the ‘=’ character.
These are the two files that can be used with this command:
-m memory.tmx
use a translation memory to recycle translations
-o direction
translation direction using the translation memory, by default “direction” is used instead
-l
lists the available translation directions and exits direction typically, LANG1–LANG2, but see modes.xml in language data
infile
Input file (stdin by default).
outfile
Output file (stdout by default).
9 releases since Debian 5.0 (Lenny); the text changed 5 times.
-H since Debian 12 (Bookworm);
-a since Debian 11 (Bullseye);
-d since Debian 11 (Bullseye);
-f since Debian 11 (Bullseye);
-u since Debian 11 (Bullseye).