Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. // This file contains utility functions a recognizer should provide for WISP
  2. // Author: Ahmad A. AbdulKader (ahmadab)
  3. // August 10th 2001
  4. #include <common.h>
  5. #include <limits.h>
  6. #include <string.h>
  7. #include "xrcreslt.h"
  8. #include "bear.h"
  9. #ifndef __RECOUTIL_H__
  10. #define __RECOUTIL_H__
  11. XRC *WordMapRunInferno (XRC *pxrcMain, int yDev, WORD_MAP *pWordMap);
  12. BOOL WordMapRunBear (XRC *pxrc, WORD_MAP *pWordMap);
  13. // Any recognizer must implement these four functions
  14. BOOL WordMapRecognize ( XRC *pxrc,
  15. BEARXRC *pxrcBear,
  16. LINE_SEGMENTATION *pLineSeg,
  17. WORD_MAP *pMap,
  18. ALTERNATES *pAlt
  19. );
  20. BOOL WordMapRecognizeWrap ( XRC *pxrc,
  21. BEARXRC *pxrcBear,
  22. LINE_SEGMENTATION *pLineSeg,
  23. WORD_MAP *pMap,
  24. ALTERNATES *pAlt
  25. );
  26. BOOL WordModeGenLineSegm (XRC *pxrc);
  27. BOOL Top1WordsEqual(XRC *pxrc, BEARXRC *pBearXrc, WORDMAP *pMap, int *piWordInfIdx);
  28. BOOL copySingleWordAltList(ALTERNATES *pDestAlt, ALTERNATES *pSrcAlt, WORDMAP *pMap, XRC *pxrc);
  29. BOOL insertEmptyStringintEmptyAlt(ALTERNATES *pAlt, int cStroke, int *piStrokeIndex, XRC *pxrc);
  30. LINE_SEGMENTATION *GenLineSegm (int cWord, WORDINFO *pWordInfo, XRC *pxrc);
  31. #endif // __RECOUTIL_H__