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.

76 lines
3.3 KiB

  1. /* ****************************************************************************
  2. File: RecUtil.h
  3. Contains: This file contains the definitions needed for main recognition routine support.
  4. Written by: ParaGraph Team
  5. Copyright: 1994 by ParaGraph Int'l, all rights reserved.
  6. Change History (most recent first):
  7. <5*> 4/9/96 mbo change prototype for SetStrokeSureValuesWS()
  8. <4*> 3/20/96 mbo New grouping using dictionary
  9. <4> 8/24/95 DWL (really mbo) add SetMultiWordMarksWS()
  10. <2*> 5/3/95 mbo add func. prototype MakeAndCombRecWordsFromWordGraph()
  11. <1*> 1/5/95 mbo new baseline interface
  12. <1*> 11/22/94 mbo New today
  13. ******************************************************************************** */
  14. #ifndef __REC_UTIL_H_INCLUDED__
  15. #define __REC_UTIL_H_INCLUDED__
  16. #include "ams_mg.h"
  17. #include "ws.h"
  18. /* ===================== Defines ============================================= */
  19. #define RCBF_WSBORD 0x0001 /* Border from WS present flag */
  20. #define RCBF_PREVBORD 0x0002 /* Border from prev line present flag */
  21. #define RCBF_BOXBORD 0x0004 /* Border from external source (box inp) present flag */
  22. #define RCBF_NEWLINE 0x0008 /* Word starts new line flag */
  23. #define RCBF_NEWAREA 0x0010 /* Word is first in new area (new recognition started) flag */
  24. #define WSW_MAX_VALUES 8 /* Max num infos for strokes */
  25. /* ===================== Structures ========================================== */
  26. typedef struct {
  27. _SHORT flags;
  28. _SHORT num_points;
  29. p_PS_point_type trace;
  30. _SHORT prv_size;
  31. _SHORT prv_dn_pos;
  32. _SHORT prv_size_sure;
  33. _SHORT prv_pos_sure;
  34. _SHORT ws_size;
  35. _SHORT ws_dn_pos;
  36. _SHORT bx_size;
  37. _SHORT bx_dn_pos;
  38. } RCB_inpdata_type, _PTR p_RCB_inpdata_type;
  39. typedef struct {
  40. _INT nword; // Number of this word in wsr structure
  41. _INT flags; // Flags of the corresponding wsr entry
  42. _INT slant; // Writing slant up tp that point
  43. _INT wstep; // Writing step up to the point
  44. _INT hbord; // Average size of small letters
  45. _UCHAR s_nums[WSW_MAX_VALUES];
  46. _SCHAR s_surs[WSW_MAX_VALUES];
  47. } ws_word_info_type, _PTR p_ws_word_info_type;
  48. /* ===================== Prototypes ========================================== */
  49. _INT SetRCB(p_RCB_inpdata_type p_inp, p_stroka_data p_stroka);
  50. _INT GetWSBorder(_INT nword, p_ws_results_type wsr, p_INT psize, p_INT ppos, p_INT nl);
  51. _INT GetInkBox(_TRACE pt, _INT np, p_RECT prect);
  52. _INT GetAvePos(_TRACE trace, _INT num_points);
  53. _INT SetMultiWordMarksDash(p_xrdata_type xrdata);
  54. _INT SetMultiWordMarksWS(_INT level, p_xrdata_type xrdata, p_rc_type rc);
  55. _INT SetStrokeSureValuesWS(_INT fl_carry, _INT num_word, p_ws_results_type wsr, p_ws_word_info_type wswi);
  56. #endif /* __REC_UTIL_H_INCLUDED__ */
  57. /* ********************* END of Header **************************************** */