Skip to main content

XTM Cloud 13.8

Editing an existing segmentation rule configuration
Procedure. To edit an existing segmentation rule configuration:
  1. In Configuration > Filter templates, select one of the available tabs:

    • Project level

    • Customer level

    • Global level

  2. In the filter template table, find the required template.

  3. Select the angle-down-solid.png icons next to the selected template and next to Segmentation to navigate to the lowest level of the tree.

  4. Hover over the configuration applicable to the required file type.

  5. On the right-hand side of the table, select the pen-solid.png Edit configuration icon.

    Result:

    The Edit [file type] – Segmentation popup is displayed.

  6. In the Edit [file type] – Segmentation popup, adjust the segmentation rules to suit your needs:

    1. Select the plus-solid_black.svg Add language button to specify the source language for which you would like to configure the segmentation rules.

      Note

      You can add multiple source languages to the same configuration type. To do so, use the plus-solid_black.svg Add language button.

      Result:

      The table with segmentation rules for the selected source language will be displayed. In this table, for each segmentation rule, you will see information about:

      • Priority

      • Regex before break

      • Regex after break

      • the Break sentence parameter setting:

        • No – there will be no break in the source text in XTM Workbench in the places indicated by the regex expressions.

        • Yes – XTM Workbench will break the source text into separate segments in the place indicated by the regex expressions.

    2. In the segmentation rules table, you can:

      • select the required segmentation rule. To do so, select the checkbox to the left of the rule.

      • deselect the required segmentation rule. To do so, clear the checkbox to the left of the rule.

      • change the the segmentation rule priority. To do so, hover over the selected segmentation rule, until you see the grip-dots-vertical-solid_FFB_regex_priority.svg icon, to the left of the Priority column. Select the grip-dots-vertical-solid_FFB_regex_priority.svg icon with the left mouse button and drag and drop the relevant rule.

      • edit the segmentation rule. To do so, hover over the required table row and select the pen-solid.png icon on the right.

      • delete the segmentation rule. To do so, hover over the required table row and select the trash-solid.svg icon on the right.

      • restore the default source language segmentation setting. To do so, in the top-left corner of the table, select the clock-rotate-left-restore.svg Restore default button.

      • delete all segmentation rules for the selected source language. To do so, in the top-left corner of the table, select the trash-solid.svg Delete all button.

    3. To add a new segmentation rule:

      1. In the Regular expression pattern before break text field, enter the relevant regular expression pattern (for example (^|\p{Zs}|\p{Ps}|\p{Po})\p{Nd}\..

      2. In the Regular expression pattern after break text field, add the relevant regular expression pattern (for example \p{Zs}).

      3. Select the relevant Break sentence toggle switch setting:

        • off – there will be no break in the source text in XTM Workbench in the places indicated by the regex expressions.

        • on – XTM Workbench will break the source text into separate segments at place indicated by the regex expressions.

      4. Select Add.

      Result:

      Your segmentation rule is displayed in the regular expressions table. It has the highest priority and is automatically selected for your template.

  7. Select:

    • Save to save your changes to the segmentation rules configuration.

    • Cancel to cancel your changes to the segmentation rules configuration.

Result:

A Successfully updated configuration message is displayed in the bottom right-hand corner of the screen.