Handling SGML files

This page contains instructions for handling SGML files in SDL Trados Studio.

Create a custom file type that could handle SGML files

About this task

Studio cannot process native SGML files out of the box, because there is no standard set of SGML elements that it could interpret. However, you can configure a custom file type in Studio and use you own Document Type Definition (DTD) for opening SGML files.

Procedure

  1. Go to File > Options > File Types > New > HTML and follow the steps from the Creating a File Type topic. Pay attention to these options:
    • for the File dialog wildcard expression option, fill in the *.sgml extension
    • in the HTML Elements Import page, choose to define HTML elements based on an SGML or DTD file and browse for an example file that contains the tags you want to use

    • take a look at the HTML Parser Settings topic for help on how to customize the processing of your document's elements. This is done in the Parser settings page of the wizard

    • specify an element by which Studio will detect the SGML file. See the HTML Detection Settings topic for more information.

  2. After you are done with setting up the file type, open an SGML file. Studio should process it using your defined settings.