配置 XLIFF 文件类型

配置 XLIFF 文件类型设置,以便自定义在翻译或审校期间处理符合 OASIS XML 本地化交换文件格式 (XLIFF) 标准 1.1 或 1.2 版的文档的方式。

过程

  1. Decide for which projects you want to configure file type settings:
    • For the active project, go to the Projects view, and on the Home tab, select Project Settings.
    • For all future projects, go to File > Options.
  2. 展开文件类型列表,然后选择 XLIFF
  3. 选择设置页面,然后设置 XLIFF 文件类型的行为:
    • 选择将具有属性 translate='no' 的组和翻译单元中的句段显示为锁定内容,将属性“translate”设为“no”的翻译单元句段显示为已锁定内容。若禁用了此设置,则将忽略这些句段。
    • 如果您要在断句结构不支持 *.xliff 文件的应用程序中使用在 Trados Studio 中翻译的 *.xliff 文件,请选择不存储已翻译文件中的断句信息*.xliff 标准指定元素结构,其显示关于可翻译内容断句的信息。当 SDL Trados Studio 生成 *.xliff 文档时,此结构会自动添加。
    • 选择在句段中包含前导/尾随标记以在句段内容中包含标记。
    • 选择 XLIFF 文件的标记文本的选项:
      • 默认 - 对于以下元素,程序将从内嵌元素的实际值提取显示文本:
        bpt
        ept
        it
        对于以下元素,程序将从 ctype 属性提取显示文本,若该属性不存在,则从 equiv-text 属性提取。
        gx
        bx
        ex
        若该属性不存在,显示文本将设为元素名称。
      • “equiv-text”属性 - 程序将从内嵌元素的 equiv-text 属性内容提取标记的显示文本。若 equiv-text 属性不存在,显示文本将设为元素名称。
      • 标记内容仅适用于成对的内嵌元素,如 ph。程序将从标记对的值提取内嵌标记的显示文本。若文本值不存在或标记不成对,显示文本将设为元素名称。
      • 选择显示文本长度,然后选择将内嵌标记的显示文本缩短至的长度。
  4. Select the Segment status mapping page and specify the available settings:
    • Under File opening:, create correspondences between the XLIFF status: and the Studio status: columns, by choosing values from the lists, for each column.
    • Under File saving:, create correspondences between the Studio status: and the XLIFF status: columns, by choosing values from the lists, for each column.
    • Under Segment locking, select the checkboxes corresponding to the segment status which triggers a lock operation.
    • Under State-qualifiers select:
      • Map state-qualifier attribute values when reading file to create correspondence between segment states in Studio Editor.
      • Map state-qualifier attribute values when writing file to create correspondence between segment states in target file.
  5. Select the Whitespace page, to specify how SDL Trados Studio deals with whitespace characters (spaces, non-breaking spaces, tabs, line breaks) in the elements of an XML file. Under Whitespace in content, choose one of the options:
    • Select Always preserve, so that SDL Trados Studio does not replace any whitespace found in the XML element with a single space.
    • Select Normalize unless xml:space='preserve', so that SDL Trados Studio replaces only the whitespace which is not tagged with the attribute xml:space='preserve'.
    • Select Always normalize, so that SDL Trados Studio replaces any whitespace found in the XML element with a single space, ignoring any xml:space='preserve' attribute.
  6. 选择架构验证页面,指定 *.xliff 文件的验证选项
  7. Select the QuickInsert page.
  8. Specify QuickInsert settings to insert tags and formatting, or to insert text and special characters.
  9. Select the Embedded content page.
  10. Select Enable embedded content processing.
  11. In the Document structure information area, select Add to create extraction rules based on document structure information.
  12. In the Tag definition rules area, select Add to specify the tags which will be processed and to define them as translatable or non-translatable.
  13. 选择确定