---
.../toolchain/internal/content_in_doc_functor.hh | 5 +++++
scribo/src/Makefile.am | 3 ++-
scribo/src/contest/DAE-2011/Makefile.am | 11 ++++++++++-
scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc | 4 ++--
4 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/scribo/scribo/toolchain/internal/content_in_doc_functor.hh
b/scribo/scribo/toolchain/internal/content_in_doc_functor.hh
index 4308056..4f2c074 100644
--- a/scribo/scribo/toolchain/internal/content_in_doc_functor.hh
+++ b/scribo/scribo/toolchain/internal/content_in_doc_functor.hh
@@ -57,7 +57,10 @@
# include <scribo/preprocessing/denoise_fg.hh>
+# ifndef SCRIBO_NOCR
# include <scribo/text/recognition.hh>
+# endif // ! SCRIBO_NOCR
+
# include <scribo/text/merging.hh>
# include <scribo/text/link_lines.hh>
# include <scribo/text/paragraphs.hh>
@@ -437,6 +440,7 @@ namespace scribo
on_progress();
+# ifndef SCRIBO_NOCR
// Text recognition
if (enable_ocr)
{
@@ -446,6 +450,7 @@ namespace scribo
on_progress();
}
+# endif // ! SCRIBO_NOCR
// // Link text lines
// on_new_progress_label("Linking text lines");
diff --git a/scribo/src/Makefile.am b/scribo/src/Makefile.am
index 6ab5d7d..26f2ade 100644
--- a/scribo/src/Makefile.am
+++ b/scribo/src/Makefile.am
@@ -28,7 +28,8 @@ SUBDIRS = \
preprocessing \
table \
text \
- toolchain
+ toolchain \
+ util
diff --git a/scribo/src/contest/DAE-2011/Makefile.am
b/scribo/src/contest/DAE-2011/Makefile.am
index 09bccd7..d7d6b8d 100644
--- a/scribo/src/contest/DAE-2011/Makefile.am
+++ b/scribo/src/contest/DAE-2011/Makefile.am
@@ -24,7 +24,7 @@ noinst_PROGRAMS =
if HAVE_MAGICKXX
-noinst_PROGRAMS += content_in_hdoc_dae
+noinst_PROGRAMS += content_in_hdoc_dae content_in_doc_dae
content_in_hdoc_dae_SOURCES = content_in_hdoc_dae.cc
content_in_hdoc_dae_CPPFLAGS = $(AM_CPPFLAGS) \
@@ -34,4 +34,13 @@ content_in_hdoc_dae_LDFLAGS = $(AM_LDFLAGS) \
-lpthread \
$(MAGICKXX_LDFLAGS)
+content_in_doc_dae_SOURCES = content_in_doc_dae.cc
+content_in_doc_dae_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(TESSERACT_CPPFLAGS) \
+ -I$(top_builddir)
+content_in_doc_dae_LDFLAGS = $(AM_LDFLAGS) \
+ -lpthread \
+ $(MAGICKXX_LDFLAGS)
+
+
endif HAVE_MAGICKXX
\ No newline at end of file
diff --git a/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc
b/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc
index f13b8f6..5986142 100644
--- a/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc
+++ b/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
+// Copyright (C) 2011 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
@@ -24,7 +24,7 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-# define SCRIBO_NOCR
+#define SCRIBO_NOCR
#include <libgen.h>
#include <fstream>
--
1.5.6.5