| |
  |
| Open Source Stroke Translation Library |
|
 |
 |
posted by Editor on Thursday October 11, @06:28PM
|
|
 |
 |
 |
LibStroke is an Open Source stroke translation library. Strokes are motions of the mouse that can be interpreted by a program as a command (the technique was first developed in ECAD programs such as Mentor Graphics - see examples at the bottom of this page). The code can be downloaded here, and it has already been implemented in Linux as extensions for KDE, the X Window System, and the FVWM window manager.
|
|
 |
 |
< Cramming Speech Recognition Software Into PDAs | Liquid File System Breaks Down Hierarchical Barriers > | |
 |
 |
|
Don't have an account yet? Go Create One. A user account will let you customize the site's content according to your preferences. It will also allow you to moderate the comments of other users.
|
|
 |
 |
|
|
This discussion has been archived.
No new comments can be posted.
|
 |
|
 |
 |
|
 |
 |
 |
For those wanting to know a little more about how this works, a quick summary is that the library takes a sequence of mouse movements over an imaginary grid of nine squares, and produces a unique number to represent the "trail" of mouse movement.
So, for example (and this is according to the list of common strokes found in the source download), a downward "\" from left to right would result in the number 159, while a more complex "U" shape drawn from left to right would result in the number 1478963.
Typically, you take the pre-defined numbers for common patters and assign them to commands - so a result of "5" from this library might delete a graphic object the mouse is over.
The download also comes with Java sources in addition to other bindings, (including TCL I think), and the library itself is quite small (one class).
A few years ago I was using a Java CAD-like library called ClearSpace (now defunct) that had a gesture system like this built in, it worked quite well and made a great command interface for graphic applications.
|
|
 |
 |
|
|
|