Page MenuHomePhabricator

Language converter: Get rid of positional conversion
Open, Needs TriagePublic

Description

Currently, the language converter language conversion were converted based on the position and only conversion rules above the text would be applied.

text: no rule applied

rule 1

text: only rule 1 applied

rule 2

text: rule 1 and rule 2 applied

We should make all conversion rules being collected before converting.

(collect all conversion rules before converting)

text: rule 1 and rule 2 applied

rule 1

text: rule 1 and rule 2 applied

rule 2

text: rule 1 and rule 2 applied

Related Objects

Event Timeline

Note currently conversion rules can be disabled via -{-|...}-. For compatibility of Parsoid, the sematic of this should be changed to a "blacklist" mechanism.

The "disable rule" is also a type of rule.

There would also be "override rules" considering the rule order of "add rules" + "remove rules".