The most practical question

23 views
Skip to first unread message

Slavik Ivanov

unread,
Jun 15, 2009, 11:30:58 AM6/15/09
to Keyboard Layout Editor Discuss
Thank you for the great work you do.

How can I run the Keyboard Layout Editor under Ubuntu (UNR)?
Promise to translate your instruction into Russian and to communicate
it to those interested in layout changes.

Thank you,
Viatcheslav Ivanov

simos

unread,
Jun 15, 2009, 11:40:29 AM6/15/09
to Keyboard Layout Editor Discuss
Hi Slavik,

I recommend to clone the repository from
http://github.com/simos/keyboardlayouteditor/

If you are unfamiliar with 'git',
1. Make sure you have the 'git-core' package installed.
2. On the command line run
git://github.com/simos/keyboardlayouteditor.git

and the package files will reside in the keyboardlayouteditor/
subdirectory.

Then, you need to add some extra packages in your distribution,
described in the README
at http://github.com/simos/keyboardlayouteditor/
I use Ubuntu as well, so the instructions should work for you.
If there is any problem, please tell me to help you.

Cheers,
Simos

Slavik Ivanov

unread,
Jun 17, 2009, 8:52:07 PM6/17/09
to Keyboard Layout Editor Discuss
Hi, Simos.

> I recommend to clone the repository fromhttp://github.com/simos/keyboardlayouteditor/
>
> If you are unfamiliar with 'git',
> 1. Make sure you have the 'git-core' package installed.

It is here.

> 2. On the command line run
> git://github.com/simos/keyboardlayouteditor.git

And that gives me the "No such file or directory" error. I've checked
the address twice.

Do you have any suggestions?

V. Ivanov

Simos Xenitellis

unread,
Jun 18, 2009, 1:31:47 AM6/18/09
to keyboardlayout...@googlegroups.com
Ok, my copy-paste foo failed here.

You need to type

git clone git://github.com/simos/keyboardlayouteditor.git

and you get a copy of the repository locally. Then, you continue.

Simos

V. Ivanov

unread,
Jun 18, 2009, 11:51:04 AM6/18/09
to keyboardlayout...@googlegroups.com

You need to type

git clone git://github.com/simos/keyboardlayouteditor.git

and you get a copy of the repository locally. Then, you continue.

Oh well, no it worked.
I have ANTLR for Python from the Ubuntu repository: python-antlr 2.7.7.
What should I do further?

Sorry for possibly not understanding simple things,
Viatcheslav

--
Esperu cxiam!
http://amikeco.ru

Simos Xenitellis

unread,
Jun 18, 2009, 4:01:32 PM6/18/09
to keyboardlayout...@googlegroups.com
On Thu, Jun 18, 2009 at 4:51 PM, V. Ivanov<ami...@gmail.com> wrote:
>>
>> You need to type
>>
>> git clone git://github.com/simos/keyboardlayouteditor.git
>>
>> and you get a copy of the repository locally. Then, you continue.
>
> Oh well, no it worked.
> I have ANTLR for Python from the Ubuntu repository: python-antlr 2.7.7.
> What should I do further?

I used Antlr 3.x for the project, so if you try with Antl 2.x, your
mileage may vary.
It's should be straightforward how to get Antlr 3.x for your system;

1. You need to download the Antlr 3.x jar file, so that you can use to
compile (once only!) the grammar files.
2. You need to install the corresponding Python Antlr 3.x package so
that the generated grammar files can be used by the
keyboardlayouteditor.

I copy the instructions from the README file (git repository),

--------------
To run the application, you need the python binding packages for
* Cairo
* Pango
* GObject
* lxml

and the Antlr 3.1 Runtime environment for Python. You grab that at
http://antlr.org/download/Python/
Choose the appropriate *.egg file for the 3.1 version, then type

sudo easy_install antlr_python_runtime-3.1-py2.5.egg

You need to process the ANTLR grammars in order to generate the
necessary Python code.
All *.g files should be processed with ANTLR.
Assuming you installed Antlr 3.1 in your CLASSPATH, you compile a
grammar (*.g) with
java org.antlr.Tool *.g

Here is a practical example with Antlr 3.1.2.
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
------------------------

If at any stage it is not clear what commands you need to run, please tell me.
I have access to a fresh 8.04 so if there is need, I can give you
full instructions on how to run the commands.

Simos

Reply all
Reply to author
Forward
0 new messages