Date: Sun, 17 Jul 2011 23:12:23 +0200 From: Michael Cardell Widerkrantz <mc@hack.org> To: freebsd-x11@freebsd.org Subject: [1/2 SOLVED] xmodmap to XKB conversion and xkbprint rendering Message-ID: <86sjq4mx1k.fsf@brain.hack.org> References: <8662n2t1rk.fsf@brain.hack.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Cardell Widerkrantz <mc@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sjq4mx1k.fsf>