Okapi Framework - FiltersTrados-Tagged RTF Filter |
|
If you are using an Okapi Tool after the M9 release, you should be using the wiki online help:
http://okapiframework.org/wiki/index.php?title=Trados-Tagged_RTF_Filter
The Trados-Tagged RTF Filter is an Okapi component that implements the IFilter
interface for
RTF files prepared with the Trados translation layer of styles. The filter is implement in the class
net.sf.okapi.filters.rtf.RTFFilter
of the Okapi library.
This is a filter for READING ONLY and supports only RTF files where inline codes are represented with Trados styles (not RTF with "normal" formatting).
A Trados-Tagged RTF document is an RTF file that has special Trados styles associated to different parts of the content and has segmentation markers.
Note that a "normal" RTF file translated with Trados and showing segment is
not a full Trados-Tagged RTF because the formatting information are true RTF
codes rather than some code inside the text with the tw4wInternal
style. That is you see the selected text in bold rather than see the <b>
and </b>
tags. An example of Trados-Tagged RTF is an HTML document
where all the HTML tags are visible and are marked with either the
tw4wInternal
(red) or tw4wExternal
(gray) style.
The filter decides which encoding to use for the input document using the following logic:
Only the text marked by the Trados segmentation markers is taken into account. Any text outside the segments markers are ignored.
he file may or may not contain translation.
This is a READING ONLY filter. This filter does not generate an output corresponding to the input. It must be used for input only.
The filter understands only inline codes that are represented with Trados styles (not RTF with "normal" formatting).