Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 96 of file unicharset_extractor.cpp.
96 {
97 tesseract::CheckSharedLibraryVersion();
98 if (argc > 1) {
100 }
101 if (argc < 2) {
103 "Usage: %s [--output_unicharset filename] [--norm_mode mode]"
104 " box_or_text_file [...]\n",
105 argv[0]);
106 tprintf(
"Where mode means:\n");
107 tprintf(
" 1=combine graphemes (use for Latin and other simple scripts)\n");
108 tprintf(
" 2=split graphemes (use for Indic/Khmer/Myanmar)\n");
109 tprintf(
" 3=pure unicode (use for Arabic/Hebrew/Thai/Tibetan)\n");
110 tprintf(
"Reads box or plain text files to extract the unicharset.\n");
111 return EXIT_FAILURE;
112 }
113 return tesseract::Main(argc, argv);
114}
DLLSYM void tprintf(const char *format,...)
void ParseCommandLineFlags(const char *usage, int *argc, char ***argv, const bool remove_flags)