[ILUG] De Euro

Colm Buckley colm at tuatha.org
Thu Jan 3 11:21:36 GMT 2002


On Thu 03 Jan 2002 11:01, John P. Looney wrote:

> Anyway. You need to use an iso-8859-15 font, in your application. It's
> the one with euro support.

A lot of TrueType fonts are coming in 8859-15 versions these days;
google around for them.  For xterms and the like, I generally use
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15

> xmodmap -e 'keycode 26 = e E currency'
> xmodmap -e 'keycode 54 = c C cent'

Eurgh.  Do it right, set up an Xkb symbols map for it - here's my
/etc/X11/xkb/symbols/ie file (on non-Debian boxes; it might have to be
put somewhere under /usr/X11R6 - look for a "xkb/symbols" directory.)

-----8<----------8<----------8<----------8<----------8<----------8<-----
partial default alphanumeric_keys 
xkb_symbols "basic" {

    name[Group1]= "Ireland";

    key <TLDE> {	[           grave,         notsign      ],	
			[	      bar,             bar	]	};
    key <LSGT> {	[       backslash,	       bar	],	
			[	      bar,	 brokenbar	]	};
    key <AE02> {	[               2,        quotedbl	]	};
    key <AE03> {	[               3,        sterling	]	};
    key <AE04> {	[               4,          dollar	],
    			[	 EuroSign,	      cent	]	};
    key <AC11> {	[      apostrophe,              at	]	};
    key <AD03> {	[		e,		 E	],
    			[	 EuroSign,	      cent	]	};
    key <BKSL> {	[      numbersign,      asciitilde	]	};

    // End alphanumeric section
    
    // begin modifier mappings
    
    modifier_map Shift  { Shift_L };
    modifier_map Lock   { Caps_Lock };
    modifier_map Control{ Control_L };
    modifier_map Mod3   { Mode_switch };
};
-----8<----------8<----------8<----------8<----------8<----------8<-----

Then change the "XkbLayout" option in /etc/X11/XF86Config-4 to "ie"
(or run "setxkbmap ie" from an xterm) and restart X.  Note that
complex UI environments like KDE might reset this; it's usually
possible to tell them not to, or to use the ie keymap.  You might need
to add "ie" to the rules/xfree86.lst file in the xkb directory.

This puts the euro symbol € on AltGr-4 and AltGr-e, and the cent
symbol ¢ on Shift-AltGr-4 and Shift-AltGr-e (and AltGr-c; that's
actually in the "base" (U.S.) keymap).

Hope this helps,

             Colm

-- 
Colm Buckley : Systems Architect @ NewWorld Commerce
Business: +353 1 4334334  / colm at nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
I'm out of my mind, but feel free to leave a message.




More information about the ILUG mailing list