- milestone: 422834 --> v3.1
The order is defined in the manual as: Rules with
special prefix precede those that begin with a
character class. Else rules are applied in order of
their definition. But that is not good for use with
modules.
E.g., in tex.xdy we discard all TeX macros. If we want
to sort a macro specifically, we need to define that
merge-rule before the discard rule triggers. Since
document specific modules come later, this will be
problematic for texindy.
That might also mean that one cannot use regexp
merge-rules for TeX macros with texindy.
We need a better rule selection heuristic. E.g.,
determine the number of character classes (or meta
characters?!) and use those with fewer meta chars
first. Use longer rules first. This works quite well
with lexical analysis, so it might be good here, too.
Until this is fixed, the issue must be check and a
potential problem should at least be documented in
texindy's man page.