Ratel - Edit Rule: Difference between revisions

From Okapi Framework
Jump to navigation Jump to search
(Created page with "{{Ratel Common Menu}} This dialog box allows you to edit the data of a rule. <cite>Expression before the position</cite> — Enter the [[Regular Expressions|regular expressi...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 19:19, 4 June 2016

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.