Quick comparison

All four formats are present in the production capability registry, but each one is adapted differently. “Supported” means the runtime has a real adapter and validator for the format; it does not mean pixel-perfect preservation for every layout or inline style.

How the current adapters behave
FormatWhat is translatedCurrent integrity evidenceImportant limit
TXTEach non-empty UTF-8 lineExact line count plus protected/DNT line checksNo layout model beyond text lines
HTMLVisible text in selected semantic tags and text tailsOutput must remain parseable HTMLAttributes/scripts/styles are not translated; serialization may differ
ODTText paragraphs and headings in content.xmlOutput package must contain readable content.xmlNested inline formatting inside translated paragraphs may be simplified
ODPText paragraphs in content.xmlOutput package must contain readable content.xmlInline spans/formatting inside translated text elements may be simplified

TXT: strongest line-level integrity of the four

The TXT adapter reads UTF-8 text, translates each non-empty line independently and writes the same line structure back. Blank lines remain blank.

The structural validator compares source and output line counts and requires do-not-translate lines such as separators, decorative lines, pure markup and protected-token lines to remain exact in the same positions. Protected tokens that appeared in the source must also remain present.

  • Best fit: plain text, scripts, notes, exported strings and simple text workflows.
  • Review focus: translation quality and any line-based semantics your downstream system depends on.
  • Not a rich-document format: fonts, tables, images and page layout do not exist in TXT.

HTML: text nodes are translated, markup remains structural

The HTML adapter parses the source with an HTML parser and translates text found in a defined set of elements such as headings, paragraphs, list items, table cells, captions, links, blockquotes, spans, emphasis, strong text and code elements. Non-empty tail text is also processed.

The output is serialized again as HTML and must parse successfully. The current validator does not compare a source/output DOM signature, so support should not be read as a guarantee that every byte, attribute order or formatting detail remains unchanged.

  • Best fit: content-oriented HTML where human-visible text is the translation target.
  • Attributes, JavaScript and CSS are not translated by the text adapter.
  • Review templates containing embedded scripts, unusual whitespace semantics or application-specific markup.

ODT: OpenDocument text package with paragraph/headline translation

ODT files are ZIP-based OpenDocument packages. The adapter copies the package, edits content.xml and translates text:p and text:h elements.

When a translated element changes, its text is replaced and nested child elements are removed. That makes the workflow useful for text-centric ODT documents, but it also means mixed inline styling or nested spans inside an affected paragraph can be simplified.

The current format validator proves that the output package contains readable content.xml. It does not yet provide a source/output structural equivalence gate comparable to the XLSX formula or PPTX slide checks.

ODP: presentation text is supported with the same OpenDocument caveat

ODP uses the same ZIP/OpenDocument approach, but the adapter targets text:p elements in content.xml. The surrounding package entries are copied into the output.

As with ODT, translated paragraph elements can lose nested inline children. Use ODP support for practical text translation, then visually review slides where typography, spans, positioning or brand styling are important.

The current validator checks that content.xml remains readable, not that every presentation object matches the source one-for-one.

Which source format should you prefer?

Use the richest editable source that matches your actual document. If the content was authored in Word or PowerPoint, DOCX or PPTX has stronger format-specific integrity checks in the current runtime than converting it to ODT or ODP first.

Use TXT when line preservation matters more than visual formatting. Use HTML when the document is genuinely web content. Use ODT/ODP when those are your real editable sources and you can review inline formatting after translation.

Review checklist before publishing the translated file

Polyglot Tool performs automatic machine translation and explicitly recommends review for important documents. Format support reduces manual reconstruction work; it does not replace final document QA.

  • TXT: verify line-sensitive downstream behavior and translation quality.
  • HTML: render the page and check links, tables, whitespace-sensitive blocks and application-specific markup.
  • ODT: review inline emphasis, spans, headings, tables and visually important paragraphs.
  • ODP: review text overflow, inline styling, slide layout and brand-critical presentation elements.
  • For any business-critical file, inspect the translated output before distribution.