ccmain/tfacep.h

Go to the documentation of this file.
00001 
00020 #ifndef           TFACEP_H
00021 #define           TFACEP_H
00022 
00023 #include          "hosthplb.h"
00024 #include          "tessclas.h"
00025 #include          "tessarray.h"
00026 #include          "tstruct.h"
00027 #include          "notdll.h"
00028 #include "choices.h"
00029 #include "oldlist.h"
00030 #include "hyphen.h"
00031 #include "tface.h"
00032 #include "permute.h"
00033 #include "adaptmatch.h"
00034 #include "blobclass.h"
00035 #include "stopper.h"
00036 #include "associate.h"
00037 #include "chop.h"
00038 #include "expandblob.h"
00039 #include "tordvars.h"
00040 #include "metrics.h"
00041 #include "tface.h"
00042 #include "badwords.h"
00043 #include "structures.h"
00044 
00045 // Used to be used in ccutil/mainblk.h but now commented out (v1.03)
00046 #define BLOB_MATCHING_ON
00047 typedef void (*TESS_TESTER) (TBLOB *, BOOL8, char *, INT32, LIST);
00048 typedef LIST (*TESS_MATCHER) (TBLOB *, TBLOB *, TBLOB *, void *, TEXTROW *);
00049 
00050 extern "C"
00051 {
00052   /*
00053   int                   start_recog(            //Real main in C
00054   int                   argc,
00055   char                  *argv[]);
00056   void                  program_editup2(        //afterforking part
00057   int                   argc,
00058   char**                argv);
00059 
00060   int                   end_recog(              //Real main in C
00061   int                   argc,
00062   char                  *argv[]);
00063   void                  set_interactive_pass();
00064   void                  set_pass1();
00065   void                  set_pass2();
00066   //ARRAY                  cc_recog(TWERD*,TESS_CHOICE*,TESS_CHOICE*,TESS_TESTER,
00067   //                             TESS_TESTER);*/
00068   //void                                          wo_learn_blob(TBLOB*,TEXTROW*,char*,INT32);
00069   //LIST                                  AdaptiveClassifier(TBLOB*,TBLOB*,TEXTROW*);
00070   //void                                          LearnBlob(TBLOB*,TEXTROW*,char*,INT32);
00071   //TWERD                                         *newword();
00072   //TBLOB                                         *newblob();
00073   //TESSLINE                                      *newoutline();
00074   //EDGEPT                                                *newedgept();
00075   //void                                          oldedgept(EDGEPT*);
00076   //void                                          destroy_nodes(void*,void (*)(void*));
00077   //TESS_LIST                                     *append_choice(TESS_LIST*,char*,double,double,char);
00078   //void                                          fix_quotes (char*);
00079   //void                                          record_certainty(double,int);
00080   //int                                                   AcceptableResult(A_CHOICE*,A_CHOICE*);
00081   //int                                                   AdaptableWord(TWERD*,const char*,const char*);
00082   //void                                          delete_word(TWERD*);
00083   //void                                          free_blob(TBLOB*);
00084   //void                                          add_document_word(A_CHOICE*);
00085   //void                                          AdaptToWord(TWERD*,TEXTROW*,const char*,const char*,const char*);
00086   //void                                          SaveBadWord(const char*,double);
00087   //void                                          free_choice(TESS_CHOICE*);
00088   //TWERD                                         *newword();
00089   //TBLOB                                         *newblob();
00090   //void                                          free_blob(                                      //free a blob
00091   //      TBLOB                                           *blob);                                         //blob to free
00092 
00093   //int                                                   dict_word( const char* );
00094 
00095   //extern int                                    tess_cn_matching;
00096   //extern int                                    tess_bn_matching;
00097   //extern int                                    last_word_on_line;
00098   extern TEXTROW normalized_row;
00099   //extern TESS_MATCHER                   blob_matchers[];
00100   //extern FILE                                   *rawfile;
00101   //extern FILE                                   *textfile;
00102   //extern int                                    character_count;
00103   //extern int                                    word_count;
00104   //extern int                                    enable_assoc;
00105   //extern int                                    chop_enable;
00106   //extern int                                    permute_only_top;
00107   extern int display_ratings;
00108 
00109 };
00110 
00111 #if 0
00112 #define strsave(s)    \
00113    ((s) ?  \
00114    ((char*) strcpy ((char*)alloc_string (strlen(s)+1), s))  :  \
00115    (NULL))
00116 #endif
00117 
00118 #define BOLD_ON            "&dB(s3B"
00119 #define BOLD_OFF        "&d@(s0B"
00120 #define UNDERLINE_ON    "&dD"
00121 #define UNDERLINE_OFF      "&d@"
#endif

Generated on Wed Feb 28 19:49:07 2007 for Tesseract by  doxygen 1.5.1