From 1d15409d965fe6896d3d4bf970ce01750562d5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Tue, 25 Mar 2014 00:39:45 +0000 Subject: [PATCH 1/6] Update README Make the project installable for Ubuntu 13.10 --- README | 47 ----------------------------------------------- README.md | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 47 deletions(-) delete mode 100644 README create mode 100644 README.md diff --git a/README b/README deleted file mode 100644 index d44c70d..0000000 --- a/README +++ /dev/null @@ -1,47 +0,0 @@ -This is the Keyboard Layout Editor, a pygtk program that helps create or edit XKB keyboard layouts. - -This is the version that has been submitted to the GSoC xorg project; you can find the latest version -at http://github.com/simos/keyboardlayouteditor/tree/master - -The home page of the Keyboard Layout Editor is -http://code.google.com/p/keyboardlayouteditor/ - -You are strongly encouraged to use the version that is found at the above URL, -as it includes several bug fixes. - -The project was developed using Eclipse (Ganymede), with the Python (PyDev) and Antlr (AntlrIDE) add-ons. -If you also have SVN support in Eclipse, you can grab the latest source from within Eclipse. -There is also integration with Mylene so that you can get the list of issues/bugs/todo items -automatically. - -To run the application, you need the python binding packages for -* Cairo -* Pango -* GObject -* lxml - -and the Antlr 3.1.2 Runtime environment for Python. You grab that at -http://antlr.org/download/Python/ -Choose the appropriate *.egg file for the 3.1.2 version, then type - -sudo easy_install antlr_python_runtime-3.1.2-py2.5.egg - -('easy_install' is part of the 'python-setuptools' package; it is not installed by default). - -You need to process the ANTLR grammars in order to generate the necessary Python code. -All *.g files should be processed with ANTLR. -You can get the ANTLR 3.1.2 package from http://www.antlr.org/download/antlr-3.1.2.jar -Assuming you installed Antlr 3.1.2 in your CLASSPATH, you compile a grammar (*.g) with - java org.antlr.Tool *.g - -Here is a practical example with Antlr 3.1.2. - sudo apt-get install python-setuptools - wget http://antlr.org/download/Python/antlr_python_runtime-3.1.2-py2.5.egg - sudo easy_install antlr_python_runtime-3.1.2-py2.5.egg - wget http://antlr.org/download/antlr-3.1.2.jar - export CLASSPATH=$CLASSPATH:antlr-3.1.2.jar - java org.antlr.Tool *.g - -You finally run this program with - -./KeyboardLayoutEditor diff --git a/README.md b/README.md new file mode 100644 index 0000000..4e45358 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Keyboard Layout Editor + +PyGTK program that helps create or edit XKB keyboard layouts. + +To run the application, you need the python binding packages for +* Cairo +* Pango +* GObject +* lxml +* ANTLR 3.1.2 + +You need to process the ANTLR grammars in order to generate the necessary Python code. +All *.g files should be processed with ANTLR: + + sudo apt-get install python-setuptools + 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 + export CLASSPATH=$CLASSPATH:antlr-3.1.2.jar + java -classpath "antlr-3.1.2.jar" org.antlr.Tool *.g + +You finally run this program with: + + ./KeyboardLayoutEditor From 2e4a6edf06234169e375d7057aeb1a187047f0af Mon Sep 17 00:00:00 2001 From: gcb Date: Mon, 11 Jun 2012 20:35:12 -0700 Subject: [PATCH 2/6] fix typo. fix freeze. by @lks128 on issue/1 --- KeyboardLayoutEditor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KeyboardLayoutEditor b/KeyboardLayoutEditor index be2cbd6..332bcc1 100755 --- a/KeyboardLayoutEditor +++ b/KeyboardLayoutEditor @@ -948,7 +948,9 @@ Please do not put punctuation marks." return False def unicodechars_clicked_callback(self, button): - os.system(Common.gucharmapapp) + if os.fork() == 0 : + os.system(Common.gucharmappath) + exit(0) def check_resize(self, container): pass # TODO: Make sure the keyboard does not get too small. From 020c8c34f4e83fb374d0243a278546045dd208f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Tue, 25 Mar 2014 00:48:08 +0000 Subject: [PATCH 3/6] Indent exit(0) --- KeyboardLayoutEditor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeyboardLayoutEditor b/KeyboardLayoutEditor index 332bcc1..c82a974 100755 --- a/KeyboardLayoutEditor +++ b/KeyboardLayoutEditor @@ -950,7 +950,7 @@ Please do not put punctuation marks." def unicodechars_clicked_callback(self, button): if os.fork() == 0 : os.system(Common.gucharmappath) - exit(0) + exit(0) def check_resize(self, container): pass # TODO: Make sure the keyboard does not get too small. From 9be8df1e5532f33a5100f2ea168a3449b65886ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Tue, 25 Mar 2014 00:49:00 +0000 Subject: [PATCH 4/6] Set classpath via parameter That way it works both in bash and zsh --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 4e45358..eed79bd 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ All *.g files should be processed with ANTLR: sudo apt-get install python-setuptools 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 - export CLASSPATH=$CLASSPATH:antlr-3.1.2.jar java -classpath "antlr-3.1.2.jar" org.antlr.Tool *.g You finally run this program with: From e72c9c47ecbc8185ca61b9f1701631c6962d1da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Tue, 25 Mar 2014 01:02:00 +0000 Subject: [PATCH 5/6] Include screenshot --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index eed79bd..1921906 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ PyGTK program that helps create or edit XKB keyboard layouts. +![Screenshot](http://simos.info/blog/wp-content/uploads/2008/10/kle-intro.png) + To run the application, you need the python binding packages for * Cairo * Pango From 6cec66978f04d0b9569069441fdaffa8c3dca668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Tue, 25 Mar 2014 01:08:28 +0000 Subject: [PATCH 6/6] Give proper credits --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1921906..cdb89ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Keyboard Layout Editor -PyGTK program that helps create or edit XKB keyboard layouts. +PyGTK program that helps create or edit XKB keyboard layouts. Created by [@simos](https://github.com/simos) in Google Summer of Code 2008. [More information](http://simos.info/blog/archives/747/) ![Screenshot](http://simos.info/blog/wp-content/uploads/2008/10/kle-intro.png)