I have recieved from a friend a custom-made keyboard layout, designed (as he puts it) to be a "programmer-friendly port of a combination of the two most common Swedish variants of the Dvorak keyboard layout". He is using Mac OSX, so he just zipped the contents of his ~/Library/KeyboardLayouts
and sent it to me. Of course, the files don't seem portable to Ubuntu without modification - at least I don't understand how...
Among the files, the file that seems to do the actual work is a file called Svorak.keyboard
, which in fact is an XML file defining the keyboard layout. The first section of the file is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/Keyboard.dtd">
<keyboard group="0" id="0" name="Svorak" maxout="2">
<layouts>
<layout first="0" last="0" modifiers="28" mapSet="a0"/>
</layouts>
<modifierMap id="28" defaultIndex="7">
<keyMapSelect mapIndex="0">
<modifier keys="command?"/>
<modifier keys="anyShift command caps?"/>
</keyMapSelect>
<keyMapSelect mapIndex="1">
<modifier keys="anyShift caps?"/>
</keyMapSelect>
...
</modifierMap>
<keyMapSet id="a0">
<keyMap index="0">
<key code="0" action="8"/>
<key code="1" action="o"/>
<key code="2" action="e"/>
...
Is there any (easy) way I can take this layout and re-map it into a standard Ubuntu format? I'd like to install it alongside my regular QWERTY layout, so I can switch between them using the applet in the status bar etc - in other words, I want to install it as any other installed keyboard layout in Ubuntu.
Is that possible? How?