Skip to content

Commit d86d520

Browse files
committed
Remove tab character in source files
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent d59f14c commit d86d520

35 files changed

+119
-141
lines changed

Makefile.am

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ SUBDIRS = src/arch src/ccutil src/viewer src/cutil src/opencl src/ccstruct
2222
SUBDIRS += src/dict src/classify src/wordrec src/textord src/lstm
2323
SUBDIRS += src/ccmain src/api . tessdata doc unittest
2424

25-
EXTRA_DIST = README.md\
26-
aclocal.m4 config configure.ac autogen.sh \
27-
tesseract.pc.in $(TRAINING_SUBDIR) java doc langtests unlvtests
25+
EXTRA_DIST = README.md
26+
EXTRA_DIST += aclocal.m4 config configure.ac autogen.sh
27+
EXTRA_DIST += tesseract.pc.in $(TRAINING_SUBDIR) java doc langtests unlvtests
2828

2929
DIST_SUBDIRS = $(SUBDIRS) $(TRAINING_SUBDIR)
3030

src/api/baseapi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void TessBaseAPI::SetImage(Pix* pix) {
617617
pixSetSpp(p1, 3);
618618
pix = pixCopy(nullptr, p1);
619619
pixDestroy(&p1);
620-
}
620+
}
621621
thresholder_->SetImage(pix);
622622
SetInputImage(thresholder_->GetPixRect());
623623
}

src/classify/blobclass.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: blobclass.h
3-
** Purpose: Interface to high level classification and training.
4-
** Author: Dan Johnson
5-
** History: 5/29/89, DSJ, Created.
2+
** Filename: blobclass.h
3+
** Purpose: Interface to high level classification and training.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,8 +14,9 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
18-
#ifndef BLOBCLASS_H
19-
#define BLOBCLASS_H
17+
18+
#ifndef BLOBCLASS_H
19+
#define BLOBCLASS_H
2020

2121
/**----------------------------------------------------------------------------
2222
Include Files and Type Defines

src/classify/cutoffs.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: cutoffs.h
3-
** Purpose: Routines to manipulate an array of class cutoffs.
4-
** Author: Dan Johnson
5-
** History: Wed Feb 20 09:34:20 1991, DSJ, Created.
2+
** Filename: cutoffs.h
3+
** Purpose: Routines to manipulate an array of class cutoffs.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,6 +14,7 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
17+
1818
#ifndef CUTOFFS_H
1919
#define CUTOFFS_H
2020

src/classify/featdefs.h

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/******************************************************************************
2-
** Filename: featdefs.h
3-
** Purpose: Definitions of currently defined feature types.
4-
** Author: Dan Johnson
5-
** History: Mon May 21 08:28:01 1990, DSJ, Created.
2+
** Filename: featdefs.h
3+
** Purpose: Definitions of currently defined feature types.
4+
** Author: Dan Johnson
5+
** History: Mon May 21 08:28:01 1990, DSJ, Created.
66
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
7+
** (c) Copyright Hewlett-Packard Company, 1988.
88
** Licensed under the Apache License, Version 2.0 (the "License");
99
** you may not use this file except in compliance with the License.
1010
** You may obtain a copy of the License at
@@ -15,8 +15,9 @@
1515
** See the License for the specific language governing permissions and
1616
** limitations under the License.
1717
******************************************************************************/
18-
#ifndef FEATDEFS_H
19-
#define FEATDEFS_H
18+
19+
#ifndef FEATDEFS_H
20+
#define FEATDEFS_H
2021

2122
/**----------------------------------------------------------------------------
2223
Include Files and Type Defines

src/classify/float2int.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: float2int.h
3-
** Purpose: Routines for converting float features to int features
4-
** Author: Dan Johnson
5-
** History: Wed Mar 13 08:06:41 1991, DSJ, Created.
2+
** Filename: float2int.h
3+
** Purpose: Routines for converting float features to int features
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,6 +14,7 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
17+
1818
#ifndef FLOAT2INT_H
1919
#define FLOAT2INT_H
2020

src/classify/mf.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: mf.h
3-
** Purpose: Micro-feature interface to flexible feature extractor.
4-
** Author: Dan Johnson
5-
** History: Thu May 24 09:39:56 1990, DSJ, Created.
2+
** Filename: mf.h
3+
** Purpose: Micro-feature interface to flexible feature extractor.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,8 +14,9 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
18-
#ifndef MF_H
19-
#define MF_H
17+
18+
#ifndef MF_H
19+
#define MF_H
2020

2121
/**----------------------------------------------------------------------------
2222
Include Files and Type Defines

src/classify/normmatch.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: normmatch.h
3-
** Purpose: Simple matcher based on character normalization features.
4-
** Author: Dan Johnson
5-
** History: Thu Dec 20 08:55:05 1990, DSJ, Created.
2+
** Filename: normmatch.h
3+
** Purpose: Simple matcher based on character normalization features.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,6 +14,7 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
17+
1818
#ifndef NORMMATCH_H
1919
#define NORMMATCH_H
2020

src/classify/outfeat.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: outfeat.h
3-
** Purpose: Definition of outline features.
4-
** Author: Dan Johnson
5-
** History: 11/13/90, DSJ, Created.
2+
** Filename: outfeat.h
3+
** Purpose: Definition of outline features.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,8 +14,9 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
18-
#ifndef OUTFEAT_H
19-
#define OUTFEAT_H
17+
18+
#ifndef OUTFEAT_H
19+
#define OUTFEAT_H
2020

2121
/**----------------------------------------------------------------------------
2222
Include Files and Type Defines

src/cutil/bitvec.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: bitvec.c
3-
** Purpose: Routines for manipulating bit vectors
4-
** Author: Dan Johnson
5-
** History: Thu Mar 15 10:37:27 1990, DSJ, Created.
2+
** Filename: bitvec.c
3+
** Purpose: Routines for manipulating bit vectors
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -74,7 +73,7 @@ void FreeBitVector(BIT_VECTOR BitVector) {
7473
* hold the specified number of bits.
7574
*
7675
* Globals:
77-
* - BitVectorCount number of bit vectors allocated
76+
* - BitVectorCount number of bit vectors allocated
7877
*
7978
* @param NumBits number of bits in new bit vector
8079
*

src/cutil/emalloc.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/******************************************************************************
2-
** Filename: emalloc.h
3-
** Purpose: Definition of memory allocation routines.
4-
** Author: Dan Johnson
5-
** History: 4/3/89, DSJ, Created.
2+
** Filename: emalloc.h
3+
** Purpose: Definition of memory allocation routines.
4+
** Author: Dan Johnson
65
**
7-
** (c) Copyright Hewlett-Packard Company, 1988.
6+
** (c) Copyright Hewlett-Packard Company, 1988.
87
** Licensed under the Apache License, Version 2.0 (the "License");
98
** you may not use this file except in compliance with the License.
109
** You may obtain a copy of the License at
@@ -15,8 +14,9 @@
1514
** See the License for the specific language governing permissions and
1615
** limitations under the License.
1716
******************************************************************************/
18-
#ifndef EMALLOC_H
19-
#define EMALLOC_H
17+
18+
#ifndef EMALLOC_H
19+
#define EMALLOC_H
2020

2121
void *Emalloc(int Size);
2222

src/dict/hyphen.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
/* -*-C-*-
22
********************************************************************************
3-
* File: hyphen.cpp (Formerly hyphen.c)
3+
* File: hyphen.cpp (Formerly hyphen.c)
44
* Description: Functions for maintaining information about hyphenated words.
55
* Author: Mark Seaman, OCR Technology
6-
* Created: Fri Oct 16 14:37:00 1987
7-
* Modified: Thu Mar 14 11:09:43 1991 (Mark Seaman) marks@hpgrlt
8-
* Language: C
9-
* Package: N/A
106
* Status: Reusable Software Component
117
*
128
* (c) Copyright 1987, Hewlett-Packard Company.

src/opencl/openclwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ ds_device OpenclDevice::getDeviceSelection() {
25622562
int bestDeviceIdx = -1;
25632563
for (unsigned d = 0; d < profile->numDevices; d++) {
25642564
ds_device device = profile->devices[d];
2565-
if (device.score == nullptr) continue;
2565+
if (device.score == nullptr) continue;
25662566
TessDeviceScore score = *device.score;
25672567

25682568
float time = score.time;

src/textord/drawtord.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: drawtord.cpp (Formerly drawto.c)
33
* Description: Draw things to do with textord.
4-
* Author: Ray Smith
5-
* Created: Thu Jul 30 15:40:57 BST 1992
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1992, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -181,13 +180,13 @@ int32_t thresholds[] //for drop out
181180
if (occupation[line_index - min_y] < thresholds[line_index - min_y]) {
182181
if (colour != ScrollView::BLUE) {
183182
colour = ScrollView::BLUE;
184-
to_win->Pen(colour);
183+
to_win->Pen(colour);
185184
}
186185
}
187186
else {
188187
if (colour != ScrollView::WHITE) {
189188
colour = ScrollView::WHITE;
190-
to_win->Pen(colour);
189+
to_win->Pen(colour);
191190
}
192191
}
193192
to_win->DrawTo(fleft + occupation[line_index - min_y] / 10.0, (float) line_index);

src/textord/drawtord.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: drawtord.h (Formerly drawto.h)
33
* Description: Draw things to do with textord.
4-
* Author: Ray Smith
5-
* Created: Thu Jul 30 15:40:57 BST 1992
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1992, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/edgblob.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: edgblob.h (Formerly edgeloop.h)
33
* Description: Functions to clean up an outline before approximation.
4-
* Author: Ray Smith
5-
* Created: Tue Mar 26 16:56:25 GMT 1991
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1991, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/fpchop.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: fpchop.h (Formerly fp_chop.h)
33
* Description: Code to chop fixed pitch text into character cells.
4-
* Author: Ray Smith
5-
* Created: Thu Sep 16 11:14:15 BST 1993
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1993, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/makerow.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: makerow.h (Formerly makerows.h)
33
* Description: Code to arrange blobs into rows of text.
4-
* Author: Ray Smith
5-
* Created: Mon Sep 21 14:34:48 BST 1992
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1992, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/oldbasel.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: oldbasel.h (Formerly oldbl.h)
33
* Description: A re-implementation of the old baseline algorithm.
4-
* Author: Ray Smith
5-
* Created: Wed Oct 6 09:41:48 BST 1993
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1993, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/scanedg.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: scanedg.cpp (Formerly scanedge.c)
33
* Description: Raster scanning crack based edge extractor.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 22 16:11:50 GMT 1991
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1991, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/scanedg.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: scanedg.h (Formerly scanedge.h)
33
* Description: Raster scanning crack based edge extractor.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 22 16:11:50 GMT 1991
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1991, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/sortflts.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: sortflts.cpp (Formerly sfloats.c)
33
* Description: Code to maintain a sorted list of floats.
4-
* Author: Ray Smith
5-
* Created: Mon Oct 4 16:15:40 BST 1993
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1993, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/sortflts.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: sortflts.h (Formerly sfloats.h)
33
* Description: Code to maintain a sorted list of floats.
4-
* Author: Ray Smith
5-
* Created: Mon Oct 4 16:15:40 BST 1993
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1993, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

src/textord/topitch.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**********************************************************************
22
* File: topitch.h (Formerly to_pitch.h)
33
* Description: Code to determine fixed pitchness and the pitch if fixed.
4-
* Author: Ray Smith
5-
* Created: Tue Aug 24 16:57:29 BST 1993
4+
* Author: Ray Smith
65
*
76
* (C) Copyright 1993, Hewlett-Packard Ltd.
87
** Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)