src/textord/colpartitionset.cpp
void ColPartitionSet::ComputeCoverage() {
  // Count the number of good columns and sum their width.
  ColPartition_IT it(&parts_);
  good_column_count_ = 0;
  good_coverage_ = 0;
  bad_coverage_ = 0;
  bounding_box_ = TBOX();
  for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
    ColPartition *part = it.data();
    AddPartitionCoverageAndBox(*part);
  }
}
// Compute the coverage and good column count. Coverage is the amount of the
// width of the page (in pixels) that is covered by ColPartitions, which are
// used to provide candidate column layouts.
// Coverage is split into good and bad. Good coverage is provided by
// ColPartitions of a frequent width (according to the callback function
// provided by TabFinder::WidthCB, which accesses stored statistics on the
// widths of ColPartitions) and bad coverage is provided by all other
// ColPartitions, even if they have tab vectors at both sides. Thus:
// |-----------------------------------------------------------------|
// |        Double     width    heading                              |
// |-----------------------------------------------------------------|
// |-------------------------------| |-------------------------------|
// |   Common width ColParition    | |  Common width ColPartition    |
// |-------------------------------| |-------------------------------|
// the layout with two common-width columns has better coverage than the
// double width heading, because the coverage is "good," even though less in
// total coverage than the heading, because the heading coverage is "bad."
Compute the coverage and good column count. Coverage is the amount of the
width of the page (in pixels) that is covered by ColPartitions, which are
used to provide candidate column layouts.
Coverage is split into good and bad. Good coverage is provided by
ColPartitions of a frequent width (according to the callback function
provided by TabFinder::WidthCB, which accesses stored statistics on the
widths of ColPartitions) and bad coverage is provided by all other
ColPartitions, even if they have tab vectors at both sides.
Compute the coverage and good column count . Coverage is the amount of the width of the page ( in pixels ) that is covered by ColPartitions which are used to provide candidate column layouts . Coverage is split into good and bad . Good coverage is provided by ColPartitions of a frequent width ( according to the callback function provided by TabFinder :: WidthCB which accesses stored statistics on the widths of ColPartitions ) and bad coverage is provided by all other ColPartitions even if they have tab vectors at both sides .
void ColPartitionSet::ComputeCoverage() {
  ColPartition_IT it(&parts_);
  good_column_count_ = 0;
  good_coverage_ = 0;
  bad_coverage_ = 0;
  bounding_box_ = TBOX();
  for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
    ColPartition *part = it.data();
    AddPartitionCoverageAndBox(*part);
  }
}
void ColPartitionSet :: ComputeCoverage ( ) { ColPartition_IT it ( & parts_ ) ; good_column_count_ = 0 ; good_coverage_ = 0 ; bad_coverage_ = 0 ; bounding_box_ = TBOX ( ) ; for ( it . mark_cycle_pt ( ) ; ! it . cycled_list ( ) ; it . forward ( ) ) { ColPartition * part = it . data ( ) ; AddPartitionCoverageAndBox ( * part ) ; } }
Compute the coverage and good column count.
Compute the coverage and good column count .
// Count the number of good columns and sum their width.