Lars Gullik Bjřnnes wrote:
>
> Roman Maurer <[EMAIL PROTECTED]> writes:
>
> | Roman Maurer wrote:
> | >
> | > I'd like to extend LyX with support for Latin-2 keyboards, I just
> | > don't know if I'll know enough to do this. Could someone please
> | > tell me where to start (I downloaded the sources and I know some C++)?
>
> AFAIK all this is font problems.
It's not exactly the font problem - it's the fact that keycodes
from Latin-2 X keyboard don't really match ISO codes for Latin-2
characters. In Latin-1 there's no such problem.
What we would need is a mapping function that would translate
X keycodes to ISO Latin 2 character codes, like this one:
keycode ISO Latin 2 letter ISO Latin 2 code
488 ccaron 232
441 scaron 185
446 zcaron 190
...
The value from the "keycode" column is fetched via getsym() and
the "ISO Latin 2 code" value should be returned by kb_sequence::getiso().
For Latin-1, this table will be like that:
keycode ISO Latin 2 letter ISO Latin 2 code
232 egrave 232
185 onesuperior 185
190 threequarters 190
...
STL's std::map could do the trick for all ISO encodings.
--
Regards,
Roman