]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libscribble/graffiti.h
Import sources from 2011-03-30 iso image
[plan9front.git] / sys / src / libscribble / graffiti.h
1
2 #define NUM_RECS    3
3 #define DEFAULT_REC_DIR         "classsifiers"
4 #define REC_DEFAULT_USER_DIR    "/sys/lib/scribble/classifiers"
5 #define CLASSIFIER_DIR          "lib/classifiers"
6 #define DEFAULT_LETTERS_FILE    "letters.cl"
7 #define DEFAULT_DIGITS_FILE     "digits.cl"
8 #define DEFAULT_PUNC_FILE       "punc.cl"
9
10 struct graffiti {
11         /* 3 recognizers, one each for letters, digits, and punctuation: */
12         recognizer                                      rec[3];
13         /* directory in which the current classifier files are found: */
14         char                                            cldir[200];
15         /* pointer to training function: */
16         li_recognizer_train                     rec_train;
17         /* pointer to function that lists the characters in the classifier file */
18         li_recognizer_getClasses        rec_getClasses; 
19 };
20
21 extern char *cl_name[3];