[1/2 SOLVED] xmodmap to XKB conversion and xkbprint rendering

Michael Cardell Widerkrantz mc at hack.org
Sun Jul 17 21:12:39 UTC 2011


Michael Cardell Widerkrantz <mc at hack.org>, 2011-07-16 22:21 (+0200):

> Another little snag is that in the keyboard image xkbprint generates the
> glyphs for the special characters I've added aren't rendered. For
> instance, it prints "Aring" "Adiaresis" instead of a proper "Å" and "Ä".
> I've seen other keyboard images that seem to be generated by xkbprint
> that includes more than ASCII. How do they do that?

I had a look in the .xkm files. They include a X font definition:

  -*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1

with ISO 8859-1 aka Latin 1. I have a UTF-8 locale!

I also checked in the generated Postscript that xkbprint spits out, and
sure enough, there are definitions to recode Latin 1 to Postscript's
internal character set.

So, as long as the characters I define on my keyboard are defined in
Latin 1, I can work around the problem by providing a Latin 1 locale to
xkbprint with:

  -lc en_US.ISO8859-1

I still have the problem trying to get 0x1d from pressing Control-å,
though.

-- 
http://hack.org/mc/
Use plain text e-mail, please. OpenPGP welcome, 0xE4C92FA5.



More information about the freebsd-x11 mailing list