m-ender / retina

A regex-based programming language.
MIT License
231 stars 10 forks source link

Overlapping matches for transliteration mode #46

Closed m-ender closed 6 years ago

m-ender commented 8 years ago

The & option from M mode could potentially also be interesting (and well-defined) for T mode. The main question is whether a character that is part of two matches should be transliterated twice or not. Maybe provide both options.

m-ender commented 6 years ago

Retina 1.0 can obtain overlapping matches for all stage types and transliteration has been defined appropriately so that this is the resulting behaviour. By default it transliterates each character once for each match it appears in, but there'll be an option to transliterate each character at most once.