On Sun, Dec 5, 2010 at 2:53 AM, Random832 <random...@fastmail.us> wrote:

> I'm in the middle of making a patch to support digraphs for non-latin1
> characters; i've got it working for UTF-8, but... I just cannot figure out
> how to get from point A to point B in the non-utf8 case.
>
> For example, I have a digraph for U+0171 LATIN SMALL LETTER U WITH DOUBLE
> ACUTE [it's u" as in vim]. I can get x = 0x0171 all right. Now if, say, the
> current encoding is iso8859-2, how do I map from 0x0171 to 0xFB?
>
> Should I give up and just make per-encoding digraph tables?
>

There's a digraph-related patch that you may find of use:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387397

A per-encoding digraph table would be unfortunate. I think it'd be better to
convert the digraph table values for the correct encoding at runtime.

Cheers.
Sadrul

Reply via email to