mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
training/unicharset_extractor.cpp: Print whether WCTYPE is included
Character properties are autogenerated only if wctype is found on the system. However, it is not possible to know if a version of unicharset_extractor was compiled with this support (especially if it was installed as a pre-compiled binary). This commit adds a print to the usage details to output if the binary was compiled with wctype support.
This commit is contained in:
parent
2517ffefe7
commit
379da1f2e0
@ -105,6 +105,11 @@ int main(int argc, char** argv) {
|
||||
// Print usage
|
||||
if (argc <= 1) {
|
||||
printf("Usage: %s [-D DIRECTORY] FILE...\n", argv[0]);
|
||||
#ifdef USING_WCTYPE
|
||||
printf("Character properties using wctype is enabled\n");
|
||||
#else
|
||||
printf("WARNING: Character properties using wctype is DISABLED\n");
|
||||
#endif
|
||||
exit(1);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user