diff --git a/ccutil/ocrclass.h b/ccutil/ocrclass.h index 79ed9bd3b5..ecf35904d8 100644 --- a/ccutil/ocrclass.h +++ b/ccutil/ocrclass.h @@ -257,6 +257,13 @@ typedef struct /*bitmap strip */ typedef struct /*single character */ { +// It should be noted that the format for char_code for version 2.0 and beyond is UTF8 +// which means that ASCII characters will come out as one structure but other characters +// will be returned in two or more instances of this structure with a single byte of the +// UTF8 code in each, but each will have the same bounding box. +// Programs which want to handle languagues with different characters sets will need to +// handle extended characters appropriately, but *all* code needs to be prepared to +// receive UTF8 coded characters for characters such as bullet and fancy quotes. UINT16 char_code; /*character itself */ INT16 left; /*of char (-1) */ INT16 right; /*of char (-1) */ diff --git a/classify/mfoutline.cpp b/classify/mfoutline.cpp index 80a149c9b7..a36af418ed 100644 --- a/classify/mfoutline.cpp +++ b/classify/mfoutline.cpp @@ -295,9 +295,9 @@ LIST ConvertOutlines(TESSLINE *Outline, if (OutlineType == outer) ConvertedOutlines = ConvertOutlines (Outline->child, ConvertedOutlines, hole); - else - ConvertedOutlines = ConvertOutlines (Outline->child, - ConvertedOutlines, outer); + else + ConvertedOutlines = ConvertOutlines (Outline->child, + ConvertedOutlines, outer); MFOutline = ConvertOutline (Outline); ConvertedOutlines = push (ConvertedOutlines, MFOutline); diff --git a/dlltest/dlltest.cpp b/dlltest/dlltest.cpp index d388edd4fd..4e24e66b6e 100755 --- a/dlltest/dlltest.cpp +++ b/dlltest/dlltest.cpp @@ -1,8 +1,8 @@ /********************************************************************** * File: dlltest.cpp * Description: Main program to test the tessdll interface. - * Author: Ray Smith - * Created: Wed May 16 15:17:46 PDT 2007 + * Author: Ray Smith + * Created: Wed May 16 15:17:46 PDT 2007 * * (C) Copyright 2007, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +18,8 @@ **********************************************************************/ #include "stdafx.h" -#include "imgs.h" -#include "tessdll.h" +#include "imgs.h" +#include "tessdll.h" /********************************************************************** * main() @@ -28,46 +28,62 @@ int main(int argc, char **argv) { if (argc != 3) { - fprintf(stderr, "Usage:%s imagename outputname\n", argv[0]); + fprintf(stderr, "Usage:%s imagename outputname\n", argv[0]); exit(1); } + IMAGE image; if (image.read_header(argv[1]) < 0) { - fprintf(stderr, "Can't open %s\n", argv[1]); - exit(1); + fprintf(stderr, "Can't open %s\n", argv[1]); + exit(1); } if (image.read(image.get_ysize ()) < 0) { - fprintf(stderr, "Can't read %s\n", argv[1]); - exit(1); - } - if (image.get_bpp() != 1) { - fprintf(stderr, "Image is not binary!\n"); - exit(1); - } - - TessDllAPI api("eng"); - api.BeginPageUpright(image.get_xsize(), image.get_ysize(), image.get_buffer()); - ETEXT_DESC* output = api.Recognize_all_Words(); - - FILE* fp = fopen(argv[2],"w"); - if (fp == NULL) { - fprintf(stderr, "Can't create %s\n", argv[2]); - exit(1); - } - - for (int i = 0; i < output->count; ++i) { - const EANYCODE_CHAR* ch = &output->text[i]; - for (int b = 0; b < ch->blanks; ++b) - fprintf(fp, "\n"); - fprintf(fp, "%C[%x](%d,%d)->(%d,%d)\n", - ch->char_code, ch->char_code, - ch->left, ch->bottom, ch->right, ch->top); - if (ch->formatting & 64) - fprintf(fp, "\n\n"); - if (ch->formatting & 128) - fprintf(fp, "\n\n"); - } - - return 0; + fprintf(stderr, "Can't read %s\n", argv[1]); + exit(1); + } + + + + TessDllAPI api("eng"); + + + + api.BeginPageUpright(image.get_xsize(), image.get_ysize(), image.get_buffer(), + image.get_bpp()); + + ETEXT_DESC* output = api.Recognize_all_Words(); + + + + + FILE* fp = fopen(argv[2],"w"); + if (fp == NULL) { + fprintf(stderr, "Can't create %s\n", argv[2]); + exit(1); + } + + for (int i = 0; i < output->count; ++i) { +// It should be noted that the format for char_code for version 2.0 and beyond is UTF8 +// which means that ASCII characters will come out as one structure but other characters +// will be returned in two or more instances of this structure with a single byte of the +// UTF8 code in each, but each will have the same bounding box. +// Programs which want to handle languagues with different characters sets will need to +// handle extended characters appropriately, but *all* code needs to be prepared to +// receive UTF8 coded characters for characters such as bullet and fancy quotes. + const EANYCODE_CHAR* ch = &output->text[i]; + for (int b = 0; b < ch->blanks; ++b) + fprintf(fp, "\n"); + fprintf(fp, "%C[%x](%d,%d)->(%d,%d)\n", + ch->char_code, ch->char_code, + ch->left, ch->bottom, ch->right, ch->top); + if (ch->formatting & 64) + fprintf(fp, "\n\n"); + if (ch->formatting & 128) + fprintf(fp, "\n\n"); + } + + fclose(fp); + + return 0; } diff --git a/dlltest/dlltest.vcproj b/dlltest/dlltest.vcproj new file mode 100755 index 0000000000..5a10ae6d8e --- /dev/null +++ b/dlltest/dlltest.vcproj @@ -0,0 +1,630 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tessdll.cpp b/tessdll.cpp new file mode 100644 index 0000000000..6b1f61b0a5 --- /dev/null +++ b/tessdll.cpp @@ -0,0 +1,328 @@ +/////////////////////////////////////////////////////////////////////// +// File: tessdll.cpp +// Description: Windows dll interface for Tesseract. +// Author: Glen Wernersbach +// Created: Tue May 15 10:30:01 PDT 2007 +// +// (C) Copyright 2007, Jetsoftdev. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +/////////////////////////////////////////////////////////////////////// +// tessdll.cpp : Defines the entry point for the DLL application. +// + +#include "stdafx.h" + + +#include "mfcpch.h" +#include "applybox.h" +#include "control.h" +#include "tessvars.h" +#include "tessedit.h" +#include "pageres.h" +#include "imgs.h" +#include "varabled.h" +#include "tprintf.h" +#include "tesseractmain.h" +#include "stderr.h" +#include "notdll.h" + + + +#include "tessdll.h" + +#ifdef __MSW32__ +extern ESHM_INFO shm; /*info on shm */ +#define TICKS 1000 +#endif + +extern BOOL_VARIABLE tessedit_write_ratings; +extern BOOL_VARIABLE tessedit_write_output; +extern BOOL_VARIABLE tessedit_write_raw_output; +extern BOOL_VARIABLE tessedit_write_txt_map; +extern BOOL_VARIABLE tessedit_resegment_from_boxes; + +//unsigned char membuf[sizeof (ETEXT_DESC)+32000L*sizeof (EANYCODE_CHAR)]; + +BOOL APIENTRY DllMain( HANDLE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + + +TessDllAPI::TessDllAPI(const char* lang) { + const char *fake_argv[] = { "api_config" }; + + UINT16 oldlang; //language + + ocr_open_shm ("0", "0", "0", "0", "0", "0", &oldlang); + + init_tesseract ("TESSEDIT", "tessapi", lang, 0L, 1, fake_argv); + + + if (interactive_mode) { + debug_window_on.set_value (TRUE); + } + + tessedit_write_ratings.set_value (TRUE); + tessedit_write_output.set_value(FALSE); + tessedit_write_raw_output.set_value(FALSE); + tessedit_write_txt_map.set_value(FALSE); + + + page_res=0L; + block_list = 0L; + + membuf = (unsigned char *) new BYTE[(sizeof (ETEXT_DESC)+32000L*sizeof (EANYCODE_CHAR))]; +} + +TessDllAPI::~TessDllAPI() { + EndPage(); + + End(); + + if (membuf) delete []membuf; +} + +int TessDllAPI::BeginPage(UINT32 xsize,UINT32 ysize,unsigned char *buf) +{ + return BeginPage(xsize,ysize,buf,1); +} + +int TessDllAPI::BeginPage(UINT32 xsize,UINT32 ysize,unsigned char *buf,UINT8 bpp) { + INT16 c; + + EndPage(); + + if (page_image.create (xsize+800, ysize+800, 1)==-1) + return 0L; //make the image bigger to enclose in whitespace + + //copy the passed buffer into the center of the image + + IMAGE tmp; + + tmp.create(xsize, ysize, bpp); + + for (c=0;ccount;i++) { + global_monitor->text[i].left-=400; + global_monitor->text[i].right-=400; + global_monitor->text[i].bottom-=400; + global_monitor->text[i].top-=400; + } + + global_monitor = 0L; + + return ((ETEXT_DESC *) membuf); +} + +TessDllAPI *recognize=0L; +char* current_lang = 0L; + +extern "C" +{ + +TESSDLL_API void __cdecl TessDllRelease() { + if (recognize) delete recognize; + recognize=0L; +} + +TESSDLL_API void * __cdecl TessDllInit(const char* lang) { + if (recognize) TessDllRelease(); + + recognize = new TessDllAPI(lang); + if (current_lang != 0L) + free(current_lang); + current_lang = lang ? strdup(lang) : 0L; + + return (void*) recognize; +} + +TESSDLL_API int __cdecl TessDllBeginPage(UINT32 xsize,UINT32 ysize, + unsigned char *buf) { + return TessDllBeginPageLang(xsize, ysize, buf, NULL); +} + +TESSDLL_API int __cdecl TessDllBeginPageLang(UINT32 xsize, UINT32 ysize, + unsigned char *buf, + const char* lang) { + if (recognize==0L || (lang != 0L) != (current_lang != 0L) || + lang != 0L && strcmp(lang, current_lang)) + TessDllInit(lang); + + return recognize->BeginPage(xsize, ysize, buf); +} + +TESSDLL_API int __cdecl TessDllBeginPageUpright(UINT32 xsize, UINT32 ysize, + unsigned char *buf, + const char* lang) { + if (recognize==0L || (lang != 0L) != (current_lang != 0L) || + lang != 0L && strcmp(lang, current_lang)) + TessDllInit(lang); + + return recognize->BeginPageUpright(xsize, ysize, buf); +} + +TESSDLL_API void __cdecl TessDllEndPage(void) { + recognize->EndPage(); +} + +TESSDLL_API ETEXT_DESC * __cdecl TessDllRecognize_a_Block(UINT32 left, + UINT32 right, + UINT32 top, + UINT32 bottom) { + return recognize->Recognize_a_Block(left,right,top,bottom); +} + + +TESSDLL_API ETEXT_DESC * __cdecl TessDllRecognize_all_Words(void) { + return recognize->Recognize_all_Words(); +} + + + +//deprecated funtions +TESSDLL_API void __cdecl ReleaseRecognize() +{ + + if (recognize) delete recognize;recognize=0L; + +} + + + + +TESSDLL_API void * __cdecl InitRecognize() +{ +if (recognize) ReleaseRecognize(); + +recognize = new TessDllAPI(); + +return (void*) recognize; +} + +TESSDLL_API int __cdecl CreateRecognize(UINT32 xsize,UINT32 ysize,unsigned char *buf) +{ +InitRecognize(); + +return recognize->BeginPage(xsize,ysize,buf); + +} + +TESSDLL_API ETEXT_DESC * __cdecl reconize_a_word(UINT32 left,UINT32 right,UINT32 top,UINT32 bottom) +{ +return recognize->Recognize_a_Block(left,right,top,bottom); +} + + +} diff --git a/tessdll.dsp b/tessdll.dsp new file mode 100644 index 0000000000..0d8f644bb3 --- /dev/null +++ b/tessdll.dsp @@ -0,0 +1,2027 @@ +# Microsoft Developer Studio Project File - Name="tessdll" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=tessdll - Win32 load +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "tessdll.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "tessdll.mak" CFG="tessdll - Win32 load" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "tessdll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "tessdll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "tessdll - Win32 load" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "tessdll - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "." +# PROP Intermediate_Dir "dll.Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /I "aspirin" /I "ccutil" /I "ccstruct" /I "classify" /I "cutil" /I "dict" /I "display" /I "image" /I "textord" /I "viewer" /I "wordrec" /I "ccmain" /I "." /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /D "__MSW32__" /D "__IPEREGDLL" /D "PURIFY" /FD /c +# SUBTRACT CPP /YX /Yc /Yu +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /machine:I386 /out:"tessdll.dll" + +!ELSEIF "$(CFG)" == "tessdll - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "tessdll___Win32_Debug" +# PROP BASE Intermediate_Dir "tessdll___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "bin.dbg" +# PROP Intermediate_Dir "dll.Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /Yu"stdafx.h" /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "aspirin" /I "ccutil" /I "ccstruct" /I "classify" /I "cutil" /I "dict" /I "display" /I "image" /I "textord" /I "viewer" /I "wordrec" /I "." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /D "__MSW32__" /D "__IPEREGDLL" /D "_CRTDBG_MAP_ALLOC" /D "PURIFY" /FD /GZ /c +# SUBTRACT CPP /YX /Yc /Yu +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept + +!ELSEIF "$(CFG)" == "tessdll - Win32 load" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "tessdll___Win32_load" +# PROP BASE Intermediate_Dir "tessdll___Win32_load" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "tessdll___Win32_load" +# PROP Intermediate_Dir "tessdll.load" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "aspirin" /I "ccutil" /I "ccstruct" /I "classify" /I "cutil" /I "dict" /I "display" /I "image" /I "textord" /I "viewer" /I "wordrec" /I "." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /D "__MSW32__" /D "__IPEREGDLL" /D "_CRTDBG_MAP_ALLOC" /D "PURIFY" /FD /GZ /c +# SUBTRACT BASE CPP /YX /Yc /Yu +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "aspirin" /I "ccutil" /I "ccstruct" /I "classify" /I "cutil" /I "dict" /I "display" /I "image" /I "textord" /I "viewer" /I "wordrec" /I "." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESSDLL_EXPORTS" /D "__MSW32__" /D "__IPEREGDLL" /D "_CRTDBG_MAP_ALLOC" /D "PURIFY" /FD /GZ /c +# SUBTRACT CPP /YX /Yc /Yu +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"C:\Program Files\JetsoftOCR\tessdll.dll" /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /debug /machine:I386 /out:"C:\Documents and Settings\Glen Wernersbach\Desktop\loan\tessdll.dll" /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "tessdll - Win32 Release" +# Name "tessdll - Win32 Debug" +# Name "tessdll - Win32 load" +# Begin Group "Source Files" + +# PROP Default_Filter "" +# Begin Group "ccmain" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ccmain\adaptions.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\applybox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\baseapi.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\blobcmp.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\callnet.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\charcut.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\charsample.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\docqual.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\expandblob.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\fixspace.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\fixxht.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\imgscale.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\matmatch.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\output.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\paircmp.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\reject.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\scaleimg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessedit.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tesseractmain.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessvars.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tfacepp.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tstruct.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccmain\werdit.cpp +# End Source File +# End Group +# Begin Group "ccstruct" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ccstruct\blobbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\blobs.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\blread.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\callcpp.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\coutln.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\genblob.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\labls.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\linlsq.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\lmedsq.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\mod128.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\normalis.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ocrblock.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ocrrow.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pageblk.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pageres.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pdblock.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\points.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyaprx.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyblk.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyblob.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyvert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\poutline.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quadlsq.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quadratc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quspline.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ratngs.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rect.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rejctmap.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rwpoly.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\statistc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\stepblob.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\txtregn.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\vecfuncs.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\werd.cpp +# End Source File +# End Group +# Begin Group "ccutil" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ccutil\basedir.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\bits16.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\clst.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\debugwin.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\elst.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\elst2.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\errcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\globaloc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\hashfn.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\mainblk.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\memblk.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\memry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\mfcpch.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\ocrshell.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\serialis.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\strngs.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\tessopt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\tprintf.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\unicharmap.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\unicharset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ccutil\varable.cpp +# End Source File +# End Group +# Begin Group "classify" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\classify\adaptive.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\adaptmatch.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\baseline.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\blobclass.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\chartoname.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\cluster.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\clusttool.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\cutoffs.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\extract.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\featdefs.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\flexfx.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\float2int.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\fpoint.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\fxdefs.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\hideedge.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\intfx.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\intmatcher.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\intproto.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\kdtree.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\mf.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\mfdefs.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\mfoutline.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\mfx.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\normfeat.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\normmatch.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\ocrfeatures.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\outfeat.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\picofeat.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\protos.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\sigmenu.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\speckle.cpp +# End Source File +# Begin Source File + +SOURCE=.\classify\xform2d.cpp +# End Source File +# End Group +# Begin Group "cutil" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\cutil\bitvec.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\cutil.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\danerror.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\efio.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\emalloc.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\freelist.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\globals.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\listio.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\oldheap.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\oldlist.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\structures.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\tessarray.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\tordvars.cpp +# End Source File +# Begin Source File + +SOURCE=.\cutil\variables.cpp +# End Source File +# End Group +# Begin Group "dict" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\dict\choices.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\context.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\dawg.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\hyphen.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\permdawg.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\permnum.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\permute.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\states.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\stopper.cpp +# End Source File +# Begin Source File + +SOURCE=.\dict\trie.cpp +# End Source File +# End Group +# Begin Group "display" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\display\cmndwin.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\pagewalk.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\pgedit.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\sbdmenu.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\varabled.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\varblmen.cpp +# End Source File +# Begin Source File + +SOURCE=.\display\varblwin.cpp +# End Source File +# End Group +# Begin Group "image" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\image\bitstrm.cpp +# End Source File +# Begin Source File + +SOURCE=.\image\imgbmp.cpp +# End Source File +# Begin Source File + +SOURCE=.\image\imgio.cpp +# End Source File +# Begin Source File + +SOURCE=.\image\imgs.cpp +# End Source File +# Begin Source File + +SOURCE=.\image\imgtiff.cpp +# End Source File +# End Group +# Begin Group "textord" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\textord\blkocc.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\drawedg.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\drawtord.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\edgblob.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\edgloop.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\fpchop.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\gap_map.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\makerow.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\oldbasel.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\pithsync.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\pitsync1.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\scanedg.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\sortflts.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\topitch.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\tordmain.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\tospace.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\tovars.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\underlin.cpp +# End Source File +# Begin Source File + +SOURCE=.\textord\wordseg.cpp +# End Source File +# End Group +# Begin Group "viewer" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\viewer\evntlst.cpp +# End Source File +# Begin Source File + +SOURCE=.\viewer\evnts.cpp +# End Source File +# Begin Source File + +SOURCE=.\viewer\grphics.cpp +# End Source File +# Begin Source File + +SOURCE=.\viewer\grphshm.cpp +# End Source File +# Begin Source File + +SOURCE=.\viewer\showim.cpp +# End Source File +# End Group +# Begin Group "wordrec" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\wordrec\associate.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\badwords.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\bestfirst.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\chop.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\chopper.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\closed.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\djmenus.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\drawfx.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\findseam.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\gradechop.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\heuristic.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\makechop.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\matchtab.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\matrix.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\metrics.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\mfvars.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\msmenus.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\olutil.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\outlines.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\pieces.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\plotedges.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\plotseg.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\render.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\seam.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\split.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tally.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tessinit.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tface.cpp +# End Source File +# Begin Source File + +SOURCE=.\wordrec\wordclass.cpp +# End Source File +# End Group +# Begin Group "ccmain header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ccmain\adaptions.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\applybox.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\blobcmp.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\callnet.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\charcut.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\charsample.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\control.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\docqual.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\expandblob.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\fixspace.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\fixxht.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\imgscale.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\matmatch.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\paircmp.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\reject.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\scaleimg.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessbox.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessedit.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tessvars.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tfacep.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tfacepp.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tstruct.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\werdit.h +# End Source File +# End Group +# Begin Group "ccstruct header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ccstruct\blckerr.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\blobbox.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\blobs.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\blread.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\coutln.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\crakedge.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\genblob.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\hpddef.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\hpdsizes.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ipoints.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\labls.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\linlsq.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\lmedsq.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\mod128.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\normalis.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ocrblock.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ocrrow.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pageblk.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pageres.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pdblock.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\pdclass.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\points.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyaprx.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyblk.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyblob.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\polyvert.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\poutline.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quadlsq.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quadratc.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\quspline.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\ratngs.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rect.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rejctmap.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\rwpoly.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\statistc.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\stepblob.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\tessclas.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\txtregn.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\vecfuncs.h +# End Source File +# Begin Source File + +SOURCE=.\ccstruct\werd.h +# End Source File +# End Group +# Begin Group "ccutil header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\cutil\array.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\basedir.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\bits16.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\clst.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\debugwin.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\elst.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\elst2.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\errcode.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\fileerr.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\globaloc.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\hashfn.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\host.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\hosthplb.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\lsterr.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\mainblk.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\memblk.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\memry.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\memryerr.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\mfcpch.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\ndminx.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\notdll.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\nwmain.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\ocrclass.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\ocrshell.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\platform.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\secname.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\serialis.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\stderr.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\strngs.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\tessopt.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\tprintf.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\unicharmap.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\unicharset.h +# End Source File +# Begin Source File + +SOURCE=.\ccutil\varable.h +# End Source File +# End Group +# Begin Group "classify header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\classify\adaptive.h +# End Source File +# Begin Source File + +SOURCE=.\classify\adaptmatch.h +# End Source File +# Begin Source File + +SOURCE=.\classify\baseline.h +# End Source File +# Begin Source File + +SOURCE=.\classify\blobclass.h +# End Source File +# Begin Source File + +SOURCE=.\classify\chartoname.h +# End Source File +# Begin Source File + +SOURCE=.\classify\cluster.h +# End Source File +# Begin Source File + +SOURCE=.\classify\clusttool.h +# End Source File +# Begin Source File + +SOURCE=.\classify\cutoffs.h +# End Source File +# Begin Source File + +SOURCE=.\classify\extern.h +# End Source File +# Begin Source File + +SOURCE=.\classify\extract.h +# End Source File +# Begin Source File + +SOURCE=.\classify\featdefs.h +# End Source File +# Begin Source File + +SOURCE=.\classify\flexfx.h +# End Source File +# Begin Source File + +SOURCE=.\classify\float2int.h +# End Source File +# Begin Source File + +SOURCE=.\classify\fpoint.h +# End Source File +# Begin Source File + +SOURCE=.\classify\fxdefs.h +# End Source File +# Begin Source File + +SOURCE=.\classify\fxid.h +# End Source File +# Begin Source File + +SOURCE=.\classify\hideedge.h +# End Source File +# Begin Source File + +SOURCE=.\classify\intfx.h +# End Source File +# Begin Source File + +SOURCE=.\classify\intmatcher.h +# End Source File +# Begin Source File + +SOURCE=.\classify\intproto.h +# End Source File +# Begin Source File + +SOURCE=.\classify\kdtree.h +# End Source File +# Begin Source File + +SOURCE=.\classify\matchdefs.h +# End Source File +# Begin Source File + +SOURCE=.\classify\mf.h +# End Source File +# Begin Source File + +SOURCE=.\classify\mfdefs.h +# End Source File +# Begin Source File + +SOURCE=.\classify\mfoutline.h +# End Source File +# Begin Source File + +SOURCE=.\classify\mfx.h +# End Source File +# Begin Source File + +SOURCE=.\classify\normfeat.h +# End Source File +# Begin Source File + +SOURCE=.\classify\normmatch.h +# End Source File +# Begin Source File + +SOURCE=.\classify\ocrfeatures.h +# End Source File +# Begin Source File + +SOURCE=.\classify\outfeat.h +# End Source File +# Begin Source File + +SOURCE=.\classify\picofeat.h +# End Source File +# Begin Source File + +SOURCE=.\classify\protos.h +# End Source File +# Begin Source File + +SOURCE=.\classify\sigmenu.h +# End Source File +# Begin Source File + +SOURCE=.\classify\speckle.h +# End Source File +# Begin Source File + +SOURCE=.\classify\xform2d.h +# End Source File +# End Group +# Begin Group "cutil header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\cutil\bitvec.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\callcpp.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\const.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\danerror.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\debug.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\efio.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\emalloc.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\freelist.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\funcdefs.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\general.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\globals.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\listio.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\oldheap.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\oldlist.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\structures.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\tessarray.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\tordvars.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\util.h +# End Source File +# Begin Source File + +SOURCE=.\cutil\variables.h +# End Source File +# End Group +# Begin Group "dict header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\dict\choicearr.h +# End Source File +# Begin Source File + +SOURCE=.\dict\choices.h +# End Source File +# Begin Source File + +SOURCE=.\dict\context.h +# End Source File +# Begin Source File + +SOURCE=.\dict\dawg.h +# End Source File +# Begin Source File + +SOURCE=.\dict\hyphen.h +# End Source File +# Begin Source File + +SOURCE=.\dict\permdawg.h +# End Source File +# Begin Source File + +SOURCE=.\dict\permnum.h +# End Source File +# Begin Source File + +SOURCE=.\dict\permute.h +# End Source File +# Begin Source File + +SOURCE=.\dict\states.h +# End Source File +# Begin Source File + +SOURCE=.\dict\stopper.h +# End Source File +# Begin Source File + +SOURCE=.\dict\trie.h +# End Source File +# End Group +# Begin Group "display header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\display\cmndwin.h +# End Source File +# Begin Source File + +SOURCE=.\display\pagewalk.h +# End Source File +# Begin Source File + +SOURCE=.\display\pgedit.h +# End Source File +# Begin Source File + +SOURCE=.\display\pgeditx.h +# End Source File +# Begin Source File + +SOURCE=.\display\sbdmenu.h +# End Source File +# Begin Source File + +SOURCE=.\display\varabled.h +# End Source File +# Begin Source File + +SOURCE=.\display\varblmen.h +# End Source File +# Begin Source File + +SOURCE=.\display\varblwin.h +# End Source File +# End Group +# Begin Group "image header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\image\bitstrm.h +# End Source File +# Begin Source File + +SOURCE=.\image\img.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgbmp.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgerrs.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgio.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgs.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgtiff.h +# End Source File +# Begin Source File + +SOURCE=.\image\imgunpk.h +# End Source File +# End Group +# Begin Group "textord header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\textord\blkocc.h +# End Source File +# Begin Source File + +SOURCE=.\textord\blobcmpl.h +# End Source File +# Begin Source File + +SOURCE=.\textord\drawedg.h +# End Source File +# Begin Source File + +SOURCE=.\textord\drawtord.h +# End Source File +# Begin Source File + +SOURCE=.\textord\edgblob.h +# End Source File +# Begin Source File + +SOURCE=.\textord\edgloop.h +# End Source File +# Begin Source File + +SOURCE=.\textord\fpchop.h +# End Source File +# Begin Source File + +SOURCE=.\textord\gap_map.h +# End Source File +# Begin Source File + +SOURCE=.\textord\makerow.h +# End Source File +# Begin Source File + +SOURCE=.\textord\oldbasel.h +# End Source File +# Begin Source File + +SOURCE=.\textord\pithsync.h +# End Source File +# Begin Source File + +SOURCE=.\textord\pitsync1.h +# End Source File +# Begin Source File + +SOURCE=.\textord\scanedg.h +# End Source File +# Begin Source File + +SOURCE=.\textord\sortflts.h +# End Source File +# Begin Source File + +SOURCE=.\textord\tessout.h +# End Source File +# Begin Source File + +SOURCE=.\textord\topitch.h +# End Source File +# Begin Source File + +SOURCE=.\textord\tordmain.h +# End Source File +# Begin Source File + +SOURCE=.\textord\tospace.h +# End Source File +# Begin Source File + +SOURCE=.\textord\tovars.h +# End Source File +# Begin Source File + +SOURCE=.\textord\underlin.h +# End Source File +# Begin Source File + +SOURCE=.\textord\wordseg.h +# End Source File +# End Group +# Begin Group "viewer header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\viewer\evntlst.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\evnts.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\grphics.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\grphshm.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\sbgconst.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\sbgdefs.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\sbgtypes.h +# End Source File +# Begin Source File + +SOURCE=.\viewer\showim.h +# End Source File +# End Group +# Begin Group "wordrec header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\wordrec\associate.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\badwords.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\bestfirst.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\bitvec.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\charsample.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\chop.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\chopper.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\closed.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\control.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\djmenus.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\drawfx.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\findseam.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\gradechop.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\heuristic.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\makechop.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\matchtab.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\matrix.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\measure.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\metrics.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\mfvars.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\olutil.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\outlines.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\pieces.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\plotedges.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\plotseg.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\render.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\seam.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\split.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tally.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tessinit.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\tface.h +# End Source File +# Begin Source File + +SOURCE=.\wordrec\wordclass.h +# End Source File +# End Group +# Begin Source File + +SOURCE=.\StdAfx.cpp +# ADD CPP /Yc"stdafx.h" +# End Source File +# Begin Source File + +SOURCE=.\tessdll.cpp + +!IF "$(CFG)" == "tessdll - Win32 Release" + +!ELSEIF "$(CFG)" == "tessdll - Win32 Debug" + +# ADD CPP /I "ccmain" + +!ELSEIF "$(CFG)" == "tessdll - Win32 load" + +# ADD BASE CPP /I "ccmain" +# ADD CPP /I "ccmain" + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\StdAfx.h +# End Source File +# Begin Source File + +SOURCE=.\tessdll.h +# End Source File +# Begin Source File + +SOURCE=.\ccmain\tesseractmain.h +# End Source File +# End Group +# Begin Source File + +SOURCE=.\ReadMe.txt +# End Source File +# Begin Source File + +SOURCE=.\ccutil\unichar.cpp +# End Source File +# End Target +# End Project diff --git a/tessdll.h b/tessdll.h new file mode 100644 index 0000000000..a2a8a72e44 --- /dev/null +++ b/tessdll.h @@ -0,0 +1,143 @@ +/////////////////////////////////////////////////////////////////////// +// File: tessdll.h +// Description: Windows dll interface for Tesseract. +// Author: Glen Wernersbach +// Created: Tue May 15 10:30:01 PDT 2007 +// +// (C) Copyright 2007, Jetsoftdev. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +/////////////////////////////////////////////////////////////////////// + + +#ifndef __cplusplus +typedef BOOL bool; +#endif /* __cplusplus */ + +#include "ocrclass.h" + + + + +#ifdef TESSDLL_EXPORTS +#define TESSDLL_API __declspec(dllexport) +#else +#define TESSDLL_API __declspec(dllimport) +#endif + + +#ifdef __cplusplus + +#include "baseapi.h" + + +//This is an exposed C++ +class TESSDLL_API TessDllAPI : public TessBaseAPI +{ + public: + //lang is the code of the language for which the data will be loaded. + //(Codes follow ISO 639-2.) If it is NULL, english (eng) will be loaded. + TessDllAPI(const char* lang = NULL) ; + ~TessDllAPI (); + + //xsize should be the width of line in bytes times 8 + //ysize is the height + //pass through a buffer of bytes for a 1 bit per pixel bitmap + //BeginPage assumes the first memory address is the bottom of the image + //BeginPageUpright assumes the first memory address is the top of the image + int BeginPage(UINT32 xsize,UINT32 ysize,unsigned char *buf); + int BeginPageUpright(UINT32 xsize,UINT32 ysize,unsigned char *buf); + + // This could probably be combined with about in a one function bpp=1 + int BeginPage(UINT32 xsize,UINT32 ysize,unsigned char *buf,UINT8 bpp); + int BeginPageUpright(UINT32 xsize,UINT32 ysize,unsigned char *buf, UINT8 bpp); + void EndPage(); + + //This allows you to extract one word or section from the bitmap or + //the whole page + //To extract the whole page just enter zeros for left, right, top, bottom + //Note: getting one word at time is not yet optimized for speed. + //limit of 32000 character can be returned + //see ocrclass.h for a decription of the ETEXT_DESC file + ETEXT_DESC *Recognize_a_Block(UINT32 left,UINT32 right, + UINT32 top,UINT32 bottom); + ETEXT_DESC *Recognize_all_Words(void); + + private: + int ProcessPagePass1(); + + PAGE_RES *page_res; + unsigned char *membuf; + BLOCK_LIST* block_list; + +}; + +#endif + +#ifdef __cplusplus +extern "C" +{ +#endif + + + +//The functions below provide a c wrapper to a global recognize class object + +//xsize should be the width of line in bytes times 8 +//ysize is the height +//pass through a buffer of bytes for a 1 bit per pixel bitmap +//BeginPage assumes the first memory address is the bottom of the image (MS DIB format) +//BeginPageUpright assumes the first memory address is the top of the image (TIFF format) +//lang is the code of the language for which the data will be loaded. +//(Codes follow ISO 639-2.) If it is NULL, english (eng) will be loaded. +TESSDLL_API int __cdecl TessDllBeginPage(UINT32 xsize,UINT32 ysize, + unsigned char *buf); + +TESSDLL_API int __cdecl TessDllBeginPageLang(UINT32 xsize,UINT32 ysize, + unsigned char *buf, + const char* lang); +TESSDLL_API int __cdecl TessDllBeginPageUpright(UINT32 xsize,UINT32 ysize, + unsigned char *buf, + const char* lang); +//Added in version 2.0 to allow users to specify bytes per pixel to do +//1 for binary biptmap +//8 for gray +//24 bit for color RGB +TESSDLL_API int __cdecl TessDllBeginPageBPP(UINT32 xsize,UINT32 ysize, + unsigned char *buf,UINT8 bpp); + +TESSDLL_API int __cdecl TessDllBeginPageLangBPP(UINT32 xsize,UINT32 ysize, + unsigned char *buf, + const char* lang,UINT8 bpp); +TESSDLL_API int __cdecl TessDllBeginPageUprightBPP(UINT32 xsize,UINT32 ysize, + unsigned char *buf, + const char* lang,UINT8 bpp); + +TESSDLL_API void __cdecl TessDllEndPage(void); + +//This allows you to extract one word or section from the bitmap or +//the whole page +//To extract the whole page just enter zeros for left, right, top, bottom +//Note: getting one word at time is not yet optimized for speed. +//limit of 32000 character can be returned +//see ocrclass.h for a decription of the ETEXT_DESC file +TESSDLL_API ETEXT_DESC * __cdecl TessDllRecognize_a_Block(UINT32 left, + UINT32 right, + UINT32 top, + UINT32 bottom); +TESSDLL_API ETEXT_DESC * __cdecl TessDllRecognize_all_Words(); + +//This will release any memory associated with the recognize class object +TESSDLL_API void __cdecl TessDllRelease(); + +#ifdef __cplusplus +} +#endif diff --git a/tesseract.dsp b/tesseract.dsp index 0c7b90fef1..5d1d2ea3e6 100755 --- a/tesseract.dsp +++ b/tesseract.dsp @@ -38,7 +38,7 @@ RSC=rc.exe # PROP BASE Target_Dir "" # PROP Use_MFC 2 # PROP Use_Debug_Libraries 0 -# PROP Output_Dir "bin.rel" +# PROP Output_Dir "." # PROP Intermediate_Dir "tess.Release" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" @@ -413,6 +413,11 @@ SOURCE=.\ccutil\tprintf.cpp # End Source File # Begin Source File +SOURCE=.\ccutil\unichar.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + SOURCE=.\ccutil\unicharmap.cpp # SUBTRACT CPP /YX /Yc /Yu # End Source File @@ -1293,10 +1298,6 @@ SOURCE=.\ccstruct\stepblob.h # End Source File # Begin Source File -SOURCE=.\ccstruct\tessclas.h -# End Source File -# Begin Source File - SOURCE=.\ccstruct\txtregn.h # End Source File # Begin Source File diff --git a/tesseract.dsw b/tesseract.dsw index 3fc3743e6c..b7caac45ea 100755 --- a/tesseract.dsw +++ b/tesseract.dsw @@ -11,6 +11,18 @@ Package=<5> Package=<4> {{{ + Begin Project Dependency + Project_Dep_Name mfTraining + End Project Dependency + Begin Project Dependency + Project_Dep_Name tesseract + End Project Dependency + Begin Project Dependency + Project_Dep_Name unicharset_extractor + End Project Dependency + Begin Project Dependency + Project_Dep_Name wordlist2dawg + End Project Dependency }}} ############################################################################### @@ -23,6 +35,9 @@ Package=<5> Package=<4> {{{ + Begin Project Dependency + Project_Dep_Name tessdll + End Project Dependency }}} ############################################################################### @@ -63,6 +78,30 @@ Package=<4> ############################################################################### +Project: "unicharset_extractor"=.\training\unicharset_extractor.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "wordlist2dawg"=.\training\wordlist2dawg.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + Global: Package=<5> diff --git a/tesseract.sln b/tesseract.sln new file mode 100755 index 0000000000..410433336c --- /dev/null +++ b/tesseract.sln @@ -0,0 +1,71 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C++ Express 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cnTraining", "training\cnTraining.vcproj", "{1AC769A4-E98E-48B9-B87B-90D7837031FA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dlltest", "dlltest\dlltest.vcproj", "{F8B1406B-1643-4402-B07A-8ADD9A52C01E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfTraining", "training\mfTraining.vcproj", "{EC8A9E75-C66E-4320-9D91-97F53ED7021B}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tessdll", "tessdll.vcproj", "{CB522274-3353-41AE-A700-F365FC79DEDD}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tesseract", "tesseract.vcproj", "{47519557-3296-407A-BE51-8175C77B0868}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unicharset_extractor", "training\unicharset_extractor.vcproj", "{06878883-8785-4C71-89B6-47CEDA3CD300}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wordlist2dawg", "training\wordlist2dawg.vcproj", "{5B6DC93B-30BE-4E8E-A396-3970A83CB74B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + load|Win32 = load|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.Debug|Win32.ActiveCfg = Debug|Win32 + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.Debug|Win32.Build.0 = Debug|Win32 + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.load|Win32.ActiveCfg = Debug|Win32 + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.load|Win32.Build.0 = Debug|Win32 + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.Release|Win32.ActiveCfg = Release|Win32 + {1AC769A4-E98E-48B9-B87B-90D7837031FA}.Release|Win32.Build.0 = Release|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.Debug|Win32.ActiveCfg = Debug|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.Debug|Win32.Build.0 = Debug|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.load|Win32.ActiveCfg = Debug|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.load|Win32.Build.0 = Debug|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.Release|Win32.ActiveCfg = Release|Win32 + {F8B1406B-1643-4402-B07A-8ADD9A52C01E}.Release|Win32.Build.0 = Release|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.Debug|Win32.ActiveCfg = Debug|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.Debug|Win32.Build.0 = Debug|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.load|Win32.ActiveCfg = Release|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.load|Win32.Build.0 = Release|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.Release|Win32.ActiveCfg = Release|Win32 + {EC8A9E75-C66E-4320-9D91-97F53ED7021B}.Release|Win32.Build.0 = Release|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.Debug|Win32.ActiveCfg = Debug|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.Debug|Win32.Build.0 = Debug|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.load|Win32.ActiveCfg = load|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.load|Win32.Build.0 = load|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.Release|Win32.ActiveCfg = Release|Win32 + {CB522274-3353-41AE-A700-F365FC79DEDD}.Release|Win32.Build.0 = Release|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.Debug|Win32.ActiveCfg = Debug|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.Debug|Win32.Build.0 = Debug|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.load|Win32.ActiveCfg = Debug|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.load|Win32.Build.0 = Debug|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.Release|Win32.ActiveCfg = Release|Win32 + {47519557-3296-407A-BE51-8175C77B0868}.Release|Win32.Build.0 = Release|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.Debug|Win32.ActiveCfg = Debug|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.Debug|Win32.Build.0 = Debug|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.load|Win32.ActiveCfg = Debug|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.load|Win32.Build.0 = Debug|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.Release|Win32.ActiveCfg = Release|Win32 + {06878883-8785-4C71-89B6-47CEDA3CD300}.Release|Win32.Build.0 = Release|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.Debug|Win32.ActiveCfg = Debug|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.Debug|Win32.Build.0 = Debug|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.load|Win32.ActiveCfg = Debug|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.load|Win32.Build.0 = Debug|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.Release|Win32.ActiveCfg = Release|Win32 + {5B6DC93B-30BE-4E8E-A396-3970A83CB74B}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/tesseract.vcproj b/tesseract.vcproj new file mode 100755 index 0000000000..7bb78ccbf0 --- /dev/null +++ b/tesseract.vcproj @@ -0,0 +1,5966 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/training/cnTraining.dsp b/training/cnTraining.dsp index 7afb2ae192..a725803577 100644 --- a/training/cnTraining.dsp +++ b/training/cnTraining.dsp @@ -37,7 +37,7 @@ RSC=rc.exe # PROP BASE Target_Dir "" # PROP Use_MFC 2 # PROP Use_Debug_Libraries 0 -# PROP Output_Dir "../bin.rel" +# PROP Output_Dir "." # PROP Intermediate_Dir "cntrain.Release" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" @@ -50,7 +50,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 /nologo /subsystem:console /profile /debug /machine:I386 /out:"../cnTraining.exe" +# ADD LINK32 /nologo /subsystem:console /profile /debug /machine:I386 /out:"cnTraining.exe" !ELSEIF "$(CFG)" == "cnTraining - Win32 Debug" @@ -149,6 +149,10 @@ SOURCE=..\ccutil\globaloc.cpp # End Source File # Begin Source File +SOURCE=..\cutil\globals.cpp +# End Source File +# Begin Source File + SOURCE=..\viewer\grphics.cpp # End Source File # Begin Source File @@ -217,6 +221,14 @@ SOURCE=..\training\training.cpp # End Source File # Begin Source File +SOURCE=..\ccutil\unicharmap.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharset.cpp +# End Source File +# Begin Source File + SOURCE=..\ccutil\varable.cpp # End Source File # Begin Source File diff --git a/training/cnTraining.vcproj b/training/cnTraining.vcproj new file mode 100755 index 0000000000..3594dd7d01 --- /dev/null +++ b/training/cnTraining.vcproj @@ -0,0 +1,1043 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/training/mfTraining.dsp b/training/mfTraining.dsp index bbb92f186a..707a27a801 100644 --- a/training/mfTraining.dsp +++ b/training/mfTraining.dsp @@ -37,7 +37,7 @@ RSC=rc.exe # PROP BASE Target_Dir "" # PROP Use_MFC 2 # PROP Use_Debug_Libraries 0 -# PROP Output_Dir "../bin.rel" +# PROP Output_Dir "." # PROP Intermediate_Dir "mftrain.Release" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" @@ -50,7 +50,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 /nologo /subsystem:console /profile /debug /machine:I386 /out:"../mfTraining.exe" +# ADD LINK32 /nologo /subsystem:console /profile /debug /machine:I386 /out:"mfTraining.exe" !ELSEIF "$(CFG)" == "mfTraining - Win32 Debug" @@ -148,6 +148,10 @@ SOURCE=..\ccutil\globaloc.cpp # End Source File # Begin Source File +SOURCE=..\cutil\globals.cpp +# End Source File +# Begin Source File + SOURCE=..\viewer\grphics.cpp # End Source File # Begin Source File @@ -259,6 +263,18 @@ SOURCE=..\training\training.cpp # End Source File # Begin Source File +SOURCE=..\ccutil\unichar.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharmap.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharset.cpp +# End Source File +# Begin Source File + SOURCE=..\ccutil\varable.cpp # End Source File # Begin Source File diff --git a/training/mfTraining.vcproj b/training/mfTraining.vcproj new file mode 100755 index 0000000000..0596a24107 --- /dev/null +++ b/training/mfTraining.vcproj @@ -0,0 +1,1152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/training/unicharset_extractor.dsp b/training/unicharset_extractor.dsp new file mode 100644 index 0000000000..c0a8a60740 --- /dev/null +++ b/training/unicharset_extractor.dsp @@ -0,0 +1,323 @@ +# Microsoft Developer Studio Project File - Name="unicharset_extractor" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=unicharset_extractor - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "unicharset_extractor.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "unicharset_extractor.mak" CFG="unicharset_extractor - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "unicharset_extractor - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "unicharset_extractor - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "unicharset_extractor - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 2 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "." +# PROP Intermediate_Dir "uce.Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "../ccutil" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__MSW32__" /D "_AFXDLL" /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "unicharset_extractor - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 2 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../bin.dbg" +# PROP Intermediate_Dir "uce.Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../ccutil" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__MSW32__" /D "_AFXDLL" /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "unicharset_extractor - Win32 Release" +# Name "unicharset_extractor - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Group "ccutil" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ccutil\clst.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\debugwin.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\errcode.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\globaloc.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\hashfn.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memblk.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memry.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\mfcpch.cpp +# ADD CPP /Yc"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\strngs.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tessopt.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tprintf.cpp +# ADD CPP /Yu"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unichar.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharmap.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharset.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\varable.cpp +# End Source File +# End Group +# Begin Source File + +SOURCE=.\unicharset_extractor.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\ccutil\basedir.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\bits16.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\clst.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\debugwin.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\elst.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\elst2.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\errcode.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\fileerr.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\globaloc.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\hashfn.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\host.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\hosthplb.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\lsterr.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\mainblk.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memblk.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memry.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memryerr.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\mfcpch.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\ndminx.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\notdll.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\nwmain.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\ocrclass.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\ocrshell.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\platform.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\scanutils.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\secname.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\serialis.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\stderr.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\strngs.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tessclas.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tessopt.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tprintf.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unichar.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharmap.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharset.h +# End Source File +# Begin Source File + +SOURCE=..\ccutil\varable.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/training/unicharset_extractor.vcproj b/training/unicharset_extractor.vcproj new file mode 100755 index 0000000000..3cc09c5d44 --- /dev/null +++ b/training/unicharset_extractor.vcproj @@ -0,0 +1,758 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/training/wordlist2dawg.dsp b/training/wordlist2dawg.dsp new file mode 100644 index 0000000000..90abc87cb5 --- /dev/null +++ b/training/wordlist2dawg.dsp @@ -0,0 +1,396 @@ +# Microsoft Developer Studio Project File - Name="wordlist2dawg" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=wordlist2dawg - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "wordlist2dawg.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "wordlist2dawg.mak" CFG="wordlist2dawg - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "wordlist2dawg - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "wordlist2dawg - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 2 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "." +# PROP Intermediate_Dir "w2d.Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "../ccutil" /I "../cutil" /I "../dict" /I "../viewer" /I "../ccstruct" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__MSW32__" /D "_AFXDLL" /Yu"mfcpch.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 ws2_32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 2 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../bin.dbg" +# PROP Intermediate_Dir "w2d.Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../ccutil" /I "../cutil" /I "../dict" /I "../viewer" /I "../ccstruct" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__MSW32__" /D "_AFXDLL" /Yu"mfcpch.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 ws2_32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "wordlist2dawg - Win32 Release" +# Name "wordlist2dawg - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Group "ccutil" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ccutil\clst.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\debugwin.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\errcode.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\globaloc.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\hashfn.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memblk.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\memry.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\mfcpch.cpp +# ADD CPP /Yc"mfcpch.h" +# End Source File +# Begin Source File + +SOURCE=..\ccutil\strngs.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tessopt.cpp +# End Source File +# Begin Source File + +SOURCE=..\ccutil\tprintf.cpp + +!IF "$(CFG)" == "wordlist2dawg - Win32 Release" + +# ADD CPP /Yu"mfcpch.h" + +!ELSEIF "$(CFG)" == "wordlist2dawg - Win32 Debug" + +# ADD CPP /Yu"mfcpch.h" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unichar.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharmap.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\unicharset.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\ccutil\varable.cpp +# End Source File +# End Group +# Begin Group "cutil" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\cutil\cutil.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\danerror.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\debug.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\emalloc.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\freelist.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\globals.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\listio.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\oldlist.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\structures.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\tordvars.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\cutil\variables.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# End Group +# Begin Group "dict" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\dict\context.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\dict\dawg.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\dict\lookdawg.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\dict\makedawg.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\dict\reduce.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\dict\trie.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# End Group +# Begin Group "ccstruct" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\ccstruct\callcpp.cpp +# End Source File +# End Group +# Begin Group "viewer" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\viewer\evntlst.cpp +# End Source File +# Begin Source File + +SOURCE=..\viewer\evnts.cpp +# End Source File +# Begin Source File + +SOURCE=..\viewer\grphics.cpp +# End Source File +# Begin Source File + +SOURCE=..\viewer\grphshm.cpp +# End Source File +# End Group +# Begin Source File + +SOURCE=.\wordlist2dawg.cpp +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\viewer\grphics.h +# End Source File +# Begin Source File + +SOURCE=..\dict\lookdawg.h +# End Source File +# Begin Source File + +SOURCE=..\dict\makedawg.h +# End Source File +# Begin Source File + +SOURCE=..\dict\reduce.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/training/wordlist2dawg.vcproj b/training/wordlist2dawg.vcproj new file mode 100755 index 0000000000..14786c70ce --- /dev/null +++ b/training/wordlist2dawg.vcproj @@ -0,0 +1,1142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +