Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All kind of XLF tags (<g>,<x/>,<bpt>,<ept>,<bx/>,<ex/>,<it>,<ph>) are supported. If <sub> tags are contained in tags, they are imported as separate segments as well.

Ignore Framing Tags

On importing a segment framing tags can be ignored. Framing tags are internal tags which surround the textual content. For proofreading tasks the framing tags in source and target field must be equal.

This is enabled by default, and can be deactivated in the config with setting runtimeOptions.import.xlf.ignoreFramingTags to 0.

Examples

Source in XLFTarget in XLFSource in Translate5Target in Translate5

<g id="1"><g id="2">Das ist ein <x />Testtext</g></g>

<g id="1"><g id="2">This is a <x />Testtext</g></g>

Das ist ein <x />Testtext

This is a <x />Testtext

The g tags in the source and target equals, they are ignored though.

<g id="2"><g id="1">Das ist ein <x />Testtext</g></g>

<g id="1"><g id="2">This is a <x />Testtext</g></g>

<g id="2"><g id="1">Das ist ein <x />Testtext</g></g>

<g id="1"><g id="2">This is a <x />Testtext</g></g>

The g tags are flipped between source and target, the tags remain in translate5.

<g id="1"><g id="2">Das ist ein <x />Testtext</g></g>


Das ist ein <x />Testtext


If the target is empty, the surrounding tags are removed in translate5.

On Export the framing tags are restored surround the segment text.

Preserve Whitespace

According to the XML specification and the XLIFF 1.2 specification the xml:space attribute is parsed and respected.

...