Go to the source code of this file.
◆ compute_fixed_pitch_cjk()
void compute_fixed_pitch_cjk |
( |
ICOORD |
page_tr, |
|
|
TO_BLOCK_LIST * |
port_blocks |
|
) |
| |
Definition at line 1060 of file cjkpitch.cpp.
1062 FPAnalyzer analyzer(page_tr, port_blocks);
1063 if (analyzer.num_rows() == 0)
return;
1065 analyzer.Pass1Analyze();
1066 analyzer.EstimatePitch(
true);
1070 analyzer.Pass1Analyze();
1071 analyzer.EstimatePitch(
true);
1074 if (!analyzer.maybe_fixed_pitch()) {
1076 tprintf(
"Page doesn't seem to contain fixed pitch rows\n");
1081 unsigned iteration = 0;
1083 analyzer.MergeFragments();
1084 analyzer.FinalizeLargeChars();
1085 analyzer.EstimatePitch(
false);
1087 }
while (analyzer.Pass2Analyze() && iteration < analyzer.max_iteration());
1090 tprintf(
"compute_fixed_pitch_cjk finished after %u iteration (limit=%u)\n",
1091 iteration, analyzer.max_iteration());
1094 analyzer.OutputEstimations();
DLLSYM void tprintf(const char *format,...)
EXTERN bool textord_debug_pitch_test