Documentation Center

HTML 5 settings

The HTML 5 file type has the following extensions: *.htm, *.html, *.xhtml, *.jsp, *.asp, *.aspx, *.ascx, *.inc, *.php, *.hhk, *.hhc.

Detection

SettingInstruction
DOCTYPE declarationType a declaration.
Root element namesType an element name and select plus sign.
Namespace declaration (xmlns) URIsType a namespace declaration and select plus sign.

Parser

OperationsInstruction
Add a ruleParsing rules define how elements are handled. To add a rule:
  1. Select Add New Rule.
  2. UnderRule field, type the rule name and condition.
  3. UnderAttributes, type an attribute name, select the Translate check box to make it translatable, and select plus sign.
  4. Under Properties, select Basic and edit the following:
    • Translate: Yes (default), No, Inherit.
    • Tag Type: Structure (default), Inline.
    • Whitespace: Inherit from Parent (default), Always preserve, Always normalize, Normalize unless xml:space='preserve'
    • Segmentation Hint - This option is available only if you work with inline tags and only if you specified the extraction rule (segmentation hint) in the Embedded Content section of your file type. Select one of the available options: May Exclude (default), Include, Include With Text, Exclude. Check this topic to learn what each segmentation hint does.
  5. This option is available only if you work with inline tags. Under Formatting, specify: the size, the color, the position (Inherit, Normal, Superscript, Subscript), and the style (Bold, Italic, Strikethrough, Underline).
  6. This option is available only if you work with structure tags. Under Structure Information:
    1. Select Add new.
    2. Under Properties, select one of the available structure elements from the Name list, and then specify a code, an identifier, a description, color.
    3. Under Formatting, specify: the size, the color, the position (Inherit, Normal, Superscript, Subscript), and the style (Bold, Italic, Strikethrough, Underline).
  7. Select Done.

Writer settings

SettingInstruction
Unicode UTF-8 byte order mark (BOM)From the list, choose an option to determine how BOM is handled during translation: Preserve; don't add if not originally present, Preserve: add if not originally present, Remove if present.
Values of xml:lang and lang attributeFrom the list, choose an option to determine how 'lang' is handled during translation: Change matching source language to target language, Always change to target language, Do not change.
<META charset> tagsFrom the list choose a value: Change charset value; Add <META> tag if not present; Do not change charset value. The META charset value specifies the character encoding for the HTML document.

Whitespace settings

SettingInstruction
Whitespace in contentDecide how whitespace is treated during translation: Normalize unless xml:space='preserve' ; Always preserve; Always normalize.
Normalize whitespace in tagsSelect the check box to ensure that whitespace is normalized in tags.

Entity settings

SettingInstruction
Enable entity conversionEntity settings specify whether special characters are converted to their corresponding HTML entity. Select or clear the check box depending on whether you want to have entity conversion enabled or not.
Convert numeric entity references to inline placeholder tagsSelect or clear the check box depending on whether you want to have the numeric entity conversion enabled or not.
Add an entitySelect plus sign, add the character, and decide whether the available check boxes are enabled or not: READ AS CHARACTER, WRITE AS ENTITY. When you add a new entity, the WRITE AS ENTITY setting is disabled automatically. The WRITE AS ENTITY setting only works for the default entities, and is disabled for the ones you add, which means that for the default ones characters will always be converted to entities.
  • READ AS CHARACTER - This setting specifies which entities are converted to their respective characters during parsing.
  • WRITE AS ENTITY - This setting specifies which characters are converted to their respective entities during writing.
Edit an entityAdjust the given values.

Embedded Content

SettingInstruction
Select how embedded content is processed. You can choose one option or both: Server side scripts, Other elements identified by.
Server side scriptsIf you enable this option, specify which entity interprets the script: Embedded Content Plain Text v 1.0.0.0; Embedded Content SpreadsheetML v.1; Html Embedded Content 5 2.0.0.0; Html Embedded Content 4 2.0.0.0.
Other elements identified byIf you enable this option, choose one option: Parser rules or Structure information.
Parser rulesTo add a parser rule:
  1. From the PARSER RULE and EMBEDDED PROCESSOR ID lists, select one of the available values.
  2. Select plus sign.
Structure informationFrom the Document Structure Information list, select one of the available values and then select plus sign.

Preview settings

SettingInstruction
HTML previewHTML pages may contain text or a combination of text and dependencies (CSS, JavaScript, and images). If your HTML page includes dependencies, you must bundle dependencies in a package and upload the package in the Preview Settings section of the HTML file type configuration, in order to preview your translated HTML page correctly in Trados Online Editor. Expand the HTML preview menu, and:
  1. Next to Preview package (.zip) , select Browse and upload a package containing the content and dependencies for your HTML page. The package should consist of several folders emulating a structure.
  2. Next to Selected output folder inside the package for the generated HTML file, select Browse. A pane emulating your folder structure opens. Select the appropriate location where the translated HTML will be saved once generated.

When previewing your HTML in Trados Online Editor you can select the preview type you configured here.

Add preview typeSelect Add preview type if you want to have several preview types configured with different preview packages:
  1. Edit the name and description of your preview type, if necessary.
  2. Next to Preview package (.zip) , select Browse and upload a package containing the content and dependencies for your HTML page. The package should consist of several folders emulating a structure.
  3. Next to Selected output folder inside the package for the generated HTML file, select Browse. A pane emulating your folder structure opens. Select the appropriate location where the translated HTML will be saved once generated.