Fix file endings

Text files should end with a LF, but not additional empty lines.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-04-25 19:33:24 +02:00
parent 8139ad9fdf
commit dabf3c299f
49 changed files with 2 additions and 75 deletions

View File

@ -227,4 +227,3 @@ operates.
`configure' also accepts some other, not widely useful, options. Run `configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details. `configure --help' for more details.

View File

@ -1,4 +1,4 @@
<!-- <!--
This file is needed by the android_native_library rule to determine the This file is needed by the android_native_library rule to determine the
project directory for ndk-build. project directory for ndk-build.
--> -->

View File

@ -55,4 +55,3 @@ abstract class SVAbstractMenuItem {
*/ */
public void performAction(SVWindow window, SVEventType eventType) {} public void performAction(SVWindow window, SVEventType eventType) {}
} }

View File

@ -57,4 +57,3 @@ class SVCheckboxMenuItem extends SVAbstractMenuItem {
return Boolean.toString(bvalue); return Boolean.toString(bvalue);
} }
} }

View File

@ -44,5 +44,3 @@ class SVEmptyMenuItem extends SVAbstractMenuItem {
ScrollView.addMessage(svme); ScrollView.addMessage(svme);
} }
} }

View File

@ -58,4 +58,3 @@ class SVMenuItem extends SVAbstractMenuItem {
return value; return value;
} }
} }

View File

@ -37,5 +37,3 @@ class SVSubMenuItem extends SVAbstractMenuItem {
mi.add(jli); mi.add(jli);
} }
} }

View File

@ -32,4 +32,3 @@ libtesseract_avx_la_SOURCES = dotproductavx.cpp
libtesseract_avx2_la_SOURCES = intsimdmatrixavx2.cpp libtesseract_avx2_la_SOURCES = intsimdmatrixavx2.cpp
libtesseract_sse_la_SOURCES = dotproductsse.cpp intsimdmatrixsse.cpp libtesseract_sse_la_SOURCES = dotproductsse.cpp intsimdmatrixsse.cpp

View File

@ -34,4 +34,3 @@ libtesseract_main_la_SOURCES = \
tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \ tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \
tfacepp.cpp thresholder.cpp \ tfacepp.cpp thresholder.cpp \
werdit.cpp werdit.cpp

View File

@ -70,5 +70,3 @@ void Tesseract::PrerecAllWordsPar(const GenericVector<WordData>& words) {
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -998,6 +998,3 @@ void Tesseract::blob_feature_display(PAGE_RES* page_res,
#endif // GRAPHICS_DISABLED #endif // GRAPHICS_DISABLED
} // namespace tesseract } // namespace tesseract

View File

@ -330,4 +330,3 @@ void ImageThresholder::ThresholdRectToPix(Pix* src_pix,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -584,4 +584,3 @@ void BlamerBundle::SetMisAdaptionDebug(const WERD_CHOICE *best_choice,
} }
} }
} }

View File

@ -237,4 +237,3 @@ void MakeBoxFileStr(const char* unichar_str, const TBOX& box, int page_num,
box_str->add_str_int(" ", box.top()); box_str->add_str_int(" ", box.top());
box_str->add_str_int(" ", page_num); box_str->add_str_int(" ", page_num);
} }

View File

@ -160,5 +160,3 @@ class DetLineFit {
} // namespace tesseract. } // namespace tesseract.
#endif // TESSERACT_CCSTRUCT_DETLINEFIT_H_ #endif // TESSERACT_CCSTRUCT_DETLINEFIT_H_

View File

@ -95,4 +95,3 @@ void DPPoint::UpdateIfBetter(int64_t cost, int32_t steps, const DPPoint* prev,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -244,4 +244,3 @@ bool write_set(FILE* f, const FontSet& fs) {
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -265,5 +265,3 @@ void BitVector::Alloc(int length) {
} // namespace tesseract. } // namespace tesseract.

View File

@ -247,4 +247,3 @@ int IndexMapBiDi::MapFeatures(const GenericVector<int>& sparse,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -163,4 +163,3 @@ int TFile::FWrite(const void* buffer, int size, int count) {
} // namespace tesseract. } // namespace tesseract.

View File

@ -35,5 +35,3 @@ libtesseract_classify_la_SOURCES = \
ocrfeatures.cpp outfeat.cpp picofeat.cpp protos.cpp \ ocrfeatures.cpp outfeat.cpp picofeat.cpp protos.cpp \
sampleiterator.cpp shapeclassifier.cpp shapetable.cpp \ sampleiterator.cpp shapeclassifier.cpp shapetable.cpp \
tessclassifier.cpp trainingsample.cpp trainingsampleset.cpp tessclassifier.cpp trainingsample.cpp trainingsampleset.cpp

View File

@ -500,8 +500,3 @@ void ErrorCounter::Counts::operator+=(const Counts& other) {
} // namespace tesseract. } // namespace tesseract.

View File

@ -259,4 +259,3 @@ const UnicharAndFonts* SampleIterator::GetShapeEntry() const {
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -229,8 +229,3 @@ void ShapeClassifier::FilterDuplicateUnichars(
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -83,5 +83,3 @@ int TessClassifier::DisplayClassifyAs(
} }
} // namespace tesseract } // namespace tesseract

View File

@ -16,5 +16,3 @@ libtesseract_dict_la_SOURCES = \
context.cpp \ context.cpp \
dawg.cpp dawg_cache.cpp dict.cpp hyphen.cpp \ dawg.cpp dawg_cache.cpp dict.cpp hyphen.cpp \
permdawg.cpp stopper.cpp trie.cpp permdawg.cpp stopper.cpp trie.cpp

View File

@ -102,4 +102,3 @@ class Input : public Network {
} // namespace tesseract. } // namespace tesseract.
#endif // TESSERACT_LSTM_INPUT_H_ #endif // TESSERACT_LSTM_INPUT_H_

View File

@ -83,4 +83,3 @@ bool Maxpool::Backward(bool debug, const NetworkIO& fwd_deltas,
} // namespace tesseract. } // namespace tesseract.

View File

@ -67,4 +67,3 @@ class Maxpool : public Reconfig {
#endif // TESSERACT_LSTM_MAXPOOL_H_ #endif // TESSERACT_LSTM_MAXPOOL_H_

View File

@ -485,4 +485,3 @@ Network* NetworkBuilder::ParseOutput(const StaticShape& input_shape,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -244,4 +244,3 @@ void Plumbing::CountAlternators(const Network& other, double* same,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -142,4 +142,3 @@ class Plumbing : public Network {
} // namespace tesseract. } // namespace tesseract.
#endif // TESSERACT_LSTM_PLUMBING_H_ #endif // TESSERACT_LSTM_PLUMBING_H_

View File

@ -529,4 +529,3 @@ BLOBNBOX* AlignedBlob::FindAlignedBlob(const AlignedBlobParams& p,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -418,4 +418,3 @@ void plot_row_cells( //draw words
} }
#endif // GRAPHICS_DISABLED #endif // GRAPHICS_DISABLED

View File

@ -1366,4 +1366,3 @@ void ImageFind::FindImagePartitions(Pix* image_pix, const FCOORD& rotation,
} // namespace tesseract. } // namespace tesseract.

View File

@ -771,4 +771,3 @@ void LineFinder::GetLineBoxes(bool horizontal_lines,
} }
} // namespace tesseract. } // namespace tesseract.

View File

@ -139,9 +139,3 @@ int main(int argc, char **argv) {
return 0; return 0;
} /* main */ } /* main */

View File

@ -210,5 +210,3 @@ int main(int argc, char **argv) {
tprintf("Finished! Error rate = %g\n", trainer.best_error_rate()); tprintf("Finished! Error rate = %g\n", trainer.best_error_rate());
return 0; return 0;
} /* main */ } /* main */

View File

@ -77,5 +77,3 @@ else
make__traineddata make__traineddata
tlog "\nCompleted training for language '${LANG_CODE}'\n" tlog "\nCompleted training for language '${LANG_CODE}'\n"
fi fi

View File

@ -207,4 +207,3 @@ void SetPropertiesForInputFile(const std::string& script_dir,
} }
} // namespace tesseract } // namespace tesseract

View File

@ -98,4 +98,3 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED #endif // not APSTUDIO_INVOKED

View File

@ -98,4 +98,3 @@ END
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED #endif // not APSTUDIO_INVOKED

View File

@ -215,4 +215,3 @@ void LMPainPoints::RemapForSplit(int index) {
} }
} // namespace tesseract } // namespace tesseract

View File

@ -86,4 +86,3 @@ class ParamsModel {
} // namespace tesseract } // namespace tesseract
#endif // TESSERACT_WORDREC_PARAMS_MODEL_H_ #endif // TESSERACT_WORDREC_PARAMS_MODEL_H_

View File

@ -1 +1 @@
tessedit_write_images T tessedit_write_images T

View File

@ -1,2 +1 @@
# No content needed as all defaults are correct. # No content needed as all defaults are correct.

View File

@ -16,4 +16,3 @@ DuTillet1004Pg2LG.jpg - Sample from Hebrew Matthew Project with parallel texts
hebrew-nikud-genesis-1-2.png - Genesis 1-2 Hebrew example from OCR forum hebrew-nikud-genesis-1-2.png - Genesis 1-2 Hebrew example from OCR forum
forum post - https://community.logos.com/forums/p/16124/277997.aspx forum post - https://community.logos.com/forums/p/16124/277997.aspx
direct link to image - https://community.logos.com/cfs-filesystemfile.ashx/__key/CommunityServer.Discussions.Components.Files/77/4578.Gen.png direct link to image - https://community.logos.com/cfs-filesystemfile.ashx/__key/CommunityServer.Discussions.Components.Files/77/4578.Gen.png

View File

@ -40,4 +40,3 @@ and go to the gym, have lunch etc.
Step 8: There should be a file Step 8: There should be a file
testing/reports/tess2.0.summary that contains the final summarized accuracy testing/reports/tess2.0.summary that contains the final summarized accuracy
report and comparison with the 1995 results. report and comparison with the 1995 results.

2
testing/counttestset.sh Executable file → Normal file
View File

@ -57,5 +57,3 @@ do
done <"$pages" done <"$pages"
testing/unlv/accsum "$accfiles" >"testing/reports/$setname.characc" testing/unlv/accsum "$accfiles" >"testing/reports/$setname.characc"
testing/unlv/wordaccsum "$wafiles" >"testing/reports/$setname.wordacc" testing/unlv/wordaccsum "$wafiles" >"testing/reports/$setname.wordacc"