Reply
Thread Tools
Posts: 11 | Thanked: 11 times | Joined on Dec 2009 @ Trst - Trieste, Italy
#11
Hello!
I've got the italian version but I need slovenian characters too (like čšž...). So I remapped the "è" key (AB08) to provide a "dead caron" so i can have (almost) everything just by combining that key (plus shift or Fn) with the corresponding letter (be it lower or uppercase):

Code:
partial alphanumeric_keys
xkb_symbols "it" {
    include "nokia_vndr/rx-51(english_base)"
    include "nokia_vndr/rx-51(arrows_4btns)"

    name[Group1] = "Italian";

     // 1. row
    key <AB08>	{ [	dead_caron,	dead_grave,	dead_acute,	dead_acute	] };

    // 2. row
    key <AC06>	{ [	h,		H,		semicolon,	semicolon	] };
    key <AC07>	{ [	j,		J,		colon,		colon		] };
    key <AC08>	{ [	k,		K,		exclam,		exclam		] };
    key <AC09>	{ [	l,		L,		question,	question	] };
    key <AB09>	{ [	period,		comma,		asciitilde,	asciitilde	] };

    // 3. row
    key <AB01>	{ [	z,		Z,		EuroSign,	EuroSign	] };
    key <AB02>	{ [	x,		X,		parenleft,	parenleft	] };
    key <AB03>	{ [	c,		C,		parenright,	parenright	] };
};
Also I've assigned corresponding "text arrows" (←↓→↑) to the four button arrows layout as suggested in the previous post (grazie, debernardis!!!):

Code:
xkb_symbols "arrows_4btns" {
key <UP> 	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	Up, 	uparrow 	] };
key <LEFT>	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	Left, 	leftarrow 	] };
key <DOWN>	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	Down, 	downarrow 	] };
key <RGHT> 	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	Right, 	rightarrow 	] };
};
Finally I've remapped the backspace and enter keys to provide also the useful delete and tab functions:

Code:
    key <BKSP> 	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	BackSpace, 	KP_Delete 	] };
    key <RTRN> 	{ type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ 	KP_Enter, 	Tab	 	] };

Last edited by Mitja; 2009-12-20 at 09:28.
 

The Following 4 Users Say Thank You to Mitja For This Useful Post:
crown77's Avatar
Posts: 218 | Thanked: 56 times | Joined on Nov 2009 @ Germany , Thüringen
#12
hi is there a way to get english arrow key setting on a german keyboard too so the cursor buttons are working well again?

thx crown77
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#13
Mitja's post above tells you how, second box (the one starting with xkb_symbols "arrows_4btns").
 
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#14
Would it be possible to have one button act as a right mouse button??
that would solve my issue with VNC
 
Posts: 77 | Thanked: 63 times | Joined on Sep 2009
#15
As people might be aware, Nokia changed the set of available xkb layouts in the
N900 to eliminate most of the standard layouts. This precludes using the N900
with a bluetooth keyboard. See, for example:

https://bugs.maemo.org/show_bug.cgi?id=6685

I presume that this will eventually be fixed. I would like a temporary fix to
allow using an iGo Stowaway, IRXON, or Freedom Universal (us layout). Since
people on this thread seem to be familiar with the xkb system, can someone
explain the basics of how I might go about creating my own layouts for the
above keyboards? If someone could tell me which files in /usr/share/X11/xkb
and /etc/X11/xkb I need to create and/or modify and give me a template which I
can fill in with the keycode mappings, I would appreciate it.
 
crown77's Avatar
Posts: 218 | Thanked: 56 times | Joined on Nov 2009 @ Germany , Thüringen
#16
thx @debernardis i wasnt see that iwill try it out if my n900 device will arrive i hope before xmas..
crown77
 
Posts: 11 | Thanked: 11 times | Joined on Dec 2009 @ Trst - Trieste, Italy
#17
@crown77: You just have change this line
Code:
include "nokia_vndr/rx-51(arrows_2btns)"
into
Code:
include "nokia_vndr/rx-51(arrows_4btns)"
and remove
Code:
    key <LEFT>	{ [	period,		comma,		comma,		comma		] };
    key <UP>	{ [	adiaeresis,	Adiaeresis,	question,	question	] };
That way you'll lose your period, comma, question mark, ä and Ä.
I'd suggest remapping the ö (key <AB09>) or ü (key <AB08>) into dead_diaeresis. That way you just press that key (it's "sticky") and then the letter to get the modified one.
And you have to fill the other "slots" with period, comma and question mark.
An example could be
Code:
partial alphanumeric_keys
xkb_symbols "de" {
    include "nokia_vndr/rx-51(english_base)"
    include "nokia_vndr/rx-51(arrows_4btns)"

    name[Group1] = "German";

    // 1. row
    key <AD06>	{ [	z,		Z,		6,		6		] };
    key <AB08>	{ [	dead_diaeresis,	question,	ssharp,		ssharp		] };

    // 2. row
    key <AC08>	{ [	k,		K,		semicolon,	semicolon	] };
    key <AC09>	{ [	l,		L,		colon,		colon		] };
    key <AB09>	{ [	period,		comma,		exclam,		exclam		] };

    // 3. row
    key <AB01>	{ [	y,		Y,		EuroSign,	EuroSign	] };
    key <AB03>	{ [	c,		C,		equal,		equal		] };
};
@zsparr: There is some way to get the mouse button function, but I haven't got enough time to do it right now. You can find additional informations here

@qobi: the very same guide could be useful to identify the files you'll need to get your keyboard working

Last edited by Mitja; 2009-12-20 at 21:32.
 

The Following 2 Users Say Thank You to Mitja For This Useful Post:
crown77's Avatar
Posts: 218 | Thanked: 56 times | Joined on Nov 2009 @ Germany , Thüringen
#18
thx again Mitja i begin to love this community more and more
 
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#19
I've been trying to get my head around these keyboard layout files and I think I get the basics but I can't achieve my goal.

Basically what I'd like to do is to disable that virtual symbol keyboard which is popping up on the screen when pressing Fn->Ctrl and map some of these symbols as fourth level of the hardware keyboard. For example Fn->Ctrl->J would give ] symbol. I'm looking at English hardware layout where J has ) as 3rd level, so it makes sense to assign ] as 4th level.

I also need Polish characters directly on hardware keyboard rather than virtual one (it's huge inconvenience), so I'd like to be able press combinations like Fn->Ctrl->A = ą or Shift->Fn->Ctrl->A = Ą etc.

I managed to disable symbol pad appearing, but I don't know how set Ctrl key to bump up a level *after* pressing Fn (which switches 3rd level by default, obviously). I tried trick with assigning dead_caron character to 3rd level of Ctrl key as suggested by Mitja earlier but it didn't behave as expected.

Any feedback on this will be much appreciated, as typing in Polish on N900 is currently a horrible experience and I'm desperate to change it.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________
 
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#20
Originally Posted by evad View Post
Any feedback on this will be much appreciated, as typing in Polish on N900 is currently a horrible experience and I'm desperate to change it.
OK, I've managed to get my head around this and I hacked rx-51 in a way that completely removes that virtual keypad appearing after pressing Fn+Ctrl combination. Instead I can press & hold Fn+Ctrl, then specific letter.

More on this (+hacked rx-51 itself) on my blog: http://bit.ly/5CYXMn

Hope that helps, especially Polish members of the Maemo community. :)
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________
 

The Following 7 Users Say Thank You to evad For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:18.