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.

52 lines
1.7 KiB

  1. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation. All rights reserved.
  4. //
  5. // Module:
  6. // volcano/dll/JAWS.h
  7. //
  8. // Description:
  9. // One and two stroke combiner net header
  10. //
  11. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  12. #include "common.h"
  13. #include "runnet.h"
  14. #include "sole.h"
  15. #include "fugu.h"
  16. #pragma once
  17. // Magic key the identifies the NN bin file
  18. #define JAWS_FILE_TYPE 0xC0EB1212
  19. // Version information for file.
  20. #define JAWS_MIN_FILE_VERSION 0 // First version of code that can read this file
  21. #define JAWS_OLD_FILE_VERSION 0 // Oldest file version this code can read.
  22. #define JAWS_CUR_FILE_VERSION 0 // Current version of code.
  23. typedef struct JAWS_LOAD_INFO
  24. {
  25. LOAD_INFO info;
  26. LOCAL_NET net;
  27. int iNetSize;
  28. } JAWS_LOAD_INFO;
  29. BOOL JawsLoadRes(JAWS_LOAD_INFO *pJaws, HINSTANCE hInst, int nResID, int nType);
  30. BOOL JawsLoadFile(JAWS_LOAD_INFO *pJaws, wchar_t *wszRecogDir);
  31. BOOL JawsUnloadFile(JAWS_LOAD_INFO *pJaws);
  32. int JawsMatch(JAWS_LOAD_INFO *pJaws, FUGU_LOAD_INFO *pFugu, SOLE_LOAD_INFO *pSole,
  33. ALT_LIST *pAltList, int cAlt, GLYPH *pGlyph, RECT *pGuide,
  34. CHARSET *pCharSet, LOCRUN_INFO *pLocRunInfo);
  35. #define JAWS_NUM_ALTERNATES 10
  36. #define JAWS_NUM_ALT_FEATURES 9
  37. #define JAWS_NUM_MISC_FEATURES 1
  38. #define JAWS_NUM_FEATURES (JAWS_NUM_ALTERNATES * JAWS_NUM_ALT_FEATURES + JAWS_NUM_MISC_FEATURES)
  39. int JawsFeaturize(FUGU_LOAD_INFO *pFugu, SOLE_LOAD_INFO *pSole, LOCRUN_INFO *pLocRunInfo,
  40. GLYPH *pGlyph, RECT *pGuide,
  41. CHARSET *pCharSet, RREAL *pFeat, ALT_LIST *pAltList,
  42. BOOL *pfAgree);