TMX: exchanging translation memoriesTMX : échanger des mémoires de traduction
Main characteristics:
- multilingual: one file can cover any number of languages;
- very widely supported: practically every CAT tool imports and exports TMX;
- simple in structure: a header and a body, with the translation units.
Here is one of the units our fictional client, Cascade Pumps Inc., sends you. Simplified excerpt:
<tu tuid="41" creationdate="20240915T093000Z">
<tuv xml:lang="en-CA">
<seg>Install the pump on a level surface.</seg>
</tuv>
<tuv xml:lang="fr-CA">
<seg>Installez la pompe sur une surface plane.</seg>
</tuv>
</tu><tu> (translation unit) is the translation unit; <tuv> (translation unit
variant), its variant in a given language; <seg>, the segment itself. Adding
a third language means adding a <tuv> to the same <tu>.
The header is where a TMX file keeps its own metadata. It is written by the tool, it is mandatory, and it declares seven things: the tool that produced the file and its version, the segmentation segmentationsegmentation CAT toolsTAO The operation of dividing translatable content into segments, which correspond roughly to sentences, titles and other separate text elements.Opération qui consiste à diviser le contenu à traduire en segments, qui correspondent plus ou moins aux phrases, aux titres et aux autres éléments textuels séparés. used (sentence, paragraph, block), the original format of the data, the source language, the language of the administrative comments, and the data type. A file missing any one of them is not conformant.
Formatting inside segments
When a segment contains formatting, TMX does not drop it: it represents it with
inline tags inline tagbalise interne CAT toolsTAO A marker inside a segment standing for formatting or a code of the original document, a bold run or a footnote reference for instance, rather than for text to translate.Marqueur placé à l'intérieur d'un segment qui représente une mise en forme ou un code du document d'origine, par exemple un passage en gras ou un appel de note, et non du texte à traduire. . <bpt> and <ept> mark the start and
the end of a paired code, <ph> stands in for a code on its own, and the i
attribute attributeattribut XMLXML In XML, a name-value pair written in an element's start-tag or empty-element tag to provide additional information about that element, such as its language, identifier, or creation date.En XML, paire nom-valeur inscrite dans la balise ouvrante d'un élément, ou dans sa balise d'élément vide, pour fournir de l'information supplémentaire sur cet élément, comme sa langue, son identifiant ou sa date de création. says which <ept> closes which <bpt>.
<seg>Install the <bpt i="1"><strong></bpt>centrifugal pump<ept i="1"></strong></ept> on a level surface.</seg><bpt> and <ept> contain the code of the tool that wrote the file, here
the HTML HyperText Markup Language (HTML)langage HTML (HTML) markupbalisage The markup language of web pages: a vocabulary of elements laid down by a standard, marking headings, paragraphs, links, images and the rest, which a browser renders.Langage de balisage des pages web : un vocabulaire d'éléments fixé par une norme, qui marque les titres, les paragraphes, les liens, les images et le reste, et qu'un navigateur affiche. tag tagbalise markupbalisage A marker that delimits and identifies an element in a markup document, usually working as a pair: an opening tag and a closing tag around the content they label.Marqueur qui délimite et identifie un élément dans un document balisé, fonctionnant généralement par paire : une balise ouvrante et une balise fermante autour du contenu qu'elles désignent. from the client’s site, with its angle brackets replaced as in the
previous chapter. The standard provides these elements elementélément XMLXML The building block of an XML document: an opening tag, the content it delimits and a closing tag, or a single empty-element tag when there is no content.Unité de base d'un document XML : une balise ouvrante, le contenu qu'elle délimite et une balise fermante, ou une seule balise d'élément vide quand il n'y a pas de contenu. so that formatting
survives the exchange; what is inside them, on the other hand, depends on
the tool, and the last chapter comes back to it.
Caractéristiques principales :
- multilingue : un même fichier peut contenir un nombre illimité de langues ;
- très largement pris en charge : pratiquement tous les outils de TAO importent et exportent du TMX ;
- structure simple : un en-tête et un corps, le corps contenant les unités de traduction.
Voici l’une des unités que notre client fictif, Cascade Pumps Inc., vous envoie. Extrait simplifié :
<tu tuid="41" creationdate="20240915T093000Z">
<tuv xml:lang="en-CA">
<seg>Install the pump on a level surface.</seg>
</tuv>
<tuv xml:lang="fr-CA">
<seg>Installez la pompe sur une surface plane.</seg>
</tuv>
</tu><tu> (translation unit) est l’unité de traduction ; <tuv> (translation
unit variant), sa variante dans une langue donnée ; <seg>, le segment
lui-même. Ajouter une troisième langue, c’est ajouter un <tuv> au même
<tu>.
L’en-tête est l’endroit où un fichier TMX conserve ses propres métadonnées. C’est l’outil qui l’écrit, il est obligatoire, et il déclare sept choses : l’outil qui a produit le fichier et sa version, la segmentation segmentationsegmentation CAT toolsTAO The operation of dividing translatable content into segments, which correspond roughly to sentences, titles and other separate text elements.Opération qui consiste à diviser le contenu à traduire en segments, qui correspondent plus ou moins aux phrases, aux titres et aux autres éléments textuels séparés. employée (phrase, paragraphe, bloc), le format d’origine des données, la langue source, la langue des commentaires d’administration et le type de données. Un fichier auquel il manque l’une d’elles n’est pas conforme.
La mise en forme dans les segments
Quand un segment contient de la mise en forme, TMX ne la laisse pas tomber : il
la représente par des balises internes inline tagbalise interne CAT toolsTAO A marker inside a segment standing for formatting or a code of the original document, a bold run or a footnote reference for instance, rather than for text to translate.Marqueur placé à l'intérieur d'un segment qui représente une mise en forme ou un code du document d'origine, par exemple un passage en gras ou un appel de note, et non du texte à traduire. . <bpt> et
<ept> marquent le début et la fin d’un code apparié, <ph> tient la place
d’un code isolé, et l’attribut attributeattribut XMLXML In XML, a name-value pair written in an element's start-tag or empty-element tag to provide additional information about that element, such as its language, identifier, or creation date.En XML, paire nom-valeur inscrite dans la balise ouvrante d'un élément, ou dans sa balise d'élément vide, pour fournir de l'information supplémentaire sur cet élément, comme sa langue, son identifiant ou sa date de création. i dit quel <ept> ferme quel <bpt>.
<seg>Install the <bpt i="1"><strong></bpt>centrifugal pump<ept i="1"></strong></ept> on a level surface.</seg><bpt> et <ept> contiennent le code de l’outil qui a écrit le fichier, ici
la balise tagbalise markupbalisage A marker that delimits and identifies an element in a markup document, usually working as a pair: an opening tag and a closing tag around the content they label.Marqueur qui délimite et identifie un élément dans un document balisé, fonctionnant généralement par paire : une balise ouvrante et une balise fermante autour du contenu qu'elles désignent. HTML HyperText Markup Language (HTML)langage HTML (HTML) markupbalisage The markup language of web pages: a vocabulary of elements laid down by a standard, marking headings, paragraphs, links, images and the rest, which a browser renders.Langage de balisage des pages web : un vocabulaire d'éléments fixé par une norme, qui marque les titres, les paragraphes, les liens, les images et le reste, et qu'un navigateur affiche. du site du client, avec ses chevrons remplacés
comme au chapitre précédent. Ces éléments elementélément XMLXML The building block of an XML document: an opening tag, the content it delimits and a closing tag, or a single empty-element tag when there is no content.Unité de base d'un document XML : une balise ouvrante, le contenu qu'elle délimite et une balise fermante, ou une seule balise d'élément vide quand il n'y a pas de contenu. sont prévus par la norme pour que la
mise en forme traverse l’échange ; ce qu’ils transportent à l’intérieur, en
revanche, dépend de l’outil, et le dernier chapitre y revient.
Sources
- GALA (Globalization and Localization Association) (2005). TMX 1.4b Specification. https://resources.gala-global.org/tbx14b/
- Raya, R. (2005). XML in localisation: Reuse translations with TM and TMX. Maxprograms. https://www.maxprograms.com/articles/tmx.html
- Microsoft Learn (n.d.). Maintain translation memories. https://learn.microsoft.com/en-us/globalization/localization/translation-memories
Sources
- GALA (Globalization and Localization Association) (2005). TMX 1.4b Specification. https://resources.gala-global.org/tbx14b/
- Raya, R. (2005). XML in localisation: Reuse translations with TM and TMX. Maxprograms. https://www.maxprograms.com/articles/tmx.html
- Microsoft Learn (n.d.). Maintain translation memories. https://learn.microsoft.com/en-us/globalization/localization/translation-memories