34 #define ILLEGAL_NUM_SETS 3001 36 #define PICO_FEATURE_LENGTH 0.05 200 int NumSetsToWrite = 0;
221 bool anything_written =
false;
222 bool well_formed =
true;
231 anything_written =
true;
238 return anything_written && well_formed;
270 if (
tfscanf(File,
"%d", &NumSetsToRead) != 1 ||
275 for (; NumSetsToRead > 0; NumSetsToRead--) {
276 tfscanf(File,
"%s", ShortName);
303 const char *ShortName) {
const FEATURE_DESC_STRUCT IntFeatDesc
int ShortNameToFeatureType(const FEATURE_DEFS_STRUCT &FeatureDefs, const char *ShortName)
FEATURE_SET FeatureSets[NUM_FEATURE_TYPES]
TESS_API const FEATURE_DESC_STRUCT PicoFeatDesc
CHAR_DESC NewCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs)
const FEATURE_DESC_STRUCT GeoFeatDesc
const FEATURE_DESC_STRUCT * FeatureDesc[NUM_FEATURE_TYPES]
#define PICO_FEATURE_LENGTH
int tfscanf(FILE *stream, const char *format,...)
CHAR_DESC_STRUCT * CHAR_DESC
void add_str_int(const char *str, int number)
void InitFeatureDefs(FEATURE_DEFS_STRUCT *featuredefs)
const char * kMicroFeatureType
#define NUM_FEATURE_TYPES
const FEATURE_DESC_STRUCT OutlineFeatDesc
const char * kGeoFeatureType
void DoError(int Error, const char *Message)
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING *str)
StartParamDesc(MicroFeatureParams) DefineParam(0
bool ValidCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC CharDesc)
TESS_API FLOAT32 PicoFeatureLength
#define ILLEGAL_SHORT_NAME
void WriteCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC CharDesc, STRING *str)
MicroFeatureParams CharNormParams EndParamDesc DefineFeature(IntFeatDesc, 2, 1, kIntFeatureType, IntFeatParams) StartParamDesc(GeoFeatParams) DefineParam(0
const FEATURE_DESC_STRUCT * Type
FEATURE_SET ReadFeatureSet(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)
const FEATURE_DESC_STRUCT CharNormDesc
void FreeCharDescription(CHAR_DESC CharDesc)
void FreeFeatureSet(FEATURE_SET FeatureSet)
const char * kIntFeatureType
DefineParam(0, 0, -0.25, 0.75) DefineParam(0
const FEATURE_DESC_STRUCT MicroFeatureDesc
CHAR_DESC ReadCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, FILE *File)
const char * kCNFeatureType