[BRLTTY] Prompt matching.
Aura Kelloniemi
kaura.dev at sange.fi
Tue Oct 9 04:22:28 EDT 2018
Dave Mielke <Dave at mielke.cc> writes:
> Perhaps I should go ahead and implement it with the comma restriction for now
> just so that it can be used. We can always solve that one later.
Agreed.
> >There will be a problem though if the regex engine thinks that input is ASCII,
> >but in reality is UTF-8, because then it mismatches everything that is
> >supposed to match one character (e.g. "." (a dot)).
> Preprocessing can handle this. All we need to do is search the string for
> multi-byte UTF-8 characters, and enclose each within a hidden subgroup, e.g.
> (?:character).
This seems to work even inside square brackets, great.
But it probably does not help if the pattern contains a dot to match a single
character, which happens to be a non-ASCII character in the input. E.g. a
pattern ".> " will not match "λ> ". Am Iright?
--
Aura
More information about the BRLTTY
mailing list