00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef CALLCPP_H
00021 #define CALLCPP_H
00022
00023 #ifndef __UNIX__
00024 #include <assert.h>
00025 #endif
00026 #include "host.h"
00027 #include "varable.h"
00028 #include "unichar.h"
00029
00030 class ScrollView;
00031
00032 typedef enum {
00033 Black,
00034 White,
00035 Red,
00036 Yellow,
00037 Green,
00038 Cyan,
00039 Blue,
00040 Magenta,
00041 Aquamarine,
00042 Dark_SLATE_BLUE,
00043 Light_BLUE,
00044 Medium_BLUE,
00045 Midnight_BLUE,
00046 Navy_BLUE,
00047 Sky_BLUE,
00048 Slate_BLUE,
00049 Steel_BLUE,
00050 Coral,
00051 Brown,
00052 Sandy_BROWN,
00053 Gold,
00054 GoldENROD,
00055 Dark_GREEN,
00056 Dark_OLIVE_GREEN,
00057 Forest_GREEN,
00058 Lime_GREEN,
00059 Pale_GREEN,
00060 Yellow_GREEN,
00061 Light_GREY,
00062 Dark_SLATE_GREY,
00063 Dim_GREY,
00064 Grey,
00065 Khaki,
00066 Maroon,
00067 Orange,
00068 Orchid,
00069 Pink,
00070 Plum,
00071 Indian_RED,
00072 Orange_RED,
00073 Violet_RED,
00074 Salmon,
00075 Tan,
00076 Turqoise,
00077 Dark_TURQUOISE,
00078 Violet,
00079 Wheat,
00080 Green_YELLOW
00081 } C_COL;
00082
00083 #define INTEL 0x4949
00084 #define MOTO 0x4d4d
00085
00086 extern INT_VAR_H (tess_cp_mapping0, 0, "Mappings for class pruner distance");
00087 extern INT_VAR_H (tess_cp_mapping1, 1, "Mappings for class pruner distance");
00088 extern INT_VAR_H (tess_cp_mapping2, 2, "Mappings for class pruner distance");
00089 extern INT_VAR_H (tess_cp_mapping3, 3, "Mappings for class pruner distance");
00090 extern INT_VAR_H (record_matcher_output, 0, "Record detailed matcher info");
00091 extern INT_VAR_H (il1_adaption_test, 0,
00092 "Dont adapt to i/I at beginning of word");
00093 extern double_VAR_H (permuter_pending_threshold, 0.0,
00094 "Worst conf for using pending dictionary");
00095
00096
00097 extern inT32 cp_maps[4];
00098
00099 extern char blob_answer[UNICHAR_LEN + 1];
00100 extern char *word_answer;
00101 extern inT32 bits_in_states;
00102
00103 void setup_cp_maps();
00104 void cprintf (
00105 const char *format, ...
00106 );
00107 ScrollView *c_create_window(
00108 const char *name,
00109 inT16 xpos,
00110 inT16 ypos,
00111 inT16 xsize,
00112 inT16 ysize,
00113 double xmin,
00114 double xmax,
00115 double ymin,
00116 double ymax
00117 );
00118 void c_line_color_index(
00119 void *win,
00120 C_COL index);
00121 void c_move(
00122 void *win,
00123 double x,
00124 double y);
00125 void c_draw(
00126 void *win,
00127 double x,
00128 double y);
00129 void c_make_current(
00130 void *win);
00131 void c_clear_window(
00132 void *win);
00133 char window_wait(ScrollView* win);
00134 void reverse32(void *ptr);
00135 void reverse16(void *ptr);
00136
00137 #endif