|
20 | 20 | #include "tovars.h"
|
21 | 21 | #include "params.h"
|
22 | 22 |
|
23 |
| -#define EXTERN |
24 |
| - |
25 |
| -EXTERN BOOL_VAR (textord_show_initial_words, false, "Display separate words"); |
26 |
| -EXTERN BOOL_VAR (textord_show_new_words, false, "Display separate words"); |
27 |
| -EXTERN BOOL_VAR (textord_show_fixed_words, false, |
| 23 | +BOOL_VAR (textord_show_initial_words, false, "Display separate words"); |
| 24 | +BOOL_VAR (textord_show_new_words, false, "Display separate words"); |
| 25 | +BOOL_VAR (textord_show_fixed_words, false, |
28 | 26 | "Display forced fixed pitch words");
|
29 |
| -EXTERN BOOL_VAR (textord_blocksall_fixed, false, "Moan about prop blocks"); |
30 |
| -EXTERN BOOL_VAR (textord_blocksall_prop, false, |
| 27 | +BOOL_VAR (textord_blocksall_fixed, false, "Moan about prop blocks"); |
| 28 | +BOOL_VAR (textord_blocksall_prop, false, |
31 | 29 | "Moan about fixed pitch blocks");
|
32 |
| -EXTERN BOOL_VAR (textord_blocksall_testing, false, "Dump stats when moaning"); |
33 |
| -EXTERN BOOL_VAR (textord_test_mode, false, "Do current test"); |
34 |
| -EXTERN INT_VAR (textord_dotmatrix_gap, 3, |
| 30 | +BOOL_VAR (textord_blocksall_testing, false, "Dump stats when moaning"); |
| 31 | +BOOL_VAR (textord_test_mode, false, "Do current test"); |
| 32 | +INT_VAR (textord_dotmatrix_gap, 3, |
35 | 33 | "Max pixel gap for broken pixed pitch");
|
36 |
| -EXTERN INT_VAR (textord_debug_block, 0, "Block to do debug on"); |
37 |
| -EXTERN INT_VAR (textord_pitch_range, 2, "Max range test on pitch"); |
38 |
| -EXTERN double_VAR (textord_wordstats_smooth_factor, 0.05, |
| 34 | +INT_VAR (textord_debug_block, 0, "Block to do debug on"); |
| 35 | +INT_VAR (textord_pitch_range, 2, "Max range test on pitch"); |
| 36 | +double_VAR (textord_wordstats_smooth_factor, 0.05, |
39 | 37 | "Smoothing gap stats");
|
40 |
| -EXTERN double_VAR (textord_width_smooth_factor, 0.10, |
| 38 | +double_VAR (textord_width_smooth_factor, 0.10, |
41 | 39 | "Smoothing width stats");
|
42 |
| -EXTERN double_VAR (textord_words_width_ile, 0.4, |
| 40 | +double_VAR (textord_words_width_ile, 0.4, |
43 | 41 | "Ile of blob widths for space est");
|
44 |
| -EXTERN double_VAR (textord_words_maxspace, 4.0, "Multiple of xheight"); |
45 |
| -EXTERN double_VAR (textord_words_default_maxspace, 3.5, |
| 42 | +double_VAR (textord_words_maxspace, 4.0, "Multiple of xheight"); |
| 43 | +double_VAR (textord_words_default_maxspace, 3.5, |
46 | 44 | "Max believable third space");
|
47 |
| -EXTERN double_VAR (textord_words_default_minspace, 0.6, |
| 45 | +double_VAR (textord_words_default_minspace, 0.6, |
48 | 46 | "Fraction of xheight");
|
49 |
| -EXTERN double_VAR (textord_words_min_minspace, 0.3, "Fraction of xheight"); |
50 |
| -EXTERN double_VAR (textord_words_default_nonspace, 0.2, |
| 47 | +double_VAR (textord_words_min_minspace, 0.3, "Fraction of xheight"); |
| 48 | +double_VAR (textord_words_default_nonspace, 0.2, |
51 | 49 | "Fraction of xheight");
|
52 |
| -EXTERN double_VAR(textord_words_initial_lower, 0.25, |
| 50 | +double_VAR(textord_words_initial_lower, 0.25, |
53 | 51 | "Max initial cluster size");
|
54 |
| -EXTERN double_VAR (textord_words_initial_upper, 0.15, |
| 52 | +double_VAR (textord_words_initial_upper, 0.15, |
55 | 53 | "Min initial cluster spacing");
|
56 |
| -EXTERN double_VAR (textord_words_minlarge, 0.75, |
| 54 | +double_VAR (textord_words_minlarge, 0.75, |
57 | 55 | "Fraction of valid gaps needed");
|
58 |
| -EXTERN double_VAR (textord_words_pitchsd_threshold, 0.040, |
| 56 | +double_VAR (textord_words_pitchsd_threshold, 0.040, |
59 | 57 | "Pitch sync threshold");
|
60 |
| -EXTERN double_VAR (textord_words_def_fixed, 0.016, |
| 58 | +double_VAR (textord_words_def_fixed, 0.016, |
61 | 59 | "Threshold for definite fixed");
|
62 |
| -EXTERN double_VAR (textord_words_def_prop, 0.090, |
| 60 | +double_VAR (textord_words_def_prop, 0.090, |
63 | 61 | "Threshold for definite prop");
|
64 |
| -EXTERN INT_VAR (textord_words_veto_power, 5, |
| 62 | +INT_VAR (textord_words_veto_power, 5, |
65 | 63 | "Rows required to outvote a veto");
|
66 |
| -EXTERN double_VAR (textord_pitch_rowsimilarity, 0.08, |
| 64 | +double_VAR (textord_pitch_rowsimilarity, 0.08, |
67 | 65 | "Fraction of xheight for sameness");
|
68 |
| -EXTERN BOOL_VAR (textord_pitch_scalebigwords, false, |
| 66 | +BOOL_VAR (textord_pitch_scalebigwords, false, |
69 | 67 | "Scale scores on big words");
|
70 |
| -EXTERN double_VAR(words_initial_lower, 0.5, "Max initial cluster size"); |
71 |
| -EXTERN double_VAR (words_initial_upper, 0.15, "Min initial cluster spacing"); |
72 |
| -EXTERN double_VAR (words_default_prop_nonspace, 0.25, "Fraction of xheight"); |
73 |
| -EXTERN double_VAR (words_default_fixed_space, 0.75, "Fraction of xheight"); |
74 |
| -EXTERN double_VAR (words_default_fixed_limit, 0.6, "Allowed size variance"); |
75 |
| -EXTERN double_VAR (textord_words_definite_spread, 0.30, |
| 68 | +double_VAR(words_initial_lower, 0.5, "Max initial cluster size"); |
| 69 | +double_VAR (words_initial_upper, 0.15, "Min initial cluster spacing"); |
| 70 | +double_VAR (words_default_prop_nonspace, 0.25, "Fraction of xheight"); |
| 71 | +double_VAR (words_default_fixed_space, 0.75, "Fraction of xheight"); |
| 72 | +double_VAR (words_default_fixed_limit, 0.6, "Allowed size variance"); |
| 73 | +double_VAR (textord_words_definite_spread, 0.30, |
76 | 74 | "Non-fuzzy spacing region");
|
77 |
| -EXTERN double_VAR (textord_spacesize_ratiofp, 2.8, |
| 75 | +double_VAR (textord_spacesize_ratiofp, 2.8, |
78 | 76 | "Min ratio space/nonspace");
|
79 |
| -EXTERN double_VAR (textord_spacesize_ratioprop, 2.0, |
| 77 | +double_VAR (textord_spacesize_ratioprop, 2.0, |
80 | 78 | "Min ratio space/nonspace");
|
81 |
| -EXTERN double_VAR (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold"); |
82 |
| -EXTERN double_VAR (textord_max_pitch_iqr, 0.20, "Xh fraction noise in pitch"); |
83 |
| -EXTERN double_VAR (textord_fp_min_width, 0.5, "Min width of decent blobs"); |
| 79 | +double_VAR (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold"); |
| 80 | +double_VAR (textord_max_pitch_iqr, 0.20, "Xh fraction noise in pitch"); |
| 81 | +double_VAR (textord_fp_min_width, 0.5, "Min width of decent blobs"); |
0 commit comments