Ratel - Edit Rule

From Okapi Framework
Jump to navigation Jump to search

This dialog box allows you to edit the data of a rule.

Expression before the position — Enter the regular expression for the text just before the break point of this rule. The expression must be a valid regular expression.

Expression after the position — Enter the regular expression for the text just after the break point of this rule. The expression must be a valid regular expression.

Note that SRX 2.0 regular expressions are ICU regular expressions. See the "SRX and Java" page for more details.

Insert a segment break at this position — Select this option to define a segment break.

Do not break at this position — Select this option to prevent a segment break.

Example:

    before: [Ee][Tt][Cc]\.
     after: \s
is a break: no

    before: \.
     after: \s
is a break: yes

Note that most of the time you list non-break rules (exceptions) before break rules, so they are evaluated before the break rules.