diff --git a/ChangeLog b/ChangeLog index 24af7420a2..b1e1666b60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -39,3 +39,17 @@ August 27 2007 - V2.01 Removed svn files from tarball. Added new functions to tessdll. Increased maximum utf8 string in a classification result to 8. + +January 23 2008 - V2.02 + Improvements to clustering, training and classifier. + Major internationalization improvements for large-character-set + languages, eg Kannada. + Removed some compiler warnings. + Added multipage tiff support for training and running. + Updated graphics output to talk to new java-based viewer. + Added ability to save n-best lists. + Added leptonica support for more file types. + Improved Init/End to make them safe. + Reduced memory use of dictionaries. + Added some new APIs to TessBaseAPI. + diff --git a/Makefile.am b/Makefile.am index 8e3d05ed38..4548cc4e3e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ # TODO(luc) Add 'doc' to this list when ready -SUBDIRS = ccstruct ccutil classify cutil dict display image textord viewer wordrec ccmain training tessdata testing dlltest +SUBDIRS = ccstruct ccutil classify cutil dict pageseg image textord viewer wordrec ccmain training tessdata testing dlltest java EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes tesseract.spec config \ tesseract.dsp tesseract.dsw tesseract.vcproj tesseract.sln \ diff --git a/Makefile.in b/Makefile.in index 800b25be4f..9ec12549c6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -76,7 +76,7 @@ PACKAGE_YEAR = @PACKAGE_YEAR@ RANLIB = @RANLIB@ VERSION = @VERSION@ -SUBDIRS = ccstruct ccutil classify cutil dict display image textord viewer wordrec ccmain training tessdata testing dlltest +SUBDIRS = ccstruct ccutil classify cutil dict pageseg image textord viewer wordrec ccmain training tessdata testing dlltest java EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes tesseract.spec config tesseract.dsp tesseract.dsw tesseract.vcproj tesseract.sln StdAfx.cpp StdAfx.h tessdll.cpp tessdll.h tessdll.dsp tessdll.vcproj diff --git a/ReleaseNotes b/ReleaseNotes index e0248ea540..2d9b7fb614 100644 --- a/ReleaseNotes +++ b/ReleaseNotes @@ -1,3 +1,16 @@ +Tesseract release notes January 23 2008 - V2.02 +Improvements to clustering, training and classifier. +Major internationalization improvements for large-character-set +languages, eg Kannada. +Removed some compiler warnings. +Added multipage tiff support for training and running. +Updated graphics output to talk to new java-based viewer. +Added ability to save n-best lists. +Added leptonica support for more file types. +Improved Init/End to make them safe. +Reduced memory use of dictionaries. +Added some new APIs to TessBaseAPI. + Tesseract release notes August 27 2007 - V2.01 Fixed UTF8 input problems with box file reader. Fixed various infinite loops and crashes in dawg code. diff --git a/config/config.h.in b/config/config.h.in index fdb5fdeba0..80e56213d4 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -24,9 +24,24 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the `jpeg' library (-ljpeg). */ +#undef HAVE_LIBJPEG + +/* Define to 1 if you have the `lept' library (-llept). */ +#undef HAVE_LIBLEPT + +/* Define to 1 if you have the `png' library (-lpng). */ +#undef HAVE_LIBPNG + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#undef HAVE_LIBPTHREAD + /* Define if you have the www.libtiff.org LIBTIFF library. */ #undef HAVE_LIBTIFF +/* Define to 1 if you have the `z' library (-lz). */ +#undef HAVE_LIBZ + /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H diff --git a/configure b/configure index c719d2e0b0..c07c380d56 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #! /bin/sh # From configure.ac Id: configure.ac. # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for tesseract 2.01. +# Generated by GNU Autoconf 2.59 for tesseract 2.02. # # Report bugs to . # @@ -270,8 +270,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='tesseract' PACKAGE_TARNAME='tesseract' -PACKAGE_VERSION='2.01' -PACKAGE_STRING='tesseract 2.01' +PACKAGE_VERSION='2.02' +PACKAGE_STRING='tesseract 2.02' PACKAGE_BUGREPORT='theraysmith@gmail.com' ac_unique_file="ccmain/tesseractmain.cpp" @@ -798,7 +798,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures tesseract 2.01 to adapt to many kinds of systems. +\`configure' configures tesseract 2.02 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -864,7 +864,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of tesseract 2.01:";; + short | recursive ) echo "Configuration of tesseract 2.02:";; esac cat <<\_ACEOF @@ -998,7 +998,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -tesseract configure 2.01 +tesseract configure 2.02 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -1012,7 +1012,7 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by tesseract $as_me 2.01, which was +It was created by tesseract $as_me 2.02, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -3540,11 +3540,376 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu #AC_CHECK_LIB(m,sqrt) +echo "$as_me:$LINENO: checking for deflate in -lz" >&5 +echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 +if test "${ac_cv_lib_z_deflate+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char deflate (); +int +main () +{ +deflate (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_z_deflate=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_z_deflate=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 +echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 +if test $ac_cv_lib_z_deflate = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBZ 1 +_ACEOF + + LIBS="-lz $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for png_read_png in -lpng" >&5 +echo $ECHO_N "checking for png_read_png in -lpng... $ECHO_C" >&6 +if test "${ac_cv_lib_png_png_read_png+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char png_read_png (); +int +main () +{ +png_read_png (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_png_png_read_png=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_png_png_read_png=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_png" >&5 +echo "${ECHO_T}$ac_cv_lib_png_png_read_png" >&6 +if test $ac_cv_lib_png_png_read_png = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPNG 1 +_ACEOF + + LIBS="-lpng $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for jpeg_read_scanlines in -ljpeg" >&5 +echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6 +if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char jpeg_read_scanlines (); +int +main () +{ +jpeg_read_scanlines (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_jpeg_jpeg_read_scanlines=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_jpeg_jpeg_read_scanlines=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 +echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6 +if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBJPEG 1 +_ACEOF + + LIBS="-ljpeg $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for pixCreate in -llept" >&5 +echo $ECHO_N "checking for pixCreate in -llept... $ECHO_C" >&6 +if test "${ac_cv_lib_lept_pixCreate+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llept $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pixCreate (); +int +main () +{ +pixCreate (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_lept_pixCreate=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_lept_pixCreate=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_lept_pixCreate" >&5 +echo "${ECHO_T}$ac_cv_lib_lept_pixCreate" >&6 +if test $ac_cv_lib_lept_pixCreate = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBLEPT 1 +_ACEOF + + LIBS="-llept $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 +echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6 +if test "${ac_cv_lib_pthread_sem_init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sem_init (); +int +main () +{ +sem_init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_pthread_sem_init=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_pthread_sem_init=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 +echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6 +if test $ac_cv_lib_pthread_sem_init = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPTHREAD 1 +_ACEOF + + LIBS="-lpthread $LIBS" + +fi + + + # ---------------------------------------- # Checks for header files. # ---------------------------------------- - ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6919,7 +7284,7 @@ fi ac_config_files="$ac_config_files dict/Makefile" - ac_config_files="$ac_config_files display/Makefile" + ac_config_files="$ac_config_files pageseg/Makefile" ac_config_files="$ac_config_files image/Makefile" @@ -6941,6 +7306,8 @@ fi ac_config_files="$ac_config_files dlltest/Makefile" + ac_config_files="$ac_config_files java/Makefile" + # AC_CONFIG_FILES(doc/Doxyfile) # AC_CONFIG_FILES(doc/header.html) # AC_CONFIG_FILES(doc/footer.html) @@ -7309,7 +7676,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by tesseract $as_me 2.01, which was +This file was extended by tesseract $as_me 2.02, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7372,7 +7739,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -tesseract config.status 2.01 +tesseract config.status 2.02 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" @@ -7489,7 +7856,7 @@ do "classify/Makefile" ) CONFIG_FILES="$CONFIG_FILES classify/Makefile" ;; "cutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES cutil/Makefile" ;; "dict/Makefile" ) CONFIG_FILES="$CONFIG_FILES dict/Makefile" ;; - "display/Makefile" ) CONFIG_FILES="$CONFIG_FILES display/Makefile" ;; + "pageseg/Makefile" ) CONFIG_FILES="$CONFIG_FILES pageseg/Makefile" ;; "image/Makefile" ) CONFIG_FILES="$CONFIG_FILES image/Makefile" ;; "textord/Makefile" ) CONFIG_FILES="$CONFIG_FILES textord/Makefile" ;; "viewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES viewer/Makefile" ;; @@ -7500,6 +7867,7 @@ do "tessdata/tessconfigs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tessdata/tessconfigs/Makefile" ;; "testing/Makefile" ) CONFIG_FILES="$CONFIG_FILES testing/Makefile" ;; "dlltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlltest/Makefile" ;; + "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h:config/config.h.in" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 diff --git a/configure.ac b/configure.ac index 6a3623fe61..553c3a8790 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ # ---------------------------------------- AC_PREREQ(2.50) -AC_INIT(tesseract, 2.01, theraysmith@gmail.com) +AC_INIT(tesseract, 2.02, theraysmith@gmail.com) AC_REVISION($Id: configure.ac,v 1.4 2007/02/02 22:38:17 theraysmith Exp $) AC_CONFIG_AUX_DIR(config) AC_CONFIG_SRCDIR(ccmain/tesseractmain.cpp) @@ -213,6 +213,11 @@ AC_LANG_CPLUSPLUS # which causes unnecessary warnings with Visual C++. # Comment it out for now. #AC_CHECK_LIB(m,sqrt) +AC_CHECK_LIB(z,deflate) +AC_CHECK_LIB(png,png_read_png) +AC_CHECK_LIB(jpeg,jpeg_read_scanlines) +AC_CHECK_LIB(lept,pixCreate) +AC_CHECK_LIB(pthread,sem_init) # ---------------------------------------- @@ -289,7 +294,7 @@ AC_CONFIG_FILES(ccutil/Makefile) AC_CONFIG_FILES(classify/Makefile) AC_CONFIG_FILES(cutil/Makefile) AC_CONFIG_FILES(dict/Makefile) -AC_CONFIG_FILES(display/Makefile) +AC_CONFIG_FILES(pageseg/Makefile) AC_CONFIG_FILES(image/Makefile) AC_CONFIG_FILES(textord/Makefile) AC_CONFIG_FILES(viewer/Makefile) @@ -300,6 +305,7 @@ AC_CONFIG_FILES(tessdata/configs/Makefile) AC_CONFIG_FILES(tessdata/tessconfigs/Makefile) AC_CONFIG_FILES(testing/Makefile) AC_CONFIG_FILES(dlltest/Makefile) +AC_CONFIG_FILES(java/Makefile) # AC_CONFIG_FILES(doc/Doxyfile) # AC_CONFIG_FILES(doc/header.html) # AC_CONFIG_FILES(doc/footer.html) diff --git a/makemoredists b/makemoredists index 9d1f5892c6..2d3e337076 100755 --- a/makemoredists +++ b/makemoredists @@ -2,7 +2,7 @@ winlist="tessdll.dll tessdll.lib tesseract.exe dlltest.exe training/cnTraining.exe training/mfTraining.exe training/unicharset_extractor.exe training/wordlist2dawg.exe" ver=`ls -1rt *[0-9].tar.gz |tail -1` ver=${ver%.tar.gz} -for l in eng deu fra ita spa nld +for l in eng deu fra ita spa nld por deu-f vie kan do chmod 644 tessdata/$l.* tar --group root --owner root -chozf $ver.$l.tar.gz tessdata/$l.* diff --git a/testing/Makefile b/testing/Makefile deleted file mode 100644 index ca19311618..0000000000 --- a/testing/Makefile +++ /dev/null @@ -1,185 +0,0 @@ -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am - -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = /bin/sh - -srcdir = . -top_srcdir = .. - -prefix = /usr/local -exec_prefix = ${prefix} - -bindir = ${exec_prefix}/bin -sbindir = ${exec_prefix}/sbin -libexecdir = ${exec_prefix}/libexec -datadir = ${prefix}/share -sysconfdir = ${prefix}/etc -sharedstatedir = ${prefix}/com -localstatedir = ${prefix}/var -libdir = ${exec_prefix}/lib -infodir = ${prefix}/info -mandir = ${prefix}/man -includedir = ${prefix}/include/tesseract -oldincludedir = /usr/include - -DESTDIR = - -pkgdatadir = $(datadir)/ -pkglibdir = $(libdir)/ -pkgincludedir = $(includedir)/ - -top_builddir = .. - -ACLOCAL = aclocal-1.4 -AUTOCONF = autoconf -AUTOMAKE = automake-1.4 -AUTOHEADER = autoheader - -INSTALL = /usr/bin/install -c -INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_SCRIPT = ${INSTALL} -transform = s,x,x, - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = -host_triplet = x86_64-unknown-linux-gnu -CC = gcc -CXX = g++ -HAVE_LIB = @HAVE_LIB@ -LIB = @LIB@ -LTLIB = @LTLIB@ -MAINT = # -MAKEINFO = /home/rays/src/opensrc/tesseract-ocr/config/missing makeinfo -PACKAGE = -PACKAGE_DATE = 07/2007 -PACKAGE_NAME = tesseract -PACKAGE_VERSION = 2.01 -PACKAGE_YEAR = 2007 -RANLIB = ranlib -VERSION = - -EXTRA_DIST = README counttestset.sh reorgdata.sh runalltests.sh runtestset.sh reports/1995.bus.3B.sum reports/1995.doe3.3B.sum reports/1995.mag.3B.sum reports/1995.news.3B.sum -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs -CONFIG_HEADER = ../config_auto.h -CONFIG_CLEAN_FILES = -DIST_COMMON = README Makefile.am Makefile.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP_ENV = --best -all: all-redirect -.SUFFIXES: -$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --gnu testing/Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -tags: TAGS -TAGS: - - -distdir = $(top_builddir)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(subdir) - -subdir = testing - -distdir: $(DISTFILES) - here=`cd $(top_builddir) && pwd`; \ - top_distdir=`cd $(top_distdir) && pwd`; \ - distdir=`cd $(distdir) && pwd`; \ - cd $(top_srcdir) \ - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu testing/Makefile - $(mkinstalldirs) $(distdir)/reports - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - if test -d $$d/$$file; then \ - cp -pr $$d/$$file $(distdir)/$$file; \ - else \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file || :; \ - fi; \ - done -info-am: -info: info-am -dvi-am: -dvi: dvi-am -check-am: all-am -check: check-am -installcheck-am: -installcheck: installcheck-am -install-exec-am: -install-exec: install-exec-am - -install-data-am: -install-data: install-data-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -install: install-am -uninstall-am: -uninstall: uninstall-am -all-am: Makefile -all-redirect: all-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install -installdirs: - - -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -maintainer-clean-generic: -mostlyclean-am: mostlyclean-generic - -mostlyclean: mostlyclean-am - -clean-am: clean-generic mostlyclean-am - -clean: clean-am - -distclean-am: distclean-generic clean-am - -distclean: distclean-am - -maintainer-clean-am: maintainer-clean-generic distclean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -maintainer-clean: maintainer-clean-am - -.PHONY: tags distdir info-am info dvi-am dvi check check-am \ -installcheck-am installcheck install-exec-am install-exec \ -install-data-am install-data install-am install uninstall-am uninstall \ -all-redirect all-am all installdirs mostlyclean-generic \ -distclean-generic clean-generic maintainer-clean-generic clean \ -mostlyclean distclean maintainer-clean - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: