Advanced Tag Settings

Use the Advanced Tag Settings dialog box to specify some segmentation rules for tags and length restrictions for elements and attributes.

To display this dialog box, click Advanced on the Add Rule dialog box.

Box

Description

Advanced settings

Inside text the tag acts as a word end

This option changes the behavior of cursor placement in the Editor window.

When this option is selected, the tag is treated in the same way as text in the editor when you are navigating by word. For example, when you press Ctrl+Left Arrow, the editor moves the cursor to the beginning of the word. When this option is selected, when you press Ctrl+Left Arrow, the editor will also move the cursor to the beginning of the tag. When you press Ctrl+Right Arrow, the editor moves the cursor to the end of the tag or word.

Text lines can be wrapped after the tag

When this option is selected, it indicates that a single line can appear wrapped after the tag. This occurs where a line break after this tag is for formatting purposes, and does not indicate the end of a segment.

For example:

The quick brown fox <br>

jumps over the lazy dog.

Tags represent formatting only and can be hidden in the editor

When this option is selected, text is formatted correctly but standard formatting tags (for example, bold, italic, and font type) are not displayed.

 

Selecting this option does not mean that the tag is always hidden; the user can change the editor settings to force the tag to be displayed.

Tag represents the text

Only relevant for placeholder tags.

A tag can have a text equivalent. For example the entity tag &quot; has the text equivalent ".

Segmentation hint

Choose one of the following options:

Include

Select this if you want the tag to be displayed in the editor, even if it has no associated text. You would rarely select this option.

Include with text

Select this if you want the tag to be displayed in the text when it has associated text.

Example: the tag specifies a footnote marker. Where this is the case, the translator needs the ability to attach the marker to another word in the same sentence, so the tag should be included as part of the text.

May exclude and Undefined

These two are effectively the same. The editor determines whether the tag is part of the text.

Length restrictions

Specify a positive integer value or an XPath to the relative position of the length restriction value.

These options specify limits on the minimum and maximum amount of Unicode characters that can be entered in the translation for the selected element or attribute. You can enter an exact value, for example 4096 or a relative XPath address @maxlength. The length restrictions are displayed in red in the document structure column in the Editor window in the Editor view. Additional details are also displayed in the tooltip.  If the Check if target segments are within file specific limits is enabled in the QA Checker and the length restrictions are broken, errors are reported when verification is performed.

Length restrictions can be set for elements and translatable attributes. For example, you could set a restriction on the length of a <title> element in a document or an attribute such as an image description in a document.

 

Click here for a more detailed example.

 

NOTE

Length restrictions only apply to structure tags and not inline tags.

 

Minimum length

Enter the shortest length that a user can enter as the element's translation. SDL recommends entering a relative XPath address, for example if minlength is the elements's attribute, enter @minlength. However, if the minimum length is not kept in the XML file, then enter a constant, such as 40.

Maximum length

Enter the longest length that a user can enter as the element's translation. SDL recommends entering a relative XPath address, for example if maxlength is the elements's attribute, enter @maxlength. However, if the maximum length is not kept in the XML file, then enter a constant, such as 4096.