Tag: keyboard

ANTLR grammar for XKB, and Relax NG schema (draft)

I completed the ANTLRv3 grammar for symbols/ configuration files of XKB. The grammar can parse and create the abstract syntax tree (AST) for all keyboard layouts in xkeyboard-config. ANTLRv3 helps you create parsers for domain specific languages (DSL), an example of which is the configuration files in XKB. Having the ANTLRv3 grammar for a configuration …

Continue reading

Permanent link to this article: https://blog.simos.info/antlr-grammar-for-xkb-and-relax-ng-schema-draft/

Looking into the symbol files

In the previous post, we talked about the ANTLR grammar that parses the XKB layout files. The grammar is available at http://code.google.com/p/keyboardlayouteditor/source/browse. I’ll rather push to the freedesktop repository once the project is completed. Now it’s too easy for me, just doing svn commit -m something. Below you can see the relevant layout files for …

Continue reading

Permanent link to this article: https://blog.simos.info/looking-into-the-symbol-files/

Parsing XKB files with antlr

antlr (well, antlr3) is an amazing tool that replaces lex/flex, yacc/bison. One would use antlr3 if they want to deal with Domain-Specific Languages (DSL), an example of which are the text configuration files. In our case, we use antlr3 to parse some of the XKB configuration files, those found in /etc/X11/xkb/symbols/??. Our aim is to …

Continue reading

Permanent link to this article: https://blog.simos.info/parsing-xkb-files-with-antlr/

Keyboard Layout Editor GSOC project

I got accepted for a GSOC project with the X.Org Foundation. My mentor is Sergey Udaltsov and I look forward working with him. The project is about creating a Keyboard Layout Editor, that can be used to edit XKB files with a nice GUI. I will be blogging about these from here (fdo category at …

Continue reading

Permanent link to this article: https://blog.simos.info/keyboard-layout-editor-gsoc-project/

Testing the updated IM support in GTK+

In Improving input method support in GTK+-based apps, we talked about some work to update the list of compose sequences that GTK+ knows to the latest version that comes from Xorg. From 691 compose sequences, we now support over 5000. The patch has landed in GTK+ (trunk), and here are instructions for testing. If you …

Continue reading

Permanent link to this article: https://blog.simos.info/testing-the-updated-im-support-in-gtk/

Keyboard layout for combining diacritics

Typically, if you want to type characters with accents, such as á, ë, ś, you need to configure a suitable keyboard layout that includes compose sequences for those characters. The produced characters are what we call as precomposed characters; which were included in the early stages of Unicode. Nowdays, the idea is that you do …

Continue reading

Permanent link to this article: https://blog.simos.info/keyboard-layout-for-combining-diacritics/