You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
How about adding datatype keywords to command variables?
Currently I am working on data entry using Annyang, and I have a few set types of entries which I need to recognise.
For example, if I am just looking for a number, or a letter as a command variable, it should return just the number or letter.
I know we can do this using callback function and resultMatch, but ,if I am not wrong, the whole phrase recorded is passed to the callback function and not the individual command variable or splat.
The keywords could be something like this (char) , (int),(string),(num_as_string)//can be used for inputting numbers in words such as "five hundred and forty" instead of 540.
e.g:
var command = {
':(int)tag kg':function{document.write(tag);}
};
The text was updated successfully, but these errors were encountered:
Hi
How about adding datatype keywords to command variables?
Currently I am working on data entry using Annyang, and I have a few set types of entries which I need to recognise.
For example, if I am just looking for a number, or a letter as a command variable, it should return just the number or letter.
I know we can do this using callback function and resultMatch, but ,if I am not wrong, the whole phrase recorded is passed to the callback function and not the individual command variable or splat.
The keywords could be something like this (char) , (int),(string),(num_as_string)//can be used for inputting numbers in words such as "five hundred and forty" instead of 540.
e.g:
var command = {
':(int)tag kg':function{document.write(tag);}
};
The text was updated successfully, but these errors were encountered: