mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +08:00
fix linux build, remove not used folder and spec file
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@979 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
60b4f8bc88
commit
8299e2a605
@ -24,14 +24,12 @@
|
|||||||
#if (__cplusplus >= 201103L) || defined(_MSC_VER) // Visual Studio
|
#if (__cplusplus >= 201103L) || defined(_MSC_VER) // Visual Studio
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#ifdef _MSC_VER
|
#define hash_map std::unordered_map
|
||||||
#if (_MSC_VER >= 1500 && _MSC_VER < 1600) // Visual Studio 2008
|
#if (_MSC_VER >= 1500 && _MSC_VER < 1600) // Visual Studio 2008
|
||||||
using namespace std::tr1;
|
using namespace std::tr1;
|
||||||
#else
|
#else // _MSC_VER
|
||||||
using std::unordered_map;
|
using std::unordered_map;
|
||||||
using std::unordered_set;
|
using std::unordered_set;
|
||||||
#endif
|
|
||||||
#else // _MSC_VER
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#define SmartPtr std::unique_ptr
|
#define SmartPtr std::unique_ptr
|
||||||
#define HAVE_UNIQUE_PTR
|
#define HAVE_UNIQUE_PTR
|
||||||
|
16
configure.ac
16
configure.ac
@ -53,6 +53,14 @@ GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
|
|||||||
AC_SUBST(GENERIC_RELEASE)
|
AC_SUBST(GENERIC_RELEASE)
|
||||||
AC_SUBST(GENERIC_VERSION)
|
AC_SUBST(GENERIC_VERSION)
|
||||||
|
|
||||||
|
# ----------------------------------------
|
||||||
|
# Automake configuration
|
||||||
|
# ----------------------------------------
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
AC_CONFIG_HEADERS(config_auto.h:config/config.h.in)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
# default conditional
|
# default conditional
|
||||||
AM_CONDITIONAL(MINGW, false)
|
AM_CONDITIONAL(MINGW, false)
|
||||||
AM_CONDITIONAL(GRAPHICS_DISABLED, false)
|
AM_CONDITIONAL(GRAPHICS_DISABLED, false)
|
||||||
@ -225,14 +233,6 @@ AC_PROG_CXX(g++)
|
|||||||
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
# ----------------------------------------
|
|
||||||
# Automake configuration
|
|
||||||
# ----------------------------------------
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
|
||||||
AC_CONFIG_HEADERS(config_auto.h:config/config.h.in)
|
|
||||||
AM_MAINTAINER_MODE
|
|
||||||
|
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
# Additional checking of compiler characteristics
|
# Additional checking of compiler characteristics
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
|
527
tesseract.spec
527
tesseract.spec
@ -1,527 +0,0 @@
|
|||||||
Name: tesseract
|
|
||||||
Version: 3.00
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Raw Open source OCR Engine
|
|
||||||
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
License: Apache License
|
|
||||||
URL: http://code.google.com/p/tesseract-ocr/
|
|
||||||
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
||||||
Source1: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.bul.tar.gz
|
|
||||||
Source2: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.cat.tar.gz
|
|
||||||
Source3: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ces.tar.gz
|
|
||||||
Source4: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.dan-frak.tar.gz
|
|
||||||
Source5: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.dan.tar.gz
|
|
||||||
Source6: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.deu.tar.gz
|
|
||||||
Source7: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ell.tar.gz
|
|
||||||
Source8: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.eng.tar.gz
|
|
||||||
Source9: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.fin.tar.gz
|
|
||||||
Source10: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.fra.tar.gz
|
|
||||||
Source11: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.hun.tar.gz
|
|
||||||
Source12: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.chi_sim.tar.gz
|
|
||||||
Source13: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.chi_tra.tar.gz
|
|
||||||
Source14: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ind.tar.gz
|
|
||||||
Source15: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ita.tar.gz
|
|
||||||
Source16: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.jpn.tar.gz
|
|
||||||
Source17: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.kor.tar.gz
|
|
||||||
Source18: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.lav.tar.gz
|
|
||||||
Source19: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.lit.tar.gz
|
|
||||||
Source20: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.nld.tar.gz
|
|
||||||
Source21: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.nor.tar.gz
|
|
||||||
Source22: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.pol.tar.gz
|
|
||||||
Source23: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.por.tar.gz
|
|
||||||
Source24: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ron.tar.gz
|
|
||||||
Source25: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.rus.tar.gz
|
|
||||||
Source26: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.slk.tar.gz
|
|
||||||
Source27: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.slv.tar.gz
|
|
||||||
Source28: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.spa.tar.gz
|
|
||||||
Source29: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.srp.tar.gz
|
|
||||||
Source30: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.swe.tar.gz
|
|
||||||
Source31: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tgl.tar.gz
|
|
||||||
Source32: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tha.tar.gz
|
|
||||||
Source33: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tur.tar.gz
|
|
||||||
Source34: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ukr.tar.gz
|
|
||||||
Source35: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.vie.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{_id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: libtiff-devel
|
|
||||||
BuildRequires: leptonlib-devel >= 1.60
|
|
||||||
|
|
||||||
Requires: leptonlib >= 1.60
|
|
||||||
Requires: tesseract-language >= %version
|
|
||||||
Provides: %name = %version-%release
|
|
||||||
Obsoletes: %name < 3.00
|
|
||||||
|
|
||||||
%description
|
|
||||||
A commercial quality OCR engine originally developed at HP between 1985 and
|
|
||||||
1995. In 1995, this engine was among the top 3 evaluated by UNLV. It was
|
|
||||||
open-sourced by HP and UNLV in 2005. From 2007 it is developed by Google.
|
|
||||||
|
|
||||||
%package devel
|
|
||||||
Summary: Development files for tesseract
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %name = %{version}
|
|
||||||
Provides: %name-devel = %version-%release
|
|
||||||
Obsoletes: %name-devel < 3.00
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
The %{name}-devel package contains header file for
|
|
||||||
developing applications that use %{name}.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -a 1
|
|
||||||
|
|
||||||
%build
|
|
||||||
./configure --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} --includedir=%{_includedir}
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc AUTHORS COPYING ChangeLog README
|
|
||||||
%{_bindir}/*
|
|
||||||
%{_datadir}/tessdata/configs
|
|
||||||
%{_datadir}/tessdata/tessconfigs
|
|
||||||
%{_libdir}/lib%{name}*.so*
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_includedir}/%{name}
|
|
||||||
%{_libdir}/
|
|
||||||
%exclude %_libdir/lib%{name}*.so*
|
|
||||||
|
|
||||||
%package bul
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Bulgarian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description bul
|
|
||||||
The %{name}-%{version}.bul package contains the data files required to recognize Bulgarian
|
|
||||||
|
|
||||||
%files bul
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/bul.traineddata
|
|
||||||
|
|
||||||
%package cat
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Catalan language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description cat
|
|
||||||
The %{name}-%{version}.cat package contains the data files required to recognize Catalan
|
|
||||||
|
|
||||||
%files cat
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/cat.traineddata
|
|
||||||
|
|
||||||
%package ces
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Czech language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ces
|
|
||||||
The %{name}-%{version}.ces package contains the data files required to recognize Czech
|
|
||||||
|
|
||||||
%files ces
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ces.traineddata
|
|
||||||
|
|
||||||
%package chi_sim
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Simplified Chinese language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description chi_sim
|
|
||||||
The %{name}-%{version}.chi_sim package contains the data files required to recognize Simplified Chinese
|
|
||||||
|
|
||||||
%files chi_sim
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/chi_sim.traineddata
|
|
||||||
|
|
||||||
%package chi_tra
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Traditional Chinese language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description chi_tra
|
|
||||||
The %{name}-%{version}.chi_tra package contains the data files required to recognize Traditional Chinese
|
|
||||||
|
|
||||||
%files chi_tra
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/chi_tra.traineddata
|
|
||||||
|
|
||||||
%package dan-frak
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Danish (Fraktur) language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description dan-frak
|
|
||||||
The %{name}-%{version}.dan-frak package contains the data files required to recognize Danish (Fraktur)
|
|
||||||
|
|
||||||
%files dan-frak
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/dan-frak.traineddata
|
|
||||||
|
|
||||||
%package dan
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Danish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description dan
|
|
||||||
The %{name}-%{version}.dan package contains the data files required to recognize Danish
|
|
||||||
|
|
||||||
%files dan
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/dan.traineddata
|
|
||||||
|
|
||||||
%package deu
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: German language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description deu
|
|
||||||
The %{name}-%{version}.deu package contains the data files required to recognize German
|
|
||||||
|
|
||||||
%files deu
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/deu.traineddata
|
|
||||||
|
|
||||||
%package ell
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Greek language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ell
|
|
||||||
The %{name}-%{version}.ell package contains the data files required to recognize Greek
|
|
||||||
|
|
||||||
%files ell
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ell.traineddata
|
|
||||||
|
|
||||||
%package eng
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: English language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description eng
|
|
||||||
The %{name}-%{version}.eng package contains the data files required to recognize English
|
|
||||||
|
|
||||||
%files eng
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/eng.traineddata
|
|
||||||
|
|
||||||
%package fin
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Finnish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description fin
|
|
||||||
The %{name}-%{version}.fin package contains the data files required to recognize Finnish
|
|
||||||
|
|
||||||
%files fin
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/fin.traineddata
|
|
||||||
|
|
||||||
%package fra
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: French language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description fra
|
|
||||||
The %{name}-%{version}.fra package contains the data files required to recognize French
|
|
||||||
|
|
||||||
%files fra
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/fra.traineddata
|
|
||||||
|
|
||||||
%package hun
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Hungarian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description hun
|
|
||||||
The %{name}-%{version}.hun package contains the data files required to recognize Hungarian
|
|
||||||
|
|
||||||
%files hun
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/hun.traineddata
|
|
||||||
|
|
||||||
%package ind
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Indonesian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ind
|
|
||||||
The %{name}-%{version}.ind package contains the data files required to recognize Indonesian
|
|
||||||
|
|
||||||
%files ind
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ind.traineddata
|
|
||||||
|
|
||||||
%package ita
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Italian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ita
|
|
||||||
The %{name}-%{version}.ita package contains the data files required to recognize Italian
|
|
||||||
|
|
||||||
%files ita
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ita.traineddata
|
|
||||||
|
|
||||||
%package jpn
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Japanese language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description jpn
|
|
||||||
The %{name}-%{version}.jpn package contains the data files required to recognize Japanese
|
|
||||||
|
|
||||||
%files jpn
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/jpn.traineddata
|
|
||||||
|
|
||||||
%package kor
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Korean language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description kor
|
|
||||||
The %{name}-%{version}.kor package contains the data files required to recognize Korean
|
|
||||||
|
|
||||||
%files kor
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/kor.traineddata
|
|
||||||
|
|
||||||
%package lav
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Latvian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description lav
|
|
||||||
The %{name}-%{version}.lav package contains the data files required to recognize Latvian
|
|
||||||
|
|
||||||
%files lav
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/lav.traineddata
|
|
||||||
|
|
||||||
%package lit
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Lithuanian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description lit
|
|
||||||
The %{name}-%{version}.lit package contains the data files required to recognize Lithuanian
|
|
||||||
|
|
||||||
%files lit
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/lit.traineddata
|
|
||||||
|
|
||||||
%package nld
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Dutch language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description nld
|
|
||||||
The %{name}-%{version}.nld package contains the data files required to recognize Dutch
|
|
||||||
|
|
||||||
%files nld
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/nld.traineddata
|
|
||||||
|
|
||||||
%package nor
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Norwegian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description nor
|
|
||||||
The %{name}-%{version}.nor package contains the data files required to recognize Norwegian
|
|
||||||
|
|
||||||
%files nor
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/nor.traineddata
|
|
||||||
|
|
||||||
%package pol
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Polish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description pol
|
|
||||||
The %{name}-%{version}.pol package contains the data files required to recognize Polish
|
|
||||||
|
|
||||||
%files pol
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/pol.traineddata
|
|
||||||
|
|
||||||
%package por
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Portuguese language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description por
|
|
||||||
The %{name}-%{version}.por package contains the data files required to recognize Portuguese
|
|
||||||
|
|
||||||
%files por
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/por.traineddata
|
|
||||||
|
|
||||||
%package ron
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Romanian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ron
|
|
||||||
The %{name}-%{version}.ron package contains the data files required to recognize Romanian
|
|
||||||
|
|
||||||
%files ron
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ron.traineddata
|
|
||||||
|
|
||||||
%package rus
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Russian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description rus
|
|
||||||
The %{name}-%{version}.rus package contains the data files required to recognize Russian
|
|
||||||
|
|
||||||
%files rus
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/rus.traineddata
|
|
||||||
|
|
||||||
%package slk
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Slovakian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description slk
|
|
||||||
The %{name}-%{version}.slk package contains the data files required to recognize Slovakian
|
|
||||||
|
|
||||||
%files slk
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/slk.traineddata
|
|
||||||
|
|
||||||
%package slv
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Slovenian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description slv
|
|
||||||
The %{name}-%{version}.slv package contains the data files required to recognize Slovenian
|
|
||||||
|
|
||||||
%files slv
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/slv.traineddata
|
|
||||||
|
|
||||||
%package spa
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Spanish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description spa
|
|
||||||
The %{name}-%{version}.spa package contains the data files required to recognize Spanish
|
|
||||||
|
|
||||||
%files spa
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/spa.traineddata
|
|
||||||
|
|
||||||
%package srp
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Serbian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description srp
|
|
||||||
The %{name}-%{version}.srp package contains the data files required to recognize Serbian
|
|
||||||
|
|
||||||
%files srp
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/srp.traineddata
|
|
||||||
|
|
||||||
%package swe
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Swedish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description swe
|
|
||||||
The %{name}-%{version}.swe package contains the data files required to recognize Swedish
|
|
||||||
|
|
||||||
%files swe
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/swe.traineddata
|
|
||||||
|
|
||||||
%package tgl
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Tagalog language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description tgl
|
|
||||||
The %{name}-%{version}.tgl package contains the data files required to recognize Tagalog
|
|
||||||
|
|
||||||
%files tgl
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/tgl.traineddata
|
|
||||||
|
|
||||||
%package tha
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Thai language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description tha
|
|
||||||
The %{name}-%{version}.tha package contains the data files required to recognize Thai
|
|
||||||
|
|
||||||
%files tha
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/tha.traineddata
|
|
||||||
|
|
||||||
%package tur
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Turkish language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description tur
|
|
||||||
The %{name}-%{version}.tur package contains the data files required to recognize Turkish
|
|
||||||
|
|
||||||
%files tur
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/tur.traineddata
|
|
||||||
|
|
||||||
%package ukr
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Ukrainian language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description ukr
|
|
||||||
The %{name}-%{version}.ukr package contains the data files required to recognize Ukrainian
|
|
||||||
|
|
||||||
%files ukr
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/ukr.traineddata
|
|
||||||
|
|
||||||
%package vie
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
Summary: Vietnamese language pack for tesseract
|
|
||||||
Requires: %name >= %{version}
|
|
||||||
Provides: tesseract-language = %{version}
|
|
||||||
%description vie
|
|
||||||
The %{name}-%{version}.vie package contains the data files required to recognize Vietnamese
|
|
||||||
|
|
||||||
%files vie
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_datadir}/tessdata/vie.traineddata
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Sun Sep 26 2010 Zdenko Podobny <zdenop@gmail.com>
|
|
||||||
- Addaption for release 3.00
|
|
||||||
|
|
||||||
* Mon Jul 16 2007 Ray Smith
|
|
||||||
- Hacked to add the new langeuages as separate language packs.
|
|
||||||
|
|
||||||
* Fri May 25 2007 Andrew Ziem
|
|
||||||
- This is a rough draft that may only work on Fedora Core 6.
|
|
@ -21,6 +21,10 @@ noinst_HEADERS = \
|
|||||||
|
|
||||||
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
||||||
|
|
||||||
|
libtesseract_training_la_LIBADD = \
|
||||||
|
../cutil/libtesseract_cutil.la
|
||||||
|
# ../api/libtesseract.la
|
||||||
|
|
||||||
libtesseract_training_la_SOURCES = \
|
libtesseract_training_la_SOURCES = \
|
||||||
boxchar.cpp commandlineflags.cpp commontraining.cpp degradeimage.cpp \
|
boxchar.cpp commandlineflags.cpp commontraining.cpp degradeimage.cpp \
|
||||||
fileio.cpp ligature_table.cpp normstrngs.cpp pango_font_info.cpp \
|
fileio.cpp ligature_table.cpp normstrngs.cpp pango_font_info.cpp \
|
||||||
@ -227,7 +231,8 @@ else
|
|||||||
text2image_LDADD += \
|
text2image_LDADD += \
|
||||||
../api/libtesseract.la
|
../api/libtesseract.la
|
||||||
endif
|
endif
|
||||||
text2image_LDADD += -licuuc -licui18n -lpango-1.0 -lpangocairo-1.0 -lgobject-2.0 -lglib-2.0 -lcairo
|
text2image_LDADD += -licuuc -licui18n -lpango-1.0 -lpangocairo-1.0 \
|
||||||
|
-lgobject-2.0 -lglib-2.0 -lcairo -lpangoft2-1.0
|
||||||
|
|
||||||
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
||||||
#unicharset_extractor_LDFLAGS = -static
|
#unicharset_extractor_LDFLAGS = -static
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#ifdef USE_STD_NAMESPACE
|
#ifdef USE_STD_NAMESPACE
|
||||||
using std::string;
|
using std::string;
|
||||||
|
Loading…
Reference in New Issue
Block a user