• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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          "varable.h"
24 #include          "notdll.h"
25 
26 extern BOOL_VAR_H (textord_show_initial_words, FALSE,
27 "Display separate words");
28 extern BOOL_VAR_H (textord_show_new_words, FALSE, "Display separate words");
29 extern BOOL_VAR_H (textord_show_fixed_words, FALSE,
30 "Display forced fixed pitch words");
31 extern BOOL_VAR_H (textord_blocksall_fixed, FALSE, "Moan about prop blocks");
32 extern BOOL_VAR_H (textord_blocksall_prop, FALSE,
33 "Moan about fixed pitch blocks");
34 extern BOOL_VAR_H (textord_blocksall_testing, FALSE,
35 "Dump stats when moaning");
36 extern BOOL_VAR_H (textord_test_mode, FALSE, "Do current test");
37 extern BOOL_VAR_H (textord_repeat_extraction, TRUE, "Extract repeated chars");
38 extern INT_VAR_H (textord_dotmatrix_gap, 3,
39 "Max pixel gap for broken pixed pitch");
40 extern INT_VAR_H (textord_repeat_threshold, 4,
41 "Min multiple for repeated char");
42 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
43 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch");
44 extern double_VAR_H (textord_repeat_rating, 6, "Min rating for equal blobs");
45 extern double_VAR_H(textord_repch_width_variance, 0.2,
46 "Max width change of gap/blob for repeated chars");
47 extern double_VAR_H (textord_wordstats_smooth_factor, 0.05,
48 "Smoothing gap stats");
49 extern double_VAR_H (textord_width_smooth_factor, 0.10,
50 "Smoothing width stats");
51 extern double_VAR_H (textord_words_width_ile, 0.4,
52 "Ile of blob widths for space est");
53 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
54 extern double_VAR_H (textord_words_default_maxspace, 3.5,
55 "Max believable third space");
56 extern double_VAR_H (textord_words_default_minspace, 0.6,
57 "Fraction of xheight");
58 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight");
59 extern double_VAR_H (textord_words_default_nonspace, 0.2,
60 "Fraction of xheight");
61 extern double_VAR_H (textord_words_initial_lower, 0.25,
62 "Max inital cluster size");
63 extern double_VAR_H (textord_words_initial_upper, 0.15,
64 "Min initial cluster spacing");
65 extern double_VAR_H (textord_words_minlarge, 0.75,
66 "Fraction of valid gaps needed");
67 extern double_VAR_H (textord_words_pitchsd_threshold, 0.025,
68 "Pitch sync threshold");
69 extern double_VAR_H (textord_words_def_fixed, 0.01,
70 "Threshold for definite fixed");
71 extern double_VAR_H (textord_words_def_prop, 0.06,
72 "Threshold for definite prop");
73 extern INT_VAR_H (textord_words_veto_power, 5,
74 "Rows required to outvote a veto");
75 extern double_VAR_H (textord_pitch_rowsimilarity, 0.08,
76 "Fraction of xheight for sameness");
77 extern BOOL_VAR_H (textord_pitch_scalebigwords, FALSE,
78 "Scale scores on big words");
79 extern double_VAR_H (words_initial_lower, 0.5, "Max inital cluster size");
80 extern double_VAR_H (words_initial_upper, 0.15,
81 "Min initial cluster spacing");
82 extern double_VAR_H (words_default_prop_nonspace, 0.25,
83 "Fraction of xheight");
84 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
85 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance");
86 extern double_VAR_H (textord_words_definite_spread, 0.30,
87 "Non-fuzzy spacing region");
88 extern double_VAR_H (textord_spacesize_ratiofp, 2.8,
89 "Min ratio space/nonspace");
90 extern double_VAR_H (textord_spacesize_ratioprop, 2.0,
91 "Min ratio space/nonspace");
92 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
93 extern double_VAR_H (textord_max_pitch_iqr, 0.20,
94 "Xh fraction noise in pitch");
95 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
96 #endif
97