|
tesseract
3.03
|
#include <stdlib.h>#include <string.h>#include <string>#include "commandlineflags.h"#include "fileio.h"#include "genericvector.h"#include "icuerrorcode.h"#include "normstrngs.h"#include "strngs.h"#include "unicharset.h"#include "unicode/uchar.h"#include "unicode/uscript.h"Go to the source code of this file.
Namespaces | |
| namespace | tesseract |
Functions | |
| STRING_PARAM_FLAG (script_dir,"","Directory name for input script unicharsets/xheights") | |
| DECLARE_STRING_PARAM_FLAG (U) | |
| DECLARE_STRING_PARAM_FLAG (O) | |
| DECLARE_STRING_PARAM_FLAG (X) | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------
Definition at line 179 of file set_unicharset_properties.cpp.
{
tesseract::ParseCommandLineFlags(argv[0], &argc, &argv, true);
// Check validity of input flags.
if (FLAGS_U.empty() || FLAGS_O.empty()) {
tprintf("Specify both input and output unicharsets!");
exit(1);
}
if (FLAGS_script_dir.empty()) {
tprintf("Must specify a script_dir!");
exit(1);
}
tesseract::SetPropertiesForInputFile(FLAGS_script_dir.c_str(),
FLAGS_U.c_str(), FLAGS_O.c_str(),
FLAGS_X.c_str());
return 0;
}
| STRING_PARAM_FLAG | ( | script_dir | , |
| "" | , | ||
| "Directory name for input script unicharsets/xheights" | |||
| ) |