|
Rule Type and Rule
|
The specification
of the nodes to which the rule applies, one of the most
important properties of a parser rule. The software uses
XPath to
specify the applicable nodes. The software uses this specification
to identify the rule, and so does not allow you to have
two rules with the same XPath location.
|
|
Tag Type
|
A parser rule
can force an element to be presented to the translator
as a tag. A tag can also have translatable text. A tag
can be specified as any of the following:
|
|
Whitespace
|
For XML file types,
you can choose whether the file filter software preserves
whitespace or normalizes it. Preservation means that
whitespace is not modified. Normalization means replacing
whitespace with a single space. Normalization is done when the file
is converted to sdlxliff. You can set the whitespace
setting for a file type as a whole in the Whitespace page. You can also set the whitespace setting in a parser
rule. Where a parser rule applies, it overrides the setting from the
Whitespace page).
|
|
Inside text the tag acts as a word end
|
If selected, then the translation editor treats
the tag as text for the purposes of navigation. 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
|
|
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 " has the text equivalent " (quotes).
|
|
Segmentation Hint
|
|
|
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.
|