Adding advanced tag settings
When you create or edit an XML Parser rule, you can specify advanced segmentation rules for inline tags. You can also set length restrictions for elements and attributes.
About this task
To open the Advanced Tag Settings dialog box:
Procedure
- On the Parser page of your XML file type, click Add or Edit.
- Click the Advanced button on the Add Rule or Edit Rule dialog box.
Settings for Inline tags
About this task
| Inside text the tag acts as a word end | Select this to treat the tag as text when navigating through a document in the Editor view. For example, when you press Ctrl+Left Arrow, the editor moves the cursor to the beginning of the tag. |
| Text lines can be wrapped after the tag | Use this option when a line break after the tag is for formatting purposes, and does not indicate the end of a segment. For example, the following single sentence is broken by a The owl set out to sea
|
| Tags represent formatting only and can be hidden in the editor | In the editor, text is formatted correctly but formatting tags are not displayed. The translator can change the editor settings to display the tags |
| Tag represents the text | Only relevant for standalone (placeholder) tags. A tag can have a text equivalent. For example, the entity tag |
| Segmentation Hint | This specifies if the tags are included in the segment for translation or not.
|
Settings for Structure tags
The Length Restrictions options specify limits on the number of Unicode characters that can be used when translating an element or attribute.
About this task
The length restrictions are displayed in the Editor, in the Document Structure column and in a tooltip. If you enable the Check if target segments are within file specific limits option in the QA Checker, SDL Trados Studio checks these length restrictions.
You can set length restrictions for elements and for 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.
Length restrictions
About this task
| Minimum length | 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, you can use a constant, such as 40. |
| Maximum length | 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, you can enter a constant, such as 4096. |