23 int main(
int argc,
char** argv) {
24 tesseract::CheckSharedLibraryVersion();
26 if (argc > 1 && (!strcmp(argv[1],
"-v") || !strcmp(argv[1],
"--version"))) {
29 }
else if (argc < 4) {
31 printf(
"Usage: %s -v | --version |\n"
32 " %s unicharset-in-1 ... unicharset-in-n unicharset-out\n",
37 UNICHARSET input_unicharset, result_unicharset;
38 for (
int arg = 1; arg < argc - 1; ++arg) {
41 printf(
"Loaded unicharset of size %d from file %s\n",
42 input_unicharset.
size(), argv[arg]);
45 printf(
"Failed to load unicharset from file %s!!\n", argv[arg]);
52 printf(
"Wrote unicharset file %s.\n", argv[argc - 1]);
54 printf(
"Cannot save unicharset file %s.\n", argv[argc - 1]);