#include <stdlib.h>
#include <string.h>
#include <string>
#include "commandlineflags.h"
#include "tprintf.h"
#include "unicharset_training_utils.h"
Go to the source code of this file.
DECLARE_STRING_PARAM_FLAG |
( |
U |
| ) |
|
DECLARE_STRING_PARAM_FLAG |
( |
O |
| ) |
|
DECLARE_STRING_PARAM_FLAG |
( |
X |
| ) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Public Function Prototypes
Definition at line 22 of file set_unicharset_properties.cpp.
26 if (FLAGS_U.empty() || FLAGS_O.empty()) {
27 tprintf(
"Specify both input and output unicharsets!\n");
30 if (FLAGS_script_dir.empty()) {
31 tprintf(
"Must specify a script_dir!\n");
36 FLAGS_U.c_str(), FLAGS_O.c_str(),
void ParseCommandLineFlags(const char *usage, int *argc, char ***argv, const bool remove_flags)
void SetPropertiesForInputFile(const string &script_dir, const string &input_unicharset_file, const string &output_unicharset_file, const string &output_xheights_file)
STRING_PARAM_FLAG |
( |
script_dir |
, |
|
|
"" |
, |
|
|
"Directory name for input script unicharsets/xheights" |
|
|
) |
| |