diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
commit | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch) | |
tree | d8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/libscribble/graffiti.h |
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/libscribble/graffiti.h')
-rwxr-xr-x | sys/src/libscribble/graffiti.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/src/libscribble/graffiti.h b/sys/src/libscribble/graffiti.h new file mode 100755 index 000000000..4c409ea19 --- /dev/null +++ b/sys/src/libscribble/graffiti.h @@ -0,0 +1,21 @@ + +#define NUM_RECS 3 +#define DEFAULT_REC_DIR "classsifiers" +#define REC_DEFAULT_USER_DIR "/sys/lib/scribble/classifiers" +#define CLASSIFIER_DIR "lib/classifiers" +#define DEFAULT_LETTERS_FILE "letters.cl" +#define DEFAULT_DIGITS_FILE "digits.cl" +#define DEFAULT_PUNC_FILE "punc.cl" + +struct graffiti { + /* 3 recognizers, one each for letters, digits, and punctuation: */ + recognizer rec[3]; + /* directory in which the current classifier files are found: */ + char cldir[200]; + /* pointer to training function: */ + li_recognizer_train rec_train; + /* pointer to function that lists the characters in the classifier file */ + li_recognizer_getClasses rec_getClasses; +}; + +extern char *cl_name[3]; |