Documentation Center

Creating custom SGML file types

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

About this task

You can create custom SGML file types to process specific files from a third-party application.

Procedure

  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. Select File Types.
  3. In the File Types pane, select New.
  4. On the File Type Information page, select HTML, and then specify your custom information:
    1. File type name (mandatory) - Enter a user-friendly name for the file type. This is the name that will appear in the navigation tree.
    2. File type icon (optional) - Select Browse to select an icon. Existing file types use icons from the installation assembly. You cannot browse for these icons. This appears alongside the file name.
    3. File type identifier (mandatory) - Enter a unique identifier for this set of file types.
    4. Name of individual document - This appears in the Save as dialog, which is displayed when you close the file.
    5. Name of document category- This is displayed in the drop-down list associated with the File open dialog, which is displayed when you open the file.
    6. File dialog wildcard expression - Type *.sgml. When you open the file during translation, the Open Document dialog displays this expression in a drop-down list.
  5. Select Next.
  6. On 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.
  7. Select Next.
  8. Complete the: Parser, File Detection, Entities settings, Writer settings, Whitespace Settings pages.
  9. Select Finish.
    After you are done with setting up the file type, open an SGML file. Trados Studio should process it using your defined settings.