Gå til hovedinnhold

TMX format (.tmx)

TMX is the XML interchange format for content memories, the portable form in which bilingual segment pairs move between tools. A TMX document holds a header declaring the source language (srclang) and a body of <tu> translation units; each unit carries one <tuv> translation-unit variant per language, with optional unit- and header-level <note> and <prop> metadata.

The reader emits one translatable block per <tu>: the source segment matches the header srclang and a target segment is produced for each other-language <tuv>. The header attributes and any header-level note or property are surfaced as a single non-translatable data part ahead of the blocks, while unit-level notes and properties attach to the block. This makes TMX usable both as an input for review or alignment and as an output for exporting a memory. It mirrors Okapi's TMX filter.

IDtmx
SourceBuilt-in
Extensions.tmx
MIME Typesapplication/x-tmx+xml
CapabilitiesRead + Write

Parameters

ParameterTypeDefaultDescription
codeFinderRulesarrayRegex-mønstre som samsvarer med innebygde koder i oversettbar tekst
escapeGTbooleanfalseEscape > som &gt; i XML-utdata
exitOnInvalidbooleanfalseStopp behandlingen når ugyldige TU-er oppdages. Når false hoppes ugyldige TU-er over.
processAllTargetsbooleantrueLes alle målspråks-TUV-er fra hver TU. Når false, leses bare det første målet.
useCodeFinderbooleanfalseAktiver regex-basert deteksjon av innebygd kode i oversettbar tekst

Configure it live

Configuration
Loading form…

Examples

Read only the first target

Reduce a multilingual memory to a single target language.

processAllTargets: false

Fail fast on invalid units

Abort processing when a malformed translation unit is found.

exitOnInvalid: true

Processing notes

  • The source segment matches the header srclang; one target segment is produced per other-language <tuv>.

  • Header attributes and header-level notes and properties are emitted as a single non-translatable data part ahead of the blocks; unit-level notes and properties attach to the block.

← Back to the Format Reference