yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S Relay 4G] mazak23:
Yeah , right.

Silly me, I was looking for S sharfe itself, it is unicode UTF 8?
[Samsung Galaxy S Relay 4G] Kueber:
Yup, UTF 8. DF is 223 in decimal. There are tables out there with all the special keys and their HTML-decimal value.
[Samsung Galaxy S Relay 4G] mazak23:
Here is polish keyboard layout.

Mainly we are getting special letters with CTRL button (which is under email key), but some are coming with left ALT. Thus because CTRL + C for example is COPY.

More explained in files.

Soon I will do it with right shift, which I see useless at all.
[Samsung Galaxy S Relay 4G] xheretic:
Pretty interesting this thread.

I just bought one of these best qwerty device masterpiece and I'm start wondering about how to make special CZECH characters under the numbers 2-0

I'd like this:

2 = ě

3 = š

4 = č

5 = ř

6 = ž

7 = ý

8 = á

9 = í

0 = é

Can you guys give me some guide? Many thanks in advance!
[Samsung Galaxy S Relay 4G] mazak23:
Is it no better to do it with alt or ctrl key?

Kueber wrote already instruction on next post.

There is one thing we should remember, permissions.

I experienced that when it is not right Android is using different file for keyboard layout (not using file sec_keypad.kcm).

I believe it is OK to use Root Explorer apk as it was mention somewhere.

Regards
[Samsung Galaxy S Relay 4G] Kueber:
You have to modify the sec_keypad.kcm - just edit the keys.

For example, find the '2' key and edit the 'ě' in.. but you need to write it in UTF8.

1) Find character ascii value: ě -> 277 I believe (you can find those numbers in any ASCII chart <- this one even displays all the values in hex)

2) convert to HEX: 115

3) ě in unicode is now '\u0115' - just put the hex-number in like I did

4) edit the value in sec_keypad.kcm

Should look like this:

before
key 2 {
label: '2'
number: '2'
base: '2'
shift: '2'
alt: '@'
shift+alt: '@'
}
after
key 2 {
label: '2'
number: '2'
base: '\u0115'
shift: '2'
alt: '@'
shift+alt: '@'
}

Now "2" will result in a "ě" .. shift+2 will be your regular "2". Hope that helps.
[Samsung Galaxy S Relay 4G] LitD:
my own polish physical keyboard layout and char map:

http://xdaforums.com/attachment.php?attachmentid=2293495&stc=1&d=1380569369

voicesearch key (the stupid microphone) mapped to ALT_RIGHT

'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż' under right alt+c, e, l, n, o, s, x and z key, respectively

'ą' is under right alt+q key, i could not make it work with a

e-mail key mapped to CTRL_LEFT, crtl+c and ctrl+v shortcuts work

i also recommend this:

http://source.android.com/devices/tech/input/key-character-map-files.html

to everyone making custom keyboard layouts. it explains *.kcm files well

i would like to thank kueber, dillalade and mazak23

good to see that i am not the first t699 user in poland ;)
[Samsung Galaxy S Relay 4G] Nardholio:
So, who wants to kang this for us? :D https://github.com/CyanogenMod/andr...mmit/7f6a2c6a56aceca8505cfce97c5a2cf77612a791

Alternatively, if we set this up, would people submit keymaps for various languages?
[Samsung Galaxy S Relay 4G] LitD:
feel free to use mine and modify it in any way you like :)
[Samsung Galaxy S Relay 4G] :
Unfortunately I don't speak Polish or German so I don't know what the "best" arrangement would be. For the time being I'm only going to upload standard and irssi optimized. If people want to see more they'll have to submit them.
[Samsung Galaxy S Relay 4G] C3POID:
Alt isn't working

Hi there,

I installed the german layout (because I'm from ger) from the first post to switch Z <-> Y, but I can't use any symbols over the ALT-key.

This isn't working with the default CM10.2 (nightly 20131111 and before) sec_keypad.kl also?!

....I'm talking about the physical key.

Do I miss some settings?

EDIT: Only the mailsymbol-key reacts with the ALT-key. When I use the mailsymbol-key it prints an <@>, if I use ALT+mailsymbol-key I get a <0>.
[Samsung Galaxy S Relay 4G] C3POID:
Hello,

is there anybody who can give me a hint where I have to deep dive into - configs, markers, etc.?

When I use the ALT-key on the physical keyboard no other key works with it besides backspace, which is killing the whole writen line at ones.

I see the cursor changing when I tap or double tap the ALT-key so it must be working but that's it.

Would be great to get a kick in the right direction from someone.

Thanks.
[Samsung Galaxy S Relay 4G] Magamo:
With the standard keyboard layouts? What image are you running? If it's CM, did you enable one of the layouts in the input configuration other than 'default'? If so, disable everything, and things will work again.
[Samsung Galaxy S Relay 4G] C3POID:
Thanks a lot!

It's CM10.2 (20131111) and the keyboard-layout was set to 'german' instead of 'standard'.

Now it is working and I understand more and more that I can change my layout over the sec_keypad file.

SGH-T699 (Relay 4G) Talk with a little Tapa
[Samsung Galaxy S Relay 4G] _RaZziel_:
Hi everybody, I just finished my own German keyboard layout for the amazing phone that is the Galaxy Relay, so here's my contribution (file attached). Since I did not want to mount /system every time I want to correct the keyboard layout after I flashed a new ROM, I created a flashable zip that replaces the two important files (/system/usr/keychars/sec_keypad.kcm and /system/usr/keylayout/sec_keypad.kl).

My layout includes the following changes:

microphone -> right alt

envelope -> left ctrl

contacts -> tab

The last two are especially handy in a terminal emulator and for copy and paste in general.

If any alt-key is pressed, the following happens:

pressing z yields ä

pressing x yields ö

pressing c yields ü

pressing v yields ß

Together with shift, these become capital letters (apart from "ß" of course).

Feel free to modify the zip-file as you please, but don't forget to sign it again before flashing. Feel free to contact me if you encounter any problems or have any suggestions as to how to improve the keyboard layout even more or if need help in creating your own keyboard layout. Just to be sure: I do not take any responsibility if flashing my zip-file harms your phone in any way whatsoever. It works perfectly for me in CWM recovery on CM10.2.
[Samsung Galaxy S Relay 4G] LitD:
does it differ from alt+a or is it simply one another tab key?
[Samsung Galaxy S Relay 4G] _RaZziel_:
Contacts is assigned to the actual key called "TAB" in the keylayouts-file (.kl) which afaik sends the control hey '^I', whereas alt+a inserts the escaped character '\t' (declared in .kcm). These two should behave identical in (almost) every case. However, my knowledge about Linux is not extensive enough to answer that. I was tired of pressing two buttons where one was enough, so I added a dedicated tab key.
[Samsung Galaxy S Relay 4G] sorgo:
Did anyone mess around with TAB? I was used to have a full tab key on my Desire Z. Filling forms e.g. facebook login I was able to switch the inputs by tab key. Now the tab key (kk-eperimental rom) just writes the tab character. Any hints? Thanks
[Samsung Galaxy S Relay 4G] rad30n:
Yes. I found a gotcha with this too. The default tab key is defined with A on the kcm file as '\t'. That one writes the char but does not work for forms.

If instead you change a key on sec_keypad.kl to TAB, then it works that way. For instance mine is:

#key 429 CONTACTS WAKE_DROPPED
key 429 TAB WAKE_DROPPED
[Samsung Galaxy S Relay 4G] rad30n:
Hello my fellow europeans!

So I'm from Portugal and developed my own layout too. I think it might also be nicely usable for Spanish, but until I have feedback about that I won't claim it as such :)

My layout is tested only on CyanogenMod 10.2 stable. YMMV.

Issues I've had are:

• Pressing left shift + alt at the same time and pressing each key sometimes gives surprising results -- even with the stock layout. For instance, shift+alt+z should yield '£'. Yet, with the left shift it doesn't. With the right one, or with shift lock it does. But left shift+alt+x correctly yields '€'.

But after I started messing around with the layout, z started working but now this happens to me with the C, N, M and . keys, all the others are correct. I really don't get it.

• Other posts in the thread suggested that the keycode for the ENVELOPE key was 215 (when replacing it with CTRL). At least for me it's always 155.

• THAT DAMN ALT+BACKSPACE. I hate the 'alt+backspace clears the last line' shortcut.

I'd like to ask: does anyone know how to disable the damn alt+backspace? I've tried remapping backspace to a custom key, and then have that key emit fallback DEL but it still doesn't defeat that damn feature. As a workaround, I've added alt actions for every key in my keymap, so at least I don't trigger the del accidentaly when I mispress a key.

With that said, here's a picture of the layout, for reference:

And I've also published it on gitlab:

https://gitlab.com/ivoanjo/ptkbd-galaxysrelay

The flashable version is shamelessly stolen based on _RaZziel_'s.

I'd love to hear some feedback, if you have some, and hope it helps ;)

Finally, some links that were useful for me: KCM file format / KL and KCM validator tool / Keycode list / KeyTest utility, to see which keycodes are being emitted by a key
[Samsung Galaxy S Relay 4G] blanquet:
Thank you cousin! :D
[Samsung Galaxy S Relay 4G] kodimagnyl:
Hi there!

Thanx for the tips..

Does anyone know how to get Danish word suggetions on this thing ??
[Samsung Galaxy S Relay 4G] rad30n:
I'm guessing you are not talking about the hw keyboard. For the sw keyboard there's an option to download dictionaries in the settings for the keyboard itself.
[Samsung Galaxy S Relay 4G] hardy81:
I strongly feel these instructions no longer work, at least with KitKat e.g. Cyanogenmod 11. I've copied the Nordic layout to my device, to no effect.

Also, which is the default keymapping from the CM settings, since it doesn't appear to be "default". I played with this and can no longer return to the default even with default chosen in the settings and the .kl and .kcm returned to original backup copies. I cannot access the orange alternatives of each button, including "Sym". So even default does NOT work.

Any advice/experience?
[Samsung Galaxy S Relay 4G] hardy81:
Answering myself: at least in my country (in the Nordics) it is no longer necessary to edit these setting files, since you can get umlauted characters by long-pressing keys. E.g. long-press a and ä is available; long-press o and ö is available. At least in the very newest Cyanogenmod 11 nightly today.
[Samsung Galaxy S Relay 4G] Suncatcher16:
alternating layouts

Hey guys!

Could any explain me: I'm running Cyanogen 11 and wonder how can I edit alternating layouts which are used at the same time.

Particularly I'm using english and russian layout but I'm not satisfied with russian and whant to change it. How can I do it without changing the default english layout?

sec_keypad.kcm is the layout for english language I think? Or no?
[Samsung Galaxy S Relay 4G] hardy81:
Finnish keys from Play as an app, will work for Swedes also. Brilliant find I think.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Help!

Very asking for help, fellas:confused:

I have a strong need in two simultaneous layout which are customized for my needs.
[Samsung Galaxy S Relay 4G] rad30n:
I'm still on CM 10.2.1, so ymmv, but my experience is that the default keyboard is the one where all the sub-keymaps are disabled. The first time I got the relay 4g I started playing with the keymaps and couldn't get back to the default and ended up resetting the phone, and afterwards I checked again and realized that "no keymap" is not the same as "us english" or something.

---------- Post added at 10:23 AM ---------- Previous post was at 10:21 AM ----------

The shipped layouts seem to be inside InputDevices.apk.

Has anyone tried to change them? If it worked, I think we could all push to get our layouts integrated in the stock CM image, as at least the portuguese that is shipped is useless.
[Samsung Galaxy S Relay 4G] :
I can integrate multiple layouts in cm 11 the only downside is the kl file has to be the same on all of them. (If you go to language and input, keyboard layouts you'll see apexq qwerty as the first choice) if you guys want to team up and present a unified kl file (this includes English) and specific kcm files I will upload them.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Definition of files

You affirm that .kl file is unified for all layouts, while .kc files are for different languages layouts.

But I found only

Generic.kl ,

qwerty.kl

etc

and

Generic.kcm

qwerty.kcm

qwerty2.kcm

etc

which are implemented for different devices as I understand.

There are no files with a breakdown by languages.

Could you explain to me how switching between different language layouts is implemented?
[Samsung Galaxy S Relay 4G] :
I'm not talking about what's built in. I'm talking about something special for ApexQ. I can load user-selectable kcm files with an apk we're building in cm 11 (NOT omnitoad or any of the other roms as far as I know). The only caveat is the the kl file has to be the same for all of them (that is the sec_keypad.kl)
[Samsung Galaxy S Relay 4G] Suncatcher16:
Priorities

You assume that default Android layout is overrided by user-selectable kcm files?

Could you throw light upon layouts switching organizaton in ApexQ variant of CM11? What has the highest priority?

Is it Cynogen-specific or ApexQ-specific? Default Kitkat keyboard functionality is cropped? Or not?
[Samsung Galaxy S Relay 4G] :
Forget all of the language selections in settings, ok? Forget all the files on the phone too, ok? Just listen to what I'm trying to say. I can add selectable layouts for this phone to cm 11. But try all share the same kl file if done this way. The kcm files can differ.

So you can have apexq English and apexq Norwegian or whatever instead of built-in English and Norwegian that aren't adapted to or keyboard.

They are not copied to the phone they are compiled into an apk. Capiche?
[Samsung Galaxy S Relay 4G] rad30n:
If possible, I'd like for my portuguese layout to be included: https://github.com/ivoanjo/ptkbd-galaxysrelay .

Without the KL changes it's not as useful, but it's one less thing that has to be patched, and maybe in the future we'll find a way to change the KL easily :)
[Samsung Galaxy S Relay 4G] Suncatcher16:
Priority

But I don't understand some key points: how this apk is applied? Via recovery?

When it is applied all other system-based (or CM-based) layouts will be overrided (canceled) and the only active layout will be those from apk?
[Samsung Galaxy S Relay 4G] :
This is part of the official cm 11 builds and has been for some time but currently only English is available. I need your help to add more languages. (I'm really not sure how much plainer I can make this, you're starting to tax my patience)
[Samsung Galaxy S Relay 4G] :
[MENTION=4410693]rad30n[/MENTION], I'm open to changing the english kl file. The email search and contacts keys could be repurposed.
[Samsung Galaxy S Relay 4G] rad30n:
Nice! Can I suggest these changes:

* e-mail -> left ctrl. Having a ctrl in the keyboard is awesome for the usual ctrl+a/c/v/x. 10000x better, faster and easier text edition on a device made for it.

* contacts -> BUTTON_16. There are no specially reserved keys on the KeyEvent definitions. In fact, the source says:

// Also Android currently does not reserve code ranges for vendor-
// specific key codes. If you have new key codes to have, you
// MUST contribute a patch to the open source project to define
// those new codes. This is intended to maintain a consistent
// set of key code definitions across all Android devices.

The idea for BUTTON_16 is that I don't see it used very often, as it is "Generic Game Pad Button #16". This would then leave this button open for being remapped in the KCM file (the default KCM may even map it back as contacts/chat or whatever).

These two are needed because in my testing I wasn't able to override their actions on the KCM file.

Alas, the microphone one, defined by default as:

key 217 SEARCH WAKE_DROPPED

can be overriden, so if you don't want to change that one (I would suggest BUTTON_15 :D), I can make it work too.

If you think this looks good, I'll post a modified version of my KCM to work with these mappings.
[Samsung Galaxy S Relay 4G] :
[MENTION=4410693]rad30n[/MENTION] looks good but see if you can map button_16 to something useful on English. I've tried using "fallback whatever" in the kcm file but it doesn't seem to work very well. I'd like you to try an experiment as well. set the contacts key to something you know you can override, like ENVELOPE and see if it works that way. If it still doesn't let you, I can tweak the keycode in the kernel to something else we can override.

Also, Portugese is a good start, anybody else? :)
[Samsung Galaxy S Relay 4G] rad30n:
Ok so I've just updated my layout (on github) to work with the changes to the stock KL I proposed.

When used with the stock KL, the layout remains largely unchanged, but instead of the right shift being ^/~ and chat being TAB (as on my KL), right shift is unchanged and chat is ^/~. It's not perfect, but it'll get the job done.

Could I ask the label on the Keyboard Layouts menu to be something like "ApexQ Portuguese (tinyurl.com/apexptkb)"?

This way interested users could still find the "enhanced" version, which is similar to the original portuguese keyboard on a PC.

Thanks :)

---------- Post added at 05:58 PM ---------- Previous post was at 05:26 PM ----------

Ok so as for the first part I can map BUTTON_16 using fallback and it works. Using the KeyTest apk I still see BUTTON_16 being delivered, but when I press the key the Phone Book pops up correctly. What problems did you see? (I'm still on CM10.2, I don't know if that's relevant).

key BUTTON_16 {
base: fallback CONTACTS
}

As for the second test, if I change the contacts key to something else, I can override it correctly -- I was able to get it to do BUTTON_14 and to override that with no issues.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Custom russian layout

Well, do you mean changing ApexQ.apk once and then upload it to this forum, so that all askers can use you apk? Or you mean to integrate this apk into offiicial CM builds? In other words do you belong to ApexQ building team?

I ask this as I want to offer my specific variant of Russian layout and it could be not so ergonomic and comfortable for others. As I understand there is no other languages in ApexQ.apk except English and we can add any language that we want.
[Samsung Galaxy S Relay 4G] :
Have you looked at github lately? I develop extensively for d2 as well. You wouldn't know it from my xda profile, lol. They got the better end of the deal when they borg assimilated our little slider.

Yes, I'm planning on changing the official builds, yes I have that power, but I can also release a cwm flashable. It's my understanding it should work on any rom, including stock. I've been busy with other things lately though otherwise I'd have released the one with Portugese already.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Double pressing

I treat you answer as an acceptance to integrate my layout. Okay?:o

It doesn't matter, in official build or via flashable zip. It was just point of interest of mine.

In what form should I send you layout? In form of kcm file? If so, could you clear how to reflect (in .kcm) those letters that should be typed via double press on the same button (e.g. fast pressing of "u"+"u" = "y").

I don't want to use buttons-modifiers like Ctrl and etc.
[Samsung Galaxy S Relay 4G] Magamo:
Yes, nard is part of TeamApexQ.
[Samsung Galaxy S Relay 4G] :
Well I'm planning on integrating [MENTION=4410693]rad30n[/MENTION] 's Portuguese when I get some time, possibly this weekend. You can add comments to the kcm by starting a line with a comment #. If your Russian format doesn't rely on any kl changes I can accept it (or if the changes are minimal we can negotiate). That's the only reason I haven't just integrated all the languages yet.
[Samsung Galaxy S Relay 4G] rad30n:
Excellent :)

I asked this question before, but do you have any clue on where the alt+delete shortcut that deletes the last line is implemented? Or if there is any way to disable it?

It's one of those things that I've searched and people have been complaining about it since the original HTC Dream!
[Samsung Galaxy S Relay 4G] rad30n:
See http://source.android.com/devices/tech/input/key-character-map-files.html , but I don't think you can use arbitrary keys as modifiers. Double pressing "u" to get "y" I believe is not possible.

Is the russian keyb layout really like that? It kinda reminds me of Japanese, where you can have multiple characters that then are combined into a single one, you may want to check how that is implemented currently.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Not true

This is not true, because in some keyboards (AnySoft Keyboard) in some layouts it was implemented. I don't see hardware difficulties to do this in CM.

The Russian keyboard layout is not always really like that: some developers solve this problem in different ways, but I like this solution (via double pressing) most of all.

The fact remains is russian alphabet has 33 symbols, but the Relay alphabetical keyboard is much less.
[Samsung Galaxy S Relay 4G] rad30n:
The keys are indeed all there, but whereas soft keyboards can do almost anything (hence my japanese example), you are talking about a *hardware* keyboard that must work for the default (english) and that the only thing you can change is the kcm file.

So I'll rephrase my answer. Almost everything is possible, with some code. But a kcm file I don't believe it can do what you want.
[Samsung Galaxy S Relay 4G] Suncatcher16:
Yes

This is the thing! I'm trying to discover (from Nardholio and some other guys) is this can be done through KCM or KL files or some additional actions should be executed?:confused:

I am not competent in Android architecture and therefore need help in order to clear this moment for myself.
[Samsung Galaxy S Relay 4G] hardy81:
Would be great to see a Finnish keyboard available trough options. The only thing it would need is 2 letters which come last in alphabet: ä and Ä, ö and Ö. These could be placed like this: ä = microphone, Ä = shift+mic, ö = right shift, Ö = shift+right shift. Otherwise standard default.

Obviously this should be also documented somewhere, for users to know where to find the keys.

My experiment with editing the configs didn't work, so I cannot provide the config files.
[Samsung Galaxy S Relay 4G] rad30n:
Here you go, I was bored and had 5 minutes.

Please test and post feedback (flashable zip) I haven't tested it because I'm lazy and I don't want to reboot my phone twice.
[Samsung Galaxy S Relay 4G] rad30n:
Nardholio: Any news? :)
[Samsung Galaxy S Relay 4G] Suncatcher16:
I'm also wanted to ask this :) What about integrating additional layouts?
[Samsung Galaxy S Relay 4G] Kueber:
Just a quick info, I'll be updating the thread as soon as possible - was inactive for a while.
[Samsung Galaxy S Relay 4G] hardy81:
(Finnish keyboard, layout changes posted a few posts up.)

It works, exactly as I suggested. Brilliant. Can it become part of the ROM also then?
[Samsung Galaxy S Relay 4G] :
I've been spending whatever development time I have on the d2 camera and it's mostly stable now so I'll have a look at adding this to cm as son as I get off vacation
[Samsung Galaxy S Relay 4G] mikeybot:
Not quite sure what happened, but my sec_keypad.kl file isn't being read and the alt key isn't functioning properly either.

I can still type and the shift key is functioning as usual though the ? key causes "/" to be displayed. The file looks the same and has been unchanged for months.

Running CM 10.2-20131102-snapshot-m1-apexqtmo

Thanks!

Edit:

Problem solved.

Settings>Language & input>Physical Keyboard, somehow English (US) was selected instead of default.

Even though it said it was using sec_keypad.kl, it was using a different file.
[Samsung Galaxy S Relay 4G] Artanis02:
To get the Polish characters, use alt+*standard version of the character* -> e.g. alt+a = ą

Can someone help me get alt key to work properly with polish keyboard? My alt is stuck and i cant use any secodary characters :(