Commit graph

7 commits

Author SHA1 Message Date
Pierre Mazière
99a45daae8 MappedVirtKeyboard: fix default value for map_attr
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2012-01-24 23:51:59 +01:00
Pierre Mazière
2310e8506f MappedVirtKeyboard: set <map> attribute to return
Rather than imposing onclick, the map attribute whose value is returned
when retrieving a code is now a constructor argument
For the sake of backward compatibility, default is set to onclick

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2012-01-24 23:51:56 +01:00
Pierre Mazière
a5453326e0 Add MappedVirtKeyboard class
This is useful for virtual keyboard based on the usemap
attribute of an IMG tag

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:11:32 +01:00
Pierre Mazière
2fdb2fe36a VirtKeyboard: add check_symbols method
This method allows one to verify, before any decoding attempt,
if all the symbols given as arguments can be found in the
virtual keyboard.

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:10:23 +01:00
Pierre Mazière
d9b51c406d VirtKeyboard: symbol detection improvement
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:09:47 +01:00
Pierre Mazière
b14079a31e VirtKeyboard: make color argument mandatory
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:08:33 +01:00
Pierre Mazière
165d264ecb VirtKeyboard: move to weboob/tools/captcha/
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:07:09 +01:00