[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display hide a char ?



Hey,

Bram Moolenaar a *crit :

>
> Can't you replace the "AB" in the text with "C"?  Then the displaying
> can remain the same, the only trick is to handle the case where a "B" is
> entered after an "A".  And perhaps doing the reverse when using a
> backspace.

You can't. This is different from character composing where ê (e circumflex) is
different from e for example. It's only a viewing problem and must remain so
because moving the problem at the data layer would make it zillions times more
complex. Conceptually the letters are still different and seperate, let's say
it's a problem related to 'drawing' these two letters when they follow each
other only, whereas the random character access must not change, string
comparisons must not change, etc...

Ciao