|
Unicode Easy Keyboard Layout for XKB
This is a keyboard layout for XKB, the keyboard subsystem used by the X.org X11 server, a popular X server for Linux and *BSD systems. While it is intended as a port of the Unicode Easy Keyboard Layout for Windows XP, there are some differences. Please refer to the table below.
Differences between Windows XP version and XKB version
| Unicode Character Name | Code Point | Glyph | WinXP Keys | XKB Keys |
| Pound Sign | U+00a3 | £ | AltGr+Shift+L | AltGr+Shift+P |
| Section Sign | U+00a7 | § | AltGr+Shift+S | AltGr+S, Shift+S |
| Plus-Minus Sign | U+00b1 | ± | AltGr+_, + | AltGr+-, + |
| Pilcrow Sign | U+00b6 | ¶ | AltGr+Shift+P | AltGr+P |
| Vulgar Fraction One Quarter | U+00bc | ¼ | AltGr+2 | AltGr+4, 1 |
| Vulgar Fraction One Half | U+00bd | ½ | AltGr+4 | AltGr+2, 1 |
| Vulgar Fraction Three Quarters | U+00be | ¾ | AltGr+6 | AltGr+4, 3 |
| En Dash | U+2013 | – | AltGr+/, Space | AltGr+-, Space |
| Em Dash | U+2014 | — | AltGr+/, - | AltGr+-, - |
| Euro Sign | U+20ac | € | AltGr+Shift+4 | AltGr+Shift+E |
| Vulgar Fraction One Third | U+2153 | ⅓ | AltGr+Shift+3, 1 | AltGr+3, 1 |
| Vulgar Fraction Two Thirds | U+2154 | ⅔ | AltGr+Shift+3, 2 | AltGr+3, 2 |
| Vulgar Fraction One Eighth | U+215b | ⅛ | AltGr+1 | AltGr+8, 1 |
| Vulgar Fraction Three Eighths | U+215c | ⅜ | AltGr+3 | AltGr+8, 3 |
| Vulgar Fraction Five Eighths | U+215d | ⅝ | AltGr+5 | AltGr+8, 5 |
| Vulgar Fraction Seven Eighths | U+215e | ⅞ | AltGr+7 | AltGr+8, 7 |
| Minus Sign | U+2212 | − | AltGr+_, - | AltGr+NumPad- |
| Identical To | U+2261 | ≡ | AltGr+_, = | AltGr+-, = |
| Less-Than or Equal To | U+2264 | ≤ | AltGr+_, < | AltGr+-, < |
| Greater-Than or Equal To | U+2265 | ≥ | AltGr+_, > | AltGr+-, > |
The XKB version also includes the following additional characters that are not included in the WinXP version:
Please see Unicode Easy Keyboard Layout for the rest of the available characters.
| Unicode Character Name | Code Point | Glyph | Key Combination |
| Fraction Slash | U+2044 | ⁄ | AltGr+/, / |
| Superscript Digits | U+2070,00b9,00b2–3,2074–9 | ⁰¹²³⁴⁵⁶⁷⁸⁹ | AltGr+^, digit |
| Subscript Plus Sign | U+207a | ⁺ | AltGr+^, + |
| Subscript Minus | U+207b | ⁻ | AltGr+^, - |
| Subscript Equals Sign | U+207c | ⁼ | AltGr+^, = |
| Subscript Left Parenthesis | U+207d | ⁽ | AltGr+^, ( |
| Subscript Right Parenthesis | U+207e | ⁾ | AltGr+^, ) |
| Subscript Digits | U+2080–9 | ₀₁₂₃₄₅₆₇₈₉ | AltGr+_, digit |
| Subscript Plus Sign | U+208a | ₊ | AltGr+_, + |
| Subscript Minus | U+208b | ₋ | AltGr+_, - |
| Subscript Equals Sign | U+208c | ₌ | AltGr+_, = |
| Subscript Left Parenthesis | U+208d | ₍ | AltGr+_, ( |
| Subscript Right Parenthesis | U+208e | ₎ | AltGr+_, ) |
| French Franc Sign | U+20a3 | ₣ | AltGr+Shift+F |
| Lira Sign | U+20a4 | ₤ | AltGr+Shift+L |
| Service Mark | U+2120 | ℠ | AltGr+Shift+S |
| Vulgar Fifths | U+2155–8 | ⅕⅖⅗⅘ | AltGr+5, numerator |
| Vulgar Sixths | U+2159–a | ⅙⅚ | AltGr+6, numerator |
Installation: The tarball contains usr/share/X11/xkb/symbols/unicodez and etc/skel/.XCompose. It should be extracted in the root of your file system by the root user (sudo tar -xjf unicodez.tar.bz2 -C /). Then the /etc/skel/.XCompose file should be copied to your home directory (cp /etc/skel/.XCompose ~/). Lastly, the new layout must be activated (setxkbmap us+unicodez). The layout will only fully take effect for applications started after the switch.
Automatically activating the layout: setxkbmap affects only the current X session, so if you always want to use Unicode Easy, you'll want to run the setxkbmap command automatically when your X session starts. This can be done a few different ways; consult the documentation for your desktop environment.
Activating the layout system-wide using HAL: Newer versions of the X.org X11 server support hot-plugging of input devices using HAL. You can configure HAL to tell XKB to use Unicode Easy for all keyboards attached to your system. Create a file /etc/hal/fdi/policy/unicodez.fdi with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<append key="input.xkb.layout" type="string">+unicodez</append>
</match>
</device>
</deviceinfo>
Selecting the layout in the KDE 4 Keyboard Layout module: It is possible to select the Unicode Easy Keyboard Layout in the KDE 4 Keyboard Layout System Settings Module (System Settings > Regional & Language > Keyboard Layout), though this is not necessary if you configured HAL as above. To make the layout available, you need to add the following element to /usr/share/X11/xkb/rules/evdev.xml as a child of xkbConfigRegistry/layoutList/layout[configItem/name="us"]/variantList:
<variant>
<configItem>
<name>unicodez</name>
<description>Unicode Easy</description>
</configItem>
</variant>
<variant>
<configItem>
<name>unicodez-dvorak</name>
<description>Unicode Easy (Dvorak)</description>
</configItem>
</variant>
And add the following lines to /usr/share/X11/xkb/symbols/us:
partial alphanumeric_keys keypad_keys
xkb_symbols "unicodez" {
include "us(basic)"
include "unicodez(us)"
};
partial alphanumeric_keys keypad_keys
xkb_symbols "unicodez-dvorak" {
include "us(dvorak)"
include "unicodez(dvorak)"
};
Then in the KDE Keyboard Layout panel, select "Enable keyboard layouts" and choose "Evdev-managed keyboard" as your "Keyboard model". Then, if there are no layouts listed in "Active layouts", select "USA" from the list of "Available layouts" and click the right arrow button to add it. Then select the "USA" layout in the list of "Active layouts" and choose "Unicode Easy" from the drop-down list labeled "Layout variant". Finally click "Apply" to save your changes. Now KDE 4 will automatically switch your X session to the Unicode Easy Keyboard Layout whenever you log in. Sweet!
Getting GTK+ apps to use ~/.XCompose: For some unknown reason, GTK+ ignores X11's compose support and implements its own (unconfigurable) compose functionality. Thankfully, you can force GTK+ to use the standard X11 compose support by exporting GTK_IM_MODULE=xim to your X session's environment.
Unicode Easy Keyboard Layout for XKB (2.55 KiB)
MD5 Hash: 4558cd257c9020aa5683783789602f81
This site is hosted by DreamHost Web Hosting.
|