Go to the source code of this file.
void compute_fixed_pitch_cjk |
( |
ICOORD |
page_tr, |
|
|
TO_BLOCK_LIST * |
port_blocks |
|
) |
| |
Definition at line 1057 of file cjkpitch.cpp.
1059 FPAnalyzer analyzer;
1060 analyzer.Init(page_tr, port_blocks);
1061 if (analyzer.num_rows() == 0)
return;
1063 analyzer.Pass1Analyze();
1064 analyzer.EstimatePitch(
true);
1068 analyzer.Pass1Analyze();
1069 analyzer.EstimatePitch(
true);
1072 if (!analyzer.maybe_fixed_pitch()) {
1074 tprintf(
"Page doesn't seem to contain fixed pitch rows\n");
1081 analyzer.MergeFragments();
1082 analyzer.FinalizeLargeChars();
1083 analyzer.EstimatePitch(
false);
1085 }
while (analyzer.Pass2Analyze() && iteration < analyzer.max_iteration());
1088 tprintf(
"compute_fixed_pitch_cjk finished after %d iteration (limit=%d)\n",
1089 iteration, analyzer.max_iteration());
1092 analyzer.OutputEstimations();
EXTERN bool textord_debug_pitch_test