Browse Source

Fix file endings

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

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Stefan Weil 3 years ago
parent
commit
dabf3c299f
49 changed files with 2 additions and 75 deletions
  1. 0
    1
      INSTALL
  2. 1
    1
      android/AndroidManifest.xml
  3. 0
    1
      java/com/google/scrollview/ui/SVAbstractMenuItem.java
  4. 0
    1
      java/com/google/scrollview/ui/SVCheckboxMenuItem.java
  5. 0
    2
      java/com/google/scrollview/ui/SVEmptyMenuItem.java
  6. 0
    1
      java/com/google/scrollview/ui/SVMenuItem.java
  7. 0
    2
      java/com/google/scrollview/ui/SVSubMenuItem.java
  8. 0
    1
      src/arch/Makefile.am
  9. 0
    1
      src/ccmain/Makefile.am
  10. 0
    2
      src/ccmain/par_control.cpp
  11. 0
    3
      src/ccmain/pgedit.cpp
  12. 0
    1
      src/ccmain/thresholder.cpp
  13. 0
    1
      src/ccstruct/blamer.cpp
  14. 0
    1
      src/ccstruct/boxread.cpp
  15. 0
    2
      src/ccstruct/detlinefit.h
  16. 0
    1
      src/ccstruct/dppoint.cpp
  17. 0
    1
      src/ccstruct/fontinfo.cpp
  18. 0
    2
      src/ccutil/bitvector.cpp
  19. 0
    1
      src/ccutil/indexmapbidi.cpp
  20. 0
    1
      src/ccutil/serialis.cpp
  21. 0
    2
      src/classify/Makefile.am
  22. 0
    5
      src/classify/errorcounter.cpp
  23. 0
    1
      src/classify/sampleiterator.cpp
  24. 0
    5
      src/classify/shapeclassifier.cpp
  25. 0
    2
      src/classify/tessclassifier.cpp
  26. 0
    2
      src/dict/Makefile.am
  27. 0
    1
      src/lstm/input.h
  28. 0
    1
      src/lstm/maxpool.cpp
  29. 0
    1
      src/lstm/maxpool.h
  30. 0
    1
      src/lstm/networkbuilder.cpp
  31. 0
    1
      src/lstm/plumbing.cpp
  32. 0
    1
      src/lstm/plumbing.h
  33. 0
    1
      src/textord/alignedblob.cpp
  34. 0
    1
      src/textord/drawtord.cpp
  35. 0
    1
      src/textord/imagefind.cpp
  36. 0
    1
      src/textord/linefind.cpp
  37. 0
    6
      src/training/classifier_tester.cpp
  38. 0
    2
      src/training/lstmtraining.cpp
  39. 0
    2
      src/training/tesstrain.sh
  40. 0
    1
      src/training/unicharset_training_utils.cpp
  41. 0
    1
      src/vs2010/tesseract/libtesseract.rc.in
  42. 0
    1
      src/vs2010/tesseract/tesseract.rc.in
  43. 0
    1
      src/wordrec/lm_pain_points.cpp
  44. 0
    1
      src/wordrec/params_model.h
  45. 1
    1
      tessdata/configs/get.image
  46. 0
    1
      tessdata/tessconfigs/batch
  47. 0
    1
      testing/FILES
  48. 0
    1
      testing/README
  49. 0
    2
      testing/counttestset.sh

+ 0
- 1
INSTALL

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

+ 1
- 1
android/AndroidManifest.xml

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

+ 0
- 1
java/com/google/scrollview/ui/SVAbstractMenuItem.java

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

+ 0
- 1
java/com/google/scrollview/ui/SVCheckboxMenuItem.java

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

+ 0
- 2
java/com/google/scrollview/ui/SVEmptyMenuItem.java

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

+ 0
- 1
java/com/google/scrollview/ui/SVMenuItem.java

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

+ 0
- 2
java/com/google/scrollview/ui/SVSubMenuItem.java

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

+ 0
- 1
src/arch/Makefile.am

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

+ 0
- 1
src/ccmain/Makefile.am

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

+ 0
- 2
src/ccmain/par_control.cpp

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

+ 0
- 3
src/ccmain/pgedit.cpp

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

+ 0
- 1
src/ccmain/thresholder.cpp

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

+ 0
- 1
src/ccstruct/blamer.cpp

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

+ 0
- 1
src/ccstruct/boxread.cpp

@@ -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(" ", page_num);
 }
-

+ 0
- 2
src/ccstruct/detlinefit.h

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

+ 0
- 1
src/ccstruct/dppoint.cpp

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

+ 0
- 1
src/ccstruct/fontinfo.cpp

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

+ 0
- 2
src/ccutil/bitvector.cpp

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

+ 0
- 1
src/ccutil/indexmapbidi.cpp

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

+ 0
- 1
src/ccutil/serialis.cpp

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

+ 0
- 2
src/classify/Makefile.am

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

+ 0
- 5
src/classify/errorcounter.cpp

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

+ 0
- 1
src/classify/sampleiterator.cpp

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

+ 0
- 5
src/classify/shapeclassifier.cpp

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

+ 0
- 2
src/classify/tessclassifier.cpp

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

+ 0
- 2
src/dict/Makefile.am

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

+ 0
- 1
src/lstm/input.h

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

+ 0
- 1
src/lstm/maxpool.cpp

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

+ 0
- 1
src/lstm/maxpool.h

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

+ 0
- 1
src/lstm/networkbuilder.cpp

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

+ 0
- 1
src/lstm/plumbing.cpp

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

+ 0
- 1
src/lstm/plumbing.h

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

+ 0
- 1
src/textord/alignedblob.cpp

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

+ 0
- 1
src/textord/drawtord.cpp

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

+ 0
- 1
src/textord/imagefind.cpp

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

+ 0
- 1
src/textord/linefind.cpp

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

+ 0
- 6
src/training/classifier_tester.cpp

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

+ 0
- 2
src/training/lstmtraining.cpp

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

+ 0
- 2
src/training/tesstrain.sh

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

+ 0
- 1
src/training/unicharset_training_utils.cpp

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

+ 0
- 1
src/vs2010/tesseract/libtesseract.rc.in

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

+ 0
- 1
src/vs2010/tesseract/tesseract.rc.in

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

+ 0
- 1
src/wordrec/lm_pain_points.cpp

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

+ 0
- 1
src/wordrec/params_model.h

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

+ 1
- 1
tessdata/configs/get.image

@@ -1 +1 @@
-tessedit_write_images T
+tessedit_write_images T

+ 0
- 1
tessdata/tessconfigs/batch

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

+ 0
- 1
testing/FILES

@@ -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
     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
-

+ 0
- 1
testing/README

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

+ 0
- 2
testing/counttestset.sh

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