All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tovars.h
Go to the documentation of this file.
1 /**********************************************************************
2  * File: tovars.h (Formerly to_vars.h)
3  * Description: Variables used by textord.
4  * Author: Ray Smith
5  * Created: Tue Aug 24 16:55:02 BST 1993
6  *
7  * (C) Copyright 1993, Hewlett-Packard Ltd.
8  ** Licensed under the Apache License, Version 2.0 (the "License");
9  ** you may not use this file except in compliance with the License.
10  ** You may obtain a copy of the License at
11  ** http://www.apache.org/licenses/LICENSE-2.0
12  ** Unless required by applicable law or agreed to in writing, software
13  ** distributed under the License is distributed on an "AS IS" BASIS,
14  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ** See the License for the specific language governing permissions and
16  ** limitations under the License.
17  *
18  **********************************************************************/
19 
20 #ifndef TOVARS_H
21 #define TOVARS_H
22 
23 #include "params.h"
24 
26 "Display separate words");
27 extern BOOL_VAR_H (textord_show_new_words, FALSE, "Display separate words");
29 "Display forced fixed pitch words");
30 extern BOOL_VAR_H (textord_blocksall_fixed, FALSE, "Moan about prop blocks");
32 "Moan about fixed pitch blocks");
34 "Dump stats when moaning");
35 extern BOOL_VAR_H (textord_test_mode, FALSE, "Do current test");
37 "Max pixel gap for broken pixed pitch");
38 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
39 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch");
41 "Smoothing gap stats");
43 "Smoothing width stats");
45 "Ile of blob widths for space est");
46 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
48 "Max believable third space");
50 "Fraction of xheight");
51 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight");
53 "Fraction of xheight");
55 "Max inital cluster size");
57 "Min initial cluster spacing");
59 "Fraction of valid gaps needed");
61 "Pitch sync threshold");
63 "Threshold for definite fixed");
65 "Threshold for definite prop");
67 "Rows required to outvote a veto");
69 "Fraction of xheight for sameness");
71 "Scale scores on big words");
72 extern double_VAR_H (words_initial_lower, 0.5, "Max inital cluster size");
73 extern double_VAR_H (words_initial_upper, 0.15,
74 "Min initial cluster spacing");
76 "Fraction of xheight");
77 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
78 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance");
80 "Non-fuzzy spacing region");
82 "Min ratio space/nonspace");
84 "Min ratio space/nonspace");
85 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
87 "Xh fraction noise in pitch");
88 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
89 #endif
bool textord_blocksall_testing
Definition: tovars.cpp:32
double textord_words_pitchsd_threshold
Definition: tovars.cpp:59
double textord_words_initial_lower
Definition: tovars.cpp:53
double textord_spacesize_ratiofp
Definition: tovars.cpp:78
bool textord_test_mode
Definition: tovars.cpp:33
bool textord_blocksall_prop
Definition: tovars.cpp:31
bool textord_show_initial_words
Definition: tovars.cpp:25
int textord_dotmatrix_gap
Definition: tovars.cpp:35
#define INT_VAR_H(name, val, comment)
Definition: params.h:265
int textord_words_veto_power
Definition: tovars.cpp:65
double textord_words_minlarge
Definition: tovars.cpp:57
double textord_words_min_minspace
Definition: tovars.cpp:49
double textord_spacesize_ratioprop
Definition: tovars.cpp:80
double textord_words_def_fixed
Definition: tovars.cpp:61
double textord_words_def_prop
Definition: tovars.cpp:63
double textord_words_width_ile
Definition: tovars.cpp:43
double textord_fp_min_width
Definition: tovars.cpp:83
double textord_words_definite_spread
Definition: tovars.cpp:76
int textord_pitch_range
Definition: tovars.cpp:37
double words_initial_lower
Definition: tovars.cpp:70
double textord_words_maxspace
Definition: tovars.cpp:44
bool textord_show_new_words
Definition: tovars.cpp:26
double words_initial_upper
Definition: tovars.cpp:71
double words_default_fixed_space
Definition: tovars.cpp:73
bool textord_blocksall_fixed
Definition: tovars.cpp:29
#define double_VAR_H(name, val, comment)
Definition: params.h:274
double textord_words_default_nonspace
Definition: tovars.cpp:51
double textord_words_initial_upper
Definition: tovars.cpp:55
#define FALSE
Definition: capi.h:29
double textord_width_smooth_factor
Definition: tovars.cpp:41
double textord_fpiqr_ratio
Definition: tovars.cpp:81
double textord_pitch_rowsimilarity
Definition: tovars.cpp:67
double textord_words_default_minspace
Definition: tovars.cpp:48
double words_default_prop_nonspace
Definition: tovars.cpp:72
double words_default_fixed_limit
Definition: tovars.cpp:74
bool textord_pitch_scalebigwords
Definition: tovars.cpp:69
int textord_debug_block
Definition: tovars.cpp:36
double textord_wordstats_smooth_factor
Definition: tovars.cpp:39
double textord_words_default_maxspace
Definition: tovars.cpp:46
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:268
bool textord_show_fixed_words
Definition: tovars.cpp:28
double textord_max_pitch_iqr
Definition: tovars.cpp:82