src/ccstruct/pageres.cpp
void WERD_RES::fix_hyphens() {
  if (!uch_set->contains_unichar("-") ||
      !uch_set->get_enabled(uch_set->unichar_to_id("-"))) {
    return; // Don't create it if it is disallowed.
  }

  using namespace std::placeholders; // for _1, _2
  ConditionalBlobMerge(std::bind(&WERD_RES::BothHyphens, this, _1, _2),
                       std::bind(&WERD_RES::HyphenBoxesOverlap, this, _1, _2));
}
// Change pairs of hyphens to a single hyphen if the bounding boxes touch
// Typically a long dash which has been segmented.
Change pairs of hyphens to a single hyphen if the bounding boxes touch
Typically a long dash which has been segmented.
Change pairs of hyphens to a single hyphen if the bounding boxes touch Typically a long dash which has been segmented .
void WERD_RES::fix_hyphens() {
  if (!uch_set->contains_unichar("-") ||
      !uch_set->get_enabled(uch_set->unichar_to_id("-"))) {
    return; 
  }
  using namespace std::placeholders; 
  ConditionalBlobMerge(std::bind(&WERD_RES::BothHyphens, this, _1, _2),
                       std::bind(&WERD_RES::HyphenBoxesOverlap, this, _1, _2));
}
void WERD_RES :: fix_hyphens ( ) { if ( ! uch_set -> contains_unichar ( " " ) || ! uch_set -> get_enabled ( uch_set -> unichar_to_id ( " " ) ) ) { return ; } using namespace std :: placeholders ; ConditionalBlobMerge ( std :: bind ( & WERD_RES :: BothHyphens , this , _1 , _2 ) , std :: bind ( & WERD_RES :: HyphenBoxesOverlap , this , _1 , _2 ) ) ; }
Change pairs of hyphens to a single hyphen if the bounding boxes touch
Typically a long dash which has been segmented.
Change pairs of hyphens to a single hyphen if the bounding boxes touch Typically a long dash which has been segmented .
// Don't create it if it is disallowed. // for _1, _2