dominiko ([info]dominiko) wrote,
@ 2009-01-11 21:43:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:bretonio, gnu/linukso

C'HWERTY Keyboard in Ubuntu / Klavaro C'HWERTY en Ubuntu / Ar c´hlavier C'HWERTY dindan Ubuntu
en I recently bought the Breton C'HWERTY keyboard which I talked about earlier. It worked well with Windows but I wanted to used it with Linux. I could only find a xmodmap file, but xmodmap is now deprecated in Ubuntu which uses Xkb. C'HWERTY keyboard layout thus wasn't supported unfortunately in Ubuntu-8.10. So I spent the weekend reading about how to set up keyboard layouts in Xorg and I hacked a C'HWERTY keyboard layout. Properly handling the trigraph C´h and digraph Ch caused me some headaches but asking in the Xorg mailing list I found the solution. The Breton keyboard now works wonderfully in Ubuntu-8.10. Of course, even Esperanto letters are also mapped. Hopefully the C'HWERTY keyboard layout will be integrated in the official Xorg and Linux distributions.

Here are screenshots of the keyboard selection in GNOME:

Here are the files that I modified to get the keyboard to work:

eo Mi freŝdate aĉetis la bretonan klavaron C'HWERTY pri kiu mi skribis pli malfrue. Ĝi funkciis bone per Vindozo, sed mi volis uzi ĝin kun Linukso. Mi nur povis trovi dosieron xmodmap, sed xmodmap nun ne plus uziĝas en Ubuntu, ĉar Xkb anstataŭigis ĝin. La klavaro C'HWERTY ne estis bedaŭrinde subtenata de Ubuntu-8.10. Do mi pasigis la semajnfinon legante pri kiel krei novan klavaran mapigon por Xorg kaj kodumis subtenon de la klavaro C'HWERTY. Ĝusta traktado de la trigrafo C´h kaj digrafo Ch kaŭzis iom da kapdoloroj, sed demandante ĉe la dissendlisto de Xorg mi trovis solvon. La bretona klavaro nun funkcias bonege per Ubuntu-8.10. Kompreneble eĉ Esperantaj literoj estas ankaŭ mapigitaj. Espereble subteno de la klavaro C'HWERTY enigos en la oficiala Xorg kaj en Linuksaj distribuaĵoj.

Ĉi-supre estas ekrankopioj de la klavara elekto en GNOME, kiu nun proponas la elekton C'HWERTY. Ĉiuj ŝanĝitaj dosieroj, troveblas ĉi-supre.

fr J'ai récemment acheté le clavier breton C'HWERTY à propos duquel j'avais déjà écrit. Il fonctionnait bien avec Windows mais je souhaitais l'utiliser avec Linux. Je n'ai trouvé qu'un fichier xmodmap mais xmodmap est maintenant obsolète et remplacé par Xkb sous Ubuntu. Le clavier C'HWERTY n'était donc pas supporté par Ubuntu-8.10. J'ai donc passé le weekend à lire comment créer un clavier pour Xorg et j'ai finalement configuré le clavier C'HWERTY. Traiter correctement le trigramme C´h et le digramme Ch a causé quelques maux de tête, mais après avoir demandé dans la liste de diffusion de Xorg j'ai trouvé la solution. Le clavier breton fonctionne maintenant correctement avec Ubuntu-8.10. Évidemment, les lettres espéranto sont aussi mappées. J'espère que le support du clavier C'HWERTY sera intégré à la version officielle de Xorg et dans les distributions Linux.

Tous les fichiers modifiés se trouvent ci-dessus.

br Mont a ra en-dro ar c´hlavier brezhoneg C'HWERTY dindan Ubuntu bremañ.




(4 comments) - (Post a new comment)


[info]dominiko
2009-01-25 01:17 pm UTC (link)
Mi ricevis de Jean-Pierre Quélard plibonigon de la flikaĵoj por funkciigi la klavojn C'H kaj CH kun la klavo de majuskla baskulo. Mi eĉ ne antaŭe rimarkis, ke la majuskla baskulo ne funkciis per tiuj klavoj pro tio ke mi neniam uzas la majusklan baskulon.

(Reply to this) (Thread)


(Anonymous)
2009-07-19 11:17 pm UTC (link)
I have been trying to implement a "th" key for English, using your "ch" key as a basis. I have created an .XCompose file with

: "th"
: "Th"

in it (no plans for caps usage). I export GTK_IM_MODULE=xim, etc. But when I press a key bound to that, I get what looks like a really skinny bar, and I can't backspace it. Do you have any idea what I'm doing wrong?

(Reply to this) (Parent)(Thread)


[info]dominiko
2009-07-20 07:57 pm UTC (link)
I have been trying to implement a "th" key for English, using your "ch" key as a basis. I have created an .XCompoose file with

<UF8fA>: "th"
<UF8fB>: "Th"

in it (no plans for caps usage). I export GTK_IM_MODULE=xim, etc. But when I press a key bound to that, I get what looks like a really skinny bar, and I can't backspace it. Do you have any idea what I'm doing wrong?

Livejournal ate the < and > symbols, so i added them above.

In your file /usr/share/X11/xkb/symbols/??, do you also have something like...
    key  { type[group1] = "FOUR_LEVEL_C_HWERTY", 
                 [           UF8FA,          UF8FB,           UF8FC,  Greek_omicron ] };

Did you put export GTK_IM_MODULE=xim in /etc/environment/?

Did you also edit the file /usr/share/X11/xkb/types/extra?

Try also to logout then login, to see if it helps.

(Reply to this) (Parent)(Thread)


(Anonymous)
2009-07-21 01:54 am UTC (link)
Actually on my system it doesn't have that, it's just // Handling the CH key correctly requires an inputmethod (XIM) // See https://bugs.freedesktop.org/show_bug.cgi?id=19506 // key { [ digraph_ch, digraph_Ch, digraph_CH, Greek_omicron ] }; key { [ UF8FA, UF8FB, UF8FC, Greek_omicron ] }; And I didn't edit xkb/types/extra because I don't plan to use capslock like that.

(Reply to this) (Parent)


(4 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…