Configuring the Plain Text embedded content processor

When you work with an XML file that contains chunks of embedded plain text, for example in a CDATA section, you can assign an embedded content processor to handle the sub-content separately.

About this task

When you assign an embedded content processors for plain text, SDL Trados Studio 2015 SP1 and later handles embedded plain text as a different file within the XML file. This enables you to specify custom settings for extracting and displaying the content of the plain text, which is embedded in the XML file, correctly.

Procedure

  1. Choose the XML file type which will process your XML file. Decide for which projects you want to configure XML 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. Expand the File Types tree and select the XML file type relevant for your XML file (XML: Microsoft .Net Resources, XML: Oasis DITA 1.2 Compliant, XML: Oasis DocBook 4.5 Compliant) or create a new XML (Embedded Content) file type.
  3. Enable the embedded content processor which will handle the plain text in your XML file. Go to the Embedded content page of your XML file type, and:
    1. Select the Process embedded content using the following processor checkbox.
    2. Choose Embedded Content Plain Text v 1.0.0.0 from the drop-down menu.
  4. Specify where SDL Trados Studio should look for embedded content in the XML file. Choose the CDATA section options to process all plain text embedded in CDATA sections. Choose Document structure > Add... to define a more specific element where to look for embedded plain text.
  5. Set processing rules for the Plain Text embedded content processor. Expand the Embedded Content Processors tree and select Plain Text.
  6. Select the Document structure page, and add regular expressions to define which bits of the plain text embedded in the XML file should be extracted as translatable text.
  7. On the Inline tags page, add regular expressions to define which bits of the plain text embedded in the XML file should be converted to inline tags and how SDL Trados Studio will display these in the Editor view.
  8. Select OK.