Skip to content

Commit

Permalink
fix documentation about datapath: ending "/" is not relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 1, 2019
1 parent 087576f commit 90aef80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void TessBaseAPI::PrintVariables(FILE *fp) const {
}

/**
* The datapath must be the name of the data directory (no ending /) or
* The datapath must be the name of the data directory or
* some other file in which the data directory resides (for instance argv[0].)
* The language is (usually) an ISO 639-3 string or nullptr will default to eng.
* If numeric_mode is true, then only digits and Roman numerals will
Expand Down
3 changes: 1 addition & 2 deletions src/api/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ class TESS_API TessBaseAPI {
* NOTE that the only members that may be called before Init are those
* listed above here in the class definition.
*
* The datapath must be the name of the parent directory of tessdata and
* must end in / . Any name after the last / will be stripped.
* The datapath must be the name of the parent directory of tessdata.
* The language is (usually) an ISO 639-3 string or nullptr will default to eng.
* It is entirely safe (and eventually will be efficient too) to call
* Init multiple times on the same instance to change language, or just
Expand Down

3 comments on commit 90aef80

@zdenop
Copy link
Contributor Author

@zdenop zdenop commented on 90aef80 May 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if datapath does not end with "/" CCUtil::main_setup will handle it.

@nguyenq
Copy link
Contributor

@nguyenq nguyenq commented on 90aef80 May 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it needs further correction for baseapi.h, to be consistent with baseapi.cpp: The datapath must be the name of the directory of tessdata.

@zdenop
Copy link
Contributor Author

@zdenop zdenop commented on 90aef80 May 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. corrected.

Please sign in to comment.