Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2011, 03:51 AM   #31
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by jonathan_s View Post
Thanks!

Could you also point me to some instructions for building your code?
Do you already have a build environment for building firmware components or do you also need information on that part?
Mackx is offline   Reply With Quote
Old 09-01-2011, 03:54 AM   #32
jonathan_s
Enthusiast
jonathan_s began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Nov 2009
Device: none
Quote:
Originally Posted by Mackx View Post
Do you already have a build environment for building firmware components or do you also need information on that part?
I have installed and used the poky cross-build environment and emulator, and have been building kernel modules. So I think I probably only need the specifics for your code.
jonathan_s is offline   Reply With Quote
Old 09-01-2011, 01:42 PM   #33
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by jonathan_s View Post
I have installed and used the poky cross-build environment and emulator, and have been building kernel modules. So I think I probably only need the specifics for your code.
I assume you have read the development document from the iRex website and downloaded the sources. First execute:
Code:
source /usr/local/poky/eabi-glibc/arm/environment-setup
to prepare your shell.

Next go to the component you want to build and do:
Code:
export MACHINE_NAME=dr1000s
autoreconf --install
intltoolize
./configure --host=arm-poky-linux-gnueabi --sysconfdir=/etc --prefix=/usr
make install-strip DESTDIR=~/Development/4.0/Install/
(I use ~/Development/4.0/Install/ to store the build results, so you may need to change this.)

Depending on what I have build I copy it to the emulator:
scp ../../Install/usr/bin/erkeybd root@qemu:/usr/bin/
or:
scp ../../Install/usr/lib/liberkeyb.so.0.0.1 root@qemu:/usr/lib/

Note that this does not work for programs that are executing, first copy them to another location on the qemu and then from the qemu to the correct location.
(You can log into the qemu using ssh qemu)

When changing library interfaces, you also need to install the changed header files in the development environment:
Code:
make install-strip DESTDIR=/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi
Or copy them manually to the development environment. (You may need to change permissions in the development environment.)

I hope that I got everything correct and that it is enough to get you up and running.
Mackx is offline   Reply With Quote
Old 03-19-2012, 08:33 AM   #34
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
An update, I modified the code so that XK_Left/Right/Up/Down are also recognised. Note that the erkeybd-library is changed, so you need to run the 'Install KeyBoard Hack' again (1)Cancel Uninstall, 2)OK for Install, 3)leads to reset of device). The install also copies the bitmaps, so if you do not like them change them and run the install again.

Source code will be updated in the dr1000-hackx BitBucket archive.
Attached Files
File Type: zip KeyBoardHack-v3.zip (26.1 KB, 92 views)
Mackx is offline   Reply With Quote
Old 04-11-2012, 07:12 PM   #35
MrWarper
Zealot
MrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it is
 
Posts: 120
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
Extending the keyboard - Uppercase accented letters!?!?

I've been thinking of extending the keyboard layout for a while to include a few characters I want to type in my future stuff, so I gave yours a try and found a bump

In the attachment you'll find your normal keyboard plus upper-case accented letters, cent and yen signs, Icelandic thorns, etc. Pretty straightforward to add in theory. Now for the strange part:

When the keyboard appears, you can type the cent sign "¢", and also "¶", "§", "µ", "þ", letters with diacritics, etc. without problems. Then, pressing shift or CapsLock brings up the "upper case" labels on the keys, but only "¥" (I put this as Shift + ¢) can be typed correctly -- the letters with diacritics are all converted to lower case (i.e. you push "Æ" or "Á" but get "æ" or "á" instead, etc.)! Why?

On a different note, I tried to use text labels for the arrows but the font used to draw the keyboard lacks those glyphs. I've tried to edit your PNG files to make the up and down arrows fit in the "keys" but all I get are black blobs. Any comments on this?

Thank you for another impressive piece of work BTW.
Attached Files
File Type: xml keymap.xml (18.5 KB, 65 views)

Last edited by MrWarper; 04-12-2012 at 09:37 AM. Reason: Forgot the attachment
MrWarper is offline   Reply With Quote
Old 04-12-2012, 02:49 PM   #36
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi MrWarper,

I took a first look at the code, I had some code commented out, that solves the Shift-problem. I do not know any more why I commented the code out, so I do not know if it will cause problems... I attached a zip file with a new version of liberkeyb, copy it to Programs\_keyboardhack\lib on your SD-card and run the 'Install KeyBoard Hack' (not the Change-Layout-script).
(Keep a copy of the other one to restore when needed.)

Can you tell me if this solves your problem and does not cause any problems with other keys (I only did a quick test on the emulator).

I did not have a look at the bitmaps, did you use Gimp to edit them or a different program, maybe something is wrong with the transparency?


Regards,
Marcel.
Attached Files
File Type: zip KeyBoardHack-v3a-patch.zip (10.6 KB, 72 views)
Mackx is offline   Reply With Quote
Old 04-12-2012, 09:12 PM   #37
MrWarper
Zealot
MrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it is
 
Posts: 120
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
Hey Marcel,

just a quick test -- everything seems to be right, even upper case letters with diacritics. Thank you!!
Will report if I find any problems in the future, of course.

I'm not a Linux guy so I don't feel like installing the GIMP here. PMView Pro and good ol' Display (DOS) show black blobs. No biggy, though -- I'll play with this a bit on my own.

I also like the idea of making an extended keyboard so I can have latin + cyrillic and maybe a bunch of other stuff. With the current logic as it is, should it be possible to add dead keys? (I'm not asking you to do any extra coding -- I just want to know)

Best regards.
MrWarper is offline   Reply With Quote
Old 04-13-2012, 10:04 AM   #38
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by MrWarper View Post
just a quick test -- everything seems to be right, even upper case letters with diacritics. Thank you!!
Will report if I find any problems in the future, of course.
OK
Quote:
Originally Posted by MrWarper View Post
I'm not a Linux guy so I don't feel like installing the GIMP here. PMView Pro and good ol' Display (DOS) show black blobs. No biggy, though -- I'll play with this a bit on my own.
Gimp is also available for Windows (I also run it under windows not under linux)
Quote:
Originally Posted by MrWarper View Post
I also like the idea of making an extended keyboard so I can have latin + cyrillic and maybe a bunch of other stuff. With the current logic as it is, should it be possible to add dead keys? (I'm not asking you to do any extra coding -- I just want to know)
Can you explain what a dead-key is?
Mackx is offline   Reply With Quote
Old 04-13-2012, 10:53 PM   #39
MrWarper
Zealot
MrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it is
 
Posts: 120
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
Quote:
Originally Posted by Mackx View Post
Gimp is also available for Windows (I also run it under windows not under linux)
I could but I just don't want to install a program I won't use for anything else -- that's why I said I don't feel like, etc.
Not a Windows guy either, btw

Quote:
Can you explain what a dead-key is?
Sure. A dead key is one that doesn't produce a character by itself, but puts into some buffer a character that is to be combined with the next one; that's how Spanish or International American keyboard layouts usually produce accented letters: one pushes "`", "´", "¨", etc. and gets "nothing" -- when "a" or any other key is pushed afterwards, "à", "á", "ä" or whatever is produced. It is much more elegant and practical than having individual keys for what can potentially be a lot of characters, but it may be beyond the current code and not really necessary so far.
MrWarper is offline   Reply With Quote
Old 04-14-2012, 06:59 AM   #40
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by MrWarper View Post
Sure. A dead key is one that doesn't produce a character by itself, but puts into some buffer a character that is to be combined with the next one; that's how Spanish or International American keyboard layouts usually produce accented letters: one pushes "`", "´", "¨", etc. and gets "nothing" -- when "a" or any other key is pushed afterwards, "à", "á", "ä" or whatever is produced. It is much more elegant and practical than having individual keys for what can potentially be a lot of characters, but it may be beyond the current code and not really necessary so far.
Aha, that is a feature I always disable as soon as possible, since it is very annoying when typing source code. Your assumption that it is not in the current code, I can put it on my (ever growing) todo list
Mackx is offline   Reply With Quote
Old 04-15-2012, 09:32 PM   #41
MrWarper
Zealot
MrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it isMrWarper knows what time it is
 
Posts: 120
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
Resized arrows + extended layout, repackaged

Quote:
Originally Posted by Mackx View Post
Aha, that is a feature I always disable as soon as possible, since it is very annoying when typing source code. Your assumption that it is not in the current code,
I have to guess you mean I was right
OK, I'm not asking you what keyboard layout you use, but a dead key is not necessarily a whole key as such, it may be just one of the characters that can be typed with a key. For example, if I remember correctly, the double quote in the UX or USX (US international) keyboard layout is a normal key, but if you press shift+quote, and then a vowel, you get ä, ë, etc. so in that layout the double quote is a dead key only in combination with Shift (or maybe Alt, I'm not sure).

Quote:
I can put it on my (ever growing) todo list
As I said, only if you really want to -- it's just a fancy whim.

Anyway, I've resized the arrow bitmaps so they're not clipped by the keys edges, and I've repackaged them along with your keyboard hack v3, the v3a path to get lower and upper case fancy characters and my 'extended' keyboard layout where these are present.

If you are against that, I'll take it back and post the resized arrows only, but I thought this would be more convenient for anyone interested to get everything in one pass.
Attached Files
File Type: zip KeyBoardHack-v3a+.zip (33.9 KB, 80 views)

Last edited by MrWarper; 04-16-2012 at 08:02 AM.
MrWarper is offline   Reply With Quote
Old 04-16-2012, 07:30 AM   #42
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by MrWarper View Post
I have to guess you mean I was right
Oops... send too early
Quote:
Originally Posted by MrWarper View Post
Anyway, I've resized the arrow bitmaps so they're not clipped by the keys edges, and I've repackaged them along with your keyboard hack v3, the v3a path to get lower and upper case fancy characters and my 'extended' keyboard layout where these are present.

If you are against that, I'll take it back and post the resized arrows only, but I thought this would be more convenient for anyone interested to get everything in one pass.
It is OK with me, I will add the icons to the BitBucket archive so I will include them in my next release (if I need to make one).
Mackx is offline   Reply With Quote
Old 04-25-2012, 09:56 AM   #43
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
Just installed the new keyboard with the arrow keys, quite useful indeed, thanks !
fekhner is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic text with onclick & innerHTML? Doitsu ePub 3 01-07-2011 07:33 PM


All times are GMT -4. The time now is 04:43 AM.


MobileRead.com is a privately owned, operated and funded community.