graffiti.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #define NUM_RECS 3
  10. #define DEFAULT_REC_DIR "classsifiers"
  11. #define REC_DEFAULT_USER_DIR "/sys/lib/scribble/classifiers"
  12. #define CLASSIFIER_DIR "lib/classifiers"
  13. #define DEFAULT_LETTERS_FILE "letters.cl"
  14. #define DEFAULT_DIGITS_FILE "digits.cl"
  15. #define DEFAULT_PUNC_FILE "punc.cl"
  16. struct graffiti {
  17. /* 3 recognizers, one each for letters, digits, and punctuation: */
  18. recognizer rec[3];
  19. /* directory in which the current classifier files are found: */
  20. char cldir[200];
  21. /* pointer to training function: */
  22. li_recognizer_train rec_train;
  23. /* pointer to function that lists the characters in the classifier file */
  24. li_recognizer_getClasses rec_getClasses;
  25. };
  26. extern char *cl_name[3];