|
 |
|
08-26-2004, 09:01 PM
|
#31
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Looking at that site, they have used the first method i came up with (but didnt end up implementing). That is probably the way Phones do it, but i actually thought it would be too slow!
Garry, My program returns the word combinations instantly (this is a 1Ghz desktop); so if you havent already indexed that table, it must just be the size of your DB. I'll try to run a spellcheck against my word list, and if i succeed i'll post that (seems to have all the good words in it!)
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
08-26-2004, 09:07 PM
|
#32
|
|
I'm sorry, and you are....?
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
|
Quote: Originally Posted by Confused
Just been looking for the past 20 mins and i've not found any decent dictionary yet, i'm calling it a night (it's 1:35am here), if anyone has a half decent dictionary file, let me know where, and I'll give it a try tomorrow, and report back
Garry
http://wordlist.sourceforge.net/
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
|
|
|
08-26-2004, 09:25 PM
|
#33
|
|
Raw Wave
Join Date: Jul 2003
Location: Spagcave, in da UK Today's phrase: J'aime Alizee
Posts: 1,716
|
Quote: Originally Posted by cheerio
ok maby i dunno what your talking about. This is t-9 predictive text. Meaning you press 1 key, 1 time, for each letter. why would you need 'i' and 'a'. I ASSUME T-9 goes by grammar to predict the next word, well not really grammar, buf if the word before it is some sort of word it can determine what kind the next word will be. understand?
http://www.t9.com/learn.html
What he's saying is that commonly used words like "I" and "A" are not included in the dictionary. Understand??
|
|
|
08-26-2004, 09:29 PM
|
#34
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Cherio, i think what Garry is saying is that all he needs is the Dictionary. the English dictionary on that site is only 6000 words (thats not enough for normal conversation!)
Anyway, here is the source of my app (dont know if it will work without the DB).
I have a MSSQL DB called WordDB with a table English which has the following columns
1 - Int
2 - Int
3 - Int
4 - Int
5 - Int
6 - Int
7 - Int
8 - Int
Word - Char(255)
Used - Int
The last column will be updated each time the word is used, and all retrieves are done sorted by Used Descending. So the most commonly used word combos will be at the top of the list
By the way, if anyone wants my wordlist (160,000 words or so) email me at dominik(at)lansa.com.au
|
|
|
08-26-2004, 09:43 PM
|
#35
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Jackpot! Thankyou Frodo  the 12Dicts has some great files...
|
|
|
08-26-2004, 09:59 PM
|
#36
|
|
I'm sorry, and you are....?
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
|
I aim to please.
__________________
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
|
|
|
08-26-2004, 11:37 PM
|
#37
|
|
Raw Wave
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
|
Heres the keyboard hook program I was talking about earlier. Its actually two programs a DLL that contains the hook and a tray application that uses it. The main program does not have any of the logic in it to replace the numbers input with letters, but all that you should have to do to is add that logic and clean up some of the code a bit and it will compile fine.
Right now all the program does is replace whatever key you pressed with a '0' when the scroll lock key is toggled on, when its not toggled on, the keyboard works normally.
The real magic to this program happens in the OnKeyPress function in TrayApp.cpp. To make this program work as a phone input thing, you woudl simply have to replace the line iNewKey = '0'; with the logic for whatever key should be output. Just set iNewKey = 0; if you don't want to return anything for a key press, but are simply just count it. The wParam parameter of the OnKeyPress function contains the virtual key code of key that was pressed and it should return the key that should be replaced. The extra logic in the function is to make sure that the same keycode is returned for the keyup and for the keydown messages.
I don't have time to write this program myself, but I will answer any questions about the code.
YOu could also use the Kbhook.DLL from visual basic. To use it from VB or any language, just call SetGetMsgHook(hWnd, 0,0); where hWnd is a handle to your window. Then just look for the message with the value of WM_USER + 1068 when you recieve this message, you should process it just like it is processed in the OnKeyPress function in TrayApp.cpp
You should also call KillGetMsgHook from the dll when the program exits.
Souce for the dll can be found under kbhook folder. Run TrayApp.exe to see the program run. Just type stuff and if numlock is on it will be a 0.
Binary and source are contained in this zip:
https://filebox.vt.edu/users/cholbroo/PhoneKeyboard.zip
Last edited by god_of_cpu; 08-27-2004 at 12:28 AM.
|
|
|
08-28-2004, 02:19 AM
|
#38
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Dammit... Cant seem to download your file... Any chance of emailing it to me? dbloemhard at yahoo com
Thanks
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
08-28-2004, 02:26 AM
|
#39
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Can you attach it to this thread?
|
|
|
08-28-2004, 09:43 AM
|
#40
|
|
Raw Wave
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
|
Done
|
|
|
08-28-2004, 08:24 PM
|
#41
|
|
Variable Bitrate
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
|
Thanks, got it... I will have a looksee tonight. I'm quietly confident that i can do the regular input app in C++ (i'll change the tray icon to the currently selected letter, then when it times out it will insert the keystroke).
I hope i can figure something out for Predictive Text though...
|
|
|
03-07-2008, 11:15 PM
|
#42
|
|
Variable Bitrate
Join Date: Apr 2004
Location: Singapore
Posts: 333
|
sorry to dig this old thread old.
did you guys finish the T9 input hook?
__________________
***
CarPC Ver 4 completed. Aopen i45GMT-HD, C2D mobile 2GHz. Photofast 64GB SSD. Novatel EU-850D
|
|
|
04-14-2008, 05:10 AM
|
#43
|
|
Maximum Bitrate
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
|
I'll try and jump on this old thread too :-)
To me it is good enough to press key 2 on my phone twice for 'b' for instance. And I will probably only use it with navigator 7, which I think will predict street name anyway.
If I had understood the text correctly, and after playing a bit with the sonyericsson app, I cannot get the actual text from the phone using its internal T9. I have to use something like the keyboard hook even if I need to do a simple thing as to detect 2 presses on '2' as 'b'?
I want to use a steeringwheel button to enable keypad _and_ voice input. Once key is pressed it is keyboard only, and if no HID deveice can be connected it is voice only. The steeringwheel input as such is in place already with IBus interface and IBusComM.
But I am not sure about the connection of the phone as HID device. Can it be automatic? Will it disable it as a phone? Can it be initiated from phone, or has it got to be the PC connecting the HID device?
And most of all; has this been done already?
Last edited by bes51659; 04-14-2008 at 05:44 AM.
|
|
|
04-14-2008, 09:09 AM
|
#44
|
|
Maximum Bitrate
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
|
I just noticed that after upgrading the widcomm BT driver to my Sandberg BT radio I could activate remote control from entertainment menu on my K800i phone! Previously I could only connect by starting configuration all over.
So the problem turns out to be the opposite! I cannot control if phone is remote control from the PC. It should be possible to _invite_ phone, giving me the option to press y or n. Anyone knows how to do this?
B-O
In folder:
My Bluetooth Places\Entire Bluetooth Neighborhood\K800i
("view devices in range", dbl-clc on phone)
I can see the service, but I cannot connect to it. Only disconnect if connected and inspect status.
|
|
|
04-15-2008, 04:32 AM
|
#45
|
|
Maximum Bitrate
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
|
I've just made my first hid file. It will give normall letters with normal 12key keypad + <next> <previous> <vol up> <vol down>.
I've also started a thread on sonyericsson to try and find out how to get hold of the original image with phone keypad.
No one knows how to initialize remote control this from the PC?

In remote mode with my own background.

Text entering
Edit: Oh yeah, I get mouse movement and left-button-clic from joy-stick
I have also found that it is possible to receive calls in this remote mode! Amazing phone, don't you think? :-)
Last edited by bes51659; 04-15-2008 at 06:45 AM.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:18 PM.
| |