02-02-2011, 02:38 AM | #1 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Dynamic keymaps
The code for the keyboard contains the following comment: "temp solution until we have XML based dynamic keymaps". This inspired me to look for an xml-based implementation of 'dynamic keymaps'. Also the lack of a 'development' keyboard when using rxvt bothered me (I am missing the Tab- and Esc-keys).
Personally I believe that IRX is focussing completely on their new mission (as they should) and will not release any firmware for the DR anymore (not even the final 2.0), so I think that this work will not become obsolete by a new firmware update. My question to you (DR-users) is: In which ways should the keyboard be configurable? (e.g. the available keys, size of the keys, dimension of the keyboard, ...) |
02-02-2011, 05:18 AM | #2 |
Connoisseur
Posts: 71
Karma: 592
Join Date: Aug 2010
Device: irex dr800sg DR1000S
|
I also planed to enchance keyboard, but lack of time
In my vision it should be some xml configurable keyboard that will allow switch to several languages and quick switch to numberic/alpha and lower/upper Ideally user will select which languages he prefer to use. |
Advert | |
|
02-02-2011, 05:57 AM | #3 |
Groupie
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
For my wife I've made a hack on the standard iRex keyboard. She needed Russian letters for StarDict, so I put Russian alphabet instead of Latin capital letters. Capital letters may be important only for rxvt (definitely not her case ) Works fine, but the solution is ugly ..
I have a running executable version of Matchbox Keyboard from DR1000 (got it from version 1.7 ?? don't remember). There you have a complete layout + xml configuration. Now what is required is substituting the standard keyboard with this one (and not launching on top). I can post the sources if you want. |
02-02-2011, 06:01 AM | #4 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
Thanks for your feedback. The implementation that I am currently making should fit with your vision. The speed at which the keyboard changes (numeric/alpha lower/upper) can not easily be changed, due to the refresh speed of the diplay (and the display-driver also preventing quick changes). For setting preferred language a setting-dialog can be added/modifed. Marcel. |
|
02-02-2011, 06:10 AM | #5 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
I modified the erkeybd component and defined my own xml-format. I did not look at the matchbox format, thanks for pointing me to it. I already did some small experiments on the emulator and can reproduce the standard keyboard with a xml-file . For some initial testing I created a azerty- and 'abc'-layout. It could help if you would send me an example of a russian layout to see how my code handles these non-western-european characters. The code has some problems (and some limitations) so I still need to work on it for some time. |
|
Advert | |
|
02-02-2011, 06:34 AM | #6 |
Groupie
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
|
Again impressed with your passion for improving the device Send me the xml (to my e-mail), I'll fill it in with Russian layout.
|
02-03-2011, 10:26 AM | #7 |
Addict
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
|
Regarding your motivation, I certainly agree with Dima
The existing keyboard is indeed far too basic. For me tab, escape, and control keys would be nice, for instance in order to try to really use the emacs like editor zile that Iñigo has ported on the device itself. Also caps lock ... I remember a proposal for some changes by allovertheglobe in https://www.mobileread.com/forums/sho...eyboard&page=3 post # 36, but then I realize that you are aware of this as you had already answered at that time ... |
02-03-2011, 10:40 AM | #8 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
The Caps-lock, tab, esc and Ctrl are also taken into the design. |
|
02-05-2011, 03:40 PM | #9 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Proof of Concept
I have just tested the changes I made on my DR and I am very pleased. Note however that the change is not yet complete. Not everything is working as I would want it to work, so I still have to do a lot of work.
I attached an installation file for those daredevils that can not wait. Note that I only played with it for several minutes! I consider it unstable software and there is a chance that you need to re-install the firmware. For those that I did not scare away. There are two 'installation'-files: Install KeyBoardHack: to install the changed firmware file and the layout files Update KeyBoard: untested!! script that stops the keyboard driver copies a new layout-file and restarts the keyboard driver. This can be used if you want to change the content of the keymap.xml file yourself. (I did not do this myself, so the script may not work.) If you do want to change the keyboard layout I advise to do this in the emulator first. Note that not all elements in the keymap-file are used at this moment. Error checking for incorrect keymap.xml files is not yet inplace! Note that the keymap.xml will probably be too big for the DR800 screen, on the DR800 you can use the default_keymap.xml. The new keyboard layout might look familiar to 'old' DR1000 users... NOTE AGAIN: THIS IS ONLY A PROOF OF CONCEPT not yet mature enough for daily use. Source code will be distributed later. |
02-06-2011, 09:39 AM | #10 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
This version has some minor updates, it also includes a keyboard with Russian characters (for dima_tr). The erkeybd-library changed, so you need to do a 'Install Keyboard Hack'.
The 'Update KeyBoard' now shows a small dialog to select the xml-file (to select the keymap with the Russian characters). NOTE AGAIN: THIS IS ONLY A PROOF OF CONCEPT not yet mature enough for daily use. |
02-07-2011, 04:31 AM | #11 |
Connoisseur
Posts: 71
Karma: 592
Join Date: Aug 2010
Device: irex dr800sg DR1000S
|
Check it.
Third layout not accessible. I can switch only 2 layouts. |
02-07-2011, 04:54 AM | #12 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Did you install the correct layout (I see that you installed the new library)?
Last edited by Mackx; 02-07-2011 at 04:57 AM. |
02-07-2011, 09:26 AM | #13 |
Connoisseur
Posts: 71
Karma: 592
Join Date: Aug 2010
Device: irex dr800sg DR1000S
|
OK
It seems to work. A bit big for DR800 Thanks |
02-07-2011, 09:55 AM | #14 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
|
02-07-2011, 10:02 AM | #15 |
Addict
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
|
works fine for me on DR800SG
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic text with onclick & innerHTML? | Doitsu | ePub | 3 | 01-07-2011 06:33 PM |