Python C GAP
Latest commit f4fc5d2 Oct 24, 2014 Simos Xenitellis Updated instructions for Ubuntu 14.04.1
Failed to load latest commit information.
.settings Reordered files, merged to singly directory for git migration. Jan 20, 2009
utils Reordered files, merged to singly directory for git migration. Jan 20, 2009
.project Reordered files, merged to singly directory for git migration. Jan 20, 2009
.pydevproject Reordered files, merged to singly directory for git migration. Jan 20, 2009
COPYING Reordered files, merged to singly directory for git migration. Jan 20, 2009
Common.py Fixed #16: os.spawnl() may fail, using os.system() Jun 20, 2010
DeadKeysDict.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
Disconnect. Reordered files, merged to singly directory for git migration. Jan 20, 2009
DumbKey.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
Enum.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
GenericLayout.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
Key.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeyDict.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeyValue.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
Keyboard.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeyboardLayoutEditor Indent exit(0) Mar 25, 2014
Keycodes.g Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeycodesReader.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeycodesWalker.g Reordered files, merged to singly directory for git migration. Jan 20, 2009
Keysyms.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeysymsUni.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
KeysymsUniByValue.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
Levels.png Reordered files, merged to singly directory for git migration. Jan 20, 2009
Levels.svg Reordered files, merged to singly directory for git migration. Jan 20, 2009
ParseXKB.py Added informative message when Antlr generated files are missing Feb 17, 2009
ParseXML.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
README.md Updated instructions for Ubuntu 14.04.1 Oct 24, 2014
SelectVariant.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
TODO Added TODO file Jan 20, 2009
XKBGrammar.g Reordered files, merged to singly directory for git migration. Jan 20, 2009
XKBGrammarWalker.g Reordered files, merged to singly directory for git migration. Jan 20, 2009
aliases Reordered files, merged to singly directory for git migration. Jan 20, 2009
evdev Reordered files, merged to singly directory for git migration. Jan 20, 2009
kle-icon.svg Reordered files, merged to singly directory for git migration. Jan 20, 2009
kle-icon2.svg Reordered files, merged to singly directory for git migration. Jan 20, 2009
kle-icon3.svg Reordered files, merged to singly directory for git migration. Jan 20, 2009
kle-icon4.svg Reordered files, merged to singly directory for git migration. Jan 20, 2009
parse_xkb_to_xml.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
parse_xml_to_xkb.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
print_tree.py Reordered files, merged to singly directory for git migration. Jan 20, 2009
xfree86 Reordered files, merged to singly directory for git migration. Jan 20, 2009

README.md

Keyboard Layout Editor

PyGTK program that helps create or edit XKB keyboard layouts. Created by @simos in Google Summer of Code 2008. More information

Screenshot

Requirements

To run the application, you need the python UI binding packages. For Ubuntu 14.04, the packages below are already pre-installed.

  • Cairo
  • Pango
  • GObject
  • lxml

Installation

Clone the repository with

`$ git clone https://github.com/simos/keyboardlayouteditor.git`

You need to process the ANTLR grammars in order to generate the necessary Python code. This is a process that you do one time only (unless you make changes in the grammar files).

All *.g files should be processed with ANTLR:

    $ cd keyboardlayouteditor/
    $ sudo apt-get install python-pip
    $ sudo pip install http://www.antlr3.org/download/Python/antlr_python_runtime-3.1.2.tar.gz
    $ wget http://www.antlr3.org/download/antlr-3.1.2.jar
    $ java -classpath antlr-3.1.2.jar org.antlr.Tool *.g

The first command installs the Python 2 package manager. The second command installs the Python 2 Antlr 3.1.2 runtime. The third command downloads the antlr 3.1.2 JAR file (code of Antlr) in the current directory. The antlr3 package in Ubuntu is for Antlr 3.2, but we cannot use it because it is a bit complicated to get a 3.2 python runtime. The fourth command runs the Antlr code on the .g grammar files that exist in the KeyboardLayoutEditor directory. These are four files, and produces the processed grammar. Then, you can start the KeyboardLayoutEditor program.

Running

You finally run this program with:

`$ ./KeyboardLayoutEditor`