Re: Finger Keyboard
>> I've not tested your keyboard due to some python errors (etk.TextView >> wasn't recognized, and I had not time to workaround/fix it; > > I got the same error: ... >> AttributeError: 'module' object has no attribute 'TextView' Is python-etk installed? I got python-etk - 0.3.0+svnr36540-r0.1 I'am running fso-testing - From the install instructions : # opkg install task-python-efl python-fcntl python-etk python-ecore python-threading # wget http://rabenfrost.net/celtune/misc/python-xlib_0.14-ml0_armv4t.ipk # opkg install python-xlib_0.14-ml0_armv4t.ipk > Has anyone fixed this bug yet? Is it possible that someone could share a > screenshot? I attached 2 screenshots. As said before this is only a prototype - they gui looks bery bad: I tried to improved the gui but stuck with edje... About Terminal-Optimization: You can add any character to the keyboard. Edit fingerkeyboard.py on line 197 ... <><>___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Finger Keyboard
On Fri, Oct 24, 2008 at 15:28, "Marco Trevisan (Treviño)" <[EMAIL PROTECTED]>wrote: > Nik Lutz wrote: > > I've not tested your keyboard due to some python errors (etk.TextView > wasn't recognized, and I had not time to workaround/fix it; I got the same error: Traceback (most recent call last): > File "/usr/bin/fingerkeyboard.py", line 309, in > buttons = ButtonPanel() > File "/usr/bin/fingerkeyboard.py", line 214, in __init__ > textfield = etk.TextView() > AttributeError: 'module' object has no attribute 'TextView' > I've waited for a usable keyboard with big buttons. I would love to test yours! The Illume-Keyboard is great, but it's simply not the input method I am searching for. Has anyone fixed this bug yet? Is it possible that someone could share a screenshot? Thanks. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Finger Keyboard
on 2007.2: Traceback (most recent call last): File "./fingerkeyboard.py", line 62, in import etk ImportError: No module named etk :( I also like the Idea, though, but some thoughts: - The fullscreen keyboard should also have a 'paste' button, so that when you select the field (i.e: a cursor appears), the fullscreen keyboard immediately pops up, you type what you want, and you press the 'ok / paste' button which makes the fullscreen keyboard dissappear and pastes the text you've entered into the text field. Maybe this could even be the enter key? - I'd prefer not having to go from portrait to landscape and back every time I have to type something - if this could be done in portrait mode somehow, that would be very nice. - if at all possible, making it terminal-friendly would also be a bonus. I'm thinking that certain keys (like the arrow keys) should immediately send that key signal, rather than having to arrow / paste. But then maybe the terminal isn't very friendly to a fullscreen keyboard... -Dale Leonti Bielski wrote: > Did not tested it yet, but I think a big keyboard is a good idea. > Big keyboard with a tiny text field (reasonably tiny :)) would be great to > rapid texting without any guessing system. > Leonti > > On Fri, Oct 24, 2008 at 3:28 PM, "Marco Trevisan (Treviño)" > <[EMAIL PROTECTED]>wrote: > > >> Nik Lutz wrote: >> >>> The code is a real hack - I see it as a proof of concept for my initial >>> >> idea: >> >>> The keyboard should have two modes. >>> - A fullscreen-mode with plenty of space for big buttons and a textfield. >>> - a minimized-mode with at least two buttons: one to switch to >>> fullscreen. The second to PASTE the text that was written in >>> fullscreen-mode to the target. >>> >> I've not tested your keyboard due to some python errors (etk.TextView >> wasn't recognized, and I had not time to workaround/fix it; however the >> idea is really nice to me. I'd like to get a keyboard exactly like that >> (and with a dictionary-based typo check like the illume standard >> keyboard does)! >> >> I think that just adding to the Illume keyboard the ability of going >> fullscreen (after rotating to landscape) with an its own text field to >> be used as a temporary text field would be cool! >> >> -- >> Treviño's World - Life and Linux >> http://www.3v1n0.net/ >> >> >> ___ >> Openmoko community mailing list >> community@lists.openmoko.org >> http://lists.openmoko.org/mailman/listinfo/community >> >> > > > > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Finger Keyboard
Did not tested it yet, but I think a big keyboard is a good idea. Big keyboard with a tiny text field (reasonably tiny :)) would be great to rapid texting without any guessing system. Leonti On Fri, Oct 24, 2008 at 3:28 PM, "Marco Trevisan (Treviño)" <[EMAIL PROTECTED]>wrote: > Nik Lutz wrote: > > The code is a real hack - I see it as a proof of concept for my initial > idea: > > The keyboard should have two modes. > > - A fullscreen-mode with plenty of space for big buttons and a textfield. > > - a minimized-mode with at least two buttons: one to switch to > > fullscreen. The second to PASTE the text that was written in > > fullscreen-mode to the target. > > I've not tested your keyboard due to some python errors (etk.TextView > wasn't recognized, and I had not time to workaround/fix it; however the > idea is really nice to me. I'd like to get a keyboard exactly like that > (and with a dictionary-based typo check like the illume standard > keyboard does)! > > I think that just adding to the Illume keyboard the ability of going > fullscreen (after rotating to landscape) with an its own text field to > be used as a temporary text field would be cool! > > -- > Treviño's World - Life and Linux > http://www.3v1n0.net/ > > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Finger Keyboard
Nik Lutz wrote: > The code is a real hack - I see it as a proof of concept for my initial idea: > The keyboard should have two modes. > - A fullscreen-mode with plenty of space for big buttons and a textfield. > - a minimized-mode with at least two buttons: one to switch to > fullscreen. The second to PASTE the text that was written in > fullscreen-mode to the target. I've not tested your keyboard due to some python errors (etk.TextView wasn't recognized, and I had not time to workaround/fix it; however the idea is really nice to me. I'd like to get a keyboard exactly like that (and with a dictionary-based typo check like the illume standard keyboard does)! I think that just adding to the Illume keyboard the ability of going fullscreen (after rotating to landscape) with an its own text field to be used as a temporary text field would be cool! -- Treviño's World - Life and Linux http://www.3v1n0.net/ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Finger Keyboard
Again me... hit the wrong key-combo... The code is a real hack - I see it as a proof of concept for my initial idea: The keyboard should have two modes. - A fullscreen-mode with plenty of space for big buttons and a textfield. - a minimized-mode with at least two buttons: one to switch to fullscreen. The second to PASTE the text that was written in fullscreen-mode to the target. Initially I wanted to present you a much nicer (design, functionality) version. But I got stuck in the GUI frameworks. Currently it is written with python-etk. But I couldn't find documentation for skinning my app (am I such a bad googler?). I also got the impression that python-etk is very limited (cannot delete a single caracter from the textfield). What do you think about this concept? Is anyone interested in continuing this approach? /nik by the way: I also detected another quite nice keyboard written in python-evas [2]. The same here: I can't find good documentation: How can I set the right properties to the window, so that illume accepts it as a keyboard (just the function-calls). It is also very hard to optimize it for smaller screens. [2] https://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/python-edje/examples/evas-demo/02-vkbd/ #!/usr/bin/python # Copyright (c) 2008 Nik Lutz # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Author: Nik Lutz ## # A keyboard for mobile-phones ## # opkg install task-python-efl python-fcntl python-etk python-ecore python-threading # wget http://rabenfrost.net/celtune/misc/python-xlib_0.14-ml0_armv4t.ipk # opkg install python-xlib_0.14-ml0_armv4t.ipk # Using on OpenMoko (with Illume as window manager) ### # # 1) Save this file as /usr/bin/fingerkeyboard # 2) Create /usr/share/applications/fingerkeyboard.desktop with: """ [Desktop Entry] Encoding=UTF-8 Version=0.8 Name=FingerKeyboard Type=Application Comment=A real finger keyboard to Terminal=false Path=/usr/bin exec=fingerkeyboard Icon=htop Categories=ConsoleOnly;System;Application; GenericName=Finger Keyboard Categories=Office;Keyboard """ # 3) Create /usr/bin/fingerkeyboard with: """ #!/bin/sh export DISPLAY=:0 export HOME=/home/root /usr/bin/python /usr/bin/fingerkeyboard.py """ # 4) Make it Executable chmdo a+x /usr/bin/fingerkeyboard # 5) Open a terminal and execute fingerkeyboard # 6) open Illume/Enlightenment Config and select FingerKeyboard as Application # 7) klick on the "qwerty" and the keyboard should appear import etk import ecore import ecore.x import threading import os import Xlib.display #import Xlib.X #import Xlib.XK #import Xlib.error class State: timeout = 0.7 timer = None last_button = None textblock = None iter_out = None def get_last_button(self): return self.last_button def last_button_commit(): self.last_button.commit(self) def set_last_button(self, b): self.last_button = b def releaseButton_cb(self, button): iug = button def pressButton_cb(self, button): if self.timer: self.timer.cancel() if self.get_last_button() == button: button.nextSymbol() else: if self.get_last_button(): self.commit(self.get_last_button().selected) self.get_last_button().reset() self.set_last_button(button) self.timer = threading.Timer(self.timeout, self.timer_cb, button.selected) self.timer.start() def timer_cb(self,arg): self.commit(arg) self.get_last_button().reset() self.set_last_button(None) def commit(self , string): self.text_block.insert(self.iter_out, string) self.iter_out.forward_end() def propose_text(self, string): pass def propose_text_UNUSED(self, string): txt = self.text_block.text_get(-1) txt = txt[0:-1] self.text_block.text_set(txt, False ) #self.iter_out = etk.TextblockIter(self.text_block) self.iter_out.forward_end() self.text_block.insert(self.iter_out, string) self.text_block.insert(self.iter_out, '#') def set_textfield(self, text
Re: Finger Keyboard (from projects.openmoko)
searched thru the code ammased by mokomakefile but did not find a file matching. in debian (unstable) it is in python-xlib which has Architecture: all because deb and ipk are rather close, you might even be able to install a debian package. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community