tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::LigatureTable Class Reference

#include <ligature_table.h>

Collaboration diagram for tesseract::LigatureTable:

Public Member Functions

std::string AddLigatures (const std::string &str, const PangoFontInfo *font) const
 
std::string RemoveLigatures (const std::string &str) const
 
std::string RemoveCustomLigatures (const std::string &str) const
 
const LigHashnorm_to_lig_table () const
 
const LigHashlig_to_norm_table () const
 

Static Public Member Functions

static LigatureTableGet ()
 

Protected Member Functions

 LigatureTable ()
 
void Init ()
 

Protected Attributes

LigHash norm_to_lig_table_
 
LigHash lig_to_norm_table_
 
int min_lig_length_
 
int max_lig_length_
 
int min_norm_length_
 
int max_norm_length_
 

Static Protected Attributes

static std::unique_ptr< LigatureTableinstance_
 

Private Member Functions

 LigatureTable (const LigatureTable &)
 
void operator= (const LigatureTable &)
 

Constructor & Destructor Documentation

◆ LigatureTable() [1/2]

tesseract::LigatureTable::LigatureTable ( )
protected

◆ LigatureTable() [2/2]

tesseract::LigatureTable::LigatureTable ( const LigatureTable )
private

Member Function Documentation

◆ AddLigatures()

std::string tesseract::LigatureTable::AddLigatures ( const std::string &  str,
const PangoFontInfo font 
) const

◆ Get()

LigatureTable * tesseract::LigatureTable::Get ( )
static

◆ Init()

void tesseract::LigatureTable::Init ( )
protected

◆ lig_to_norm_table()

const LigHash& tesseract::LigatureTable::lig_to_norm_table ( ) const
inline

◆ norm_to_lig_table()

const LigHash& tesseract::LigatureTable::norm_to_lig_table ( ) const
inline

◆ operator=()

void tesseract::LigatureTable::operator= ( const LigatureTable )
private

◆ RemoveCustomLigatures()

std::string tesseract::LigatureTable::RemoveCustomLigatures ( const std::string &  str) const

◆ RemoveLigatures()

std::string tesseract::LigatureTable::RemoveLigatures ( const std::string &  str) const

Member Data Documentation

◆ instance_

std::unique_ptr< LigatureTable > tesseract::LigatureTable::instance_
staticprotected

◆ lig_to_norm_table_

LigHash tesseract::LigatureTable::lig_to_norm_table_
protected

◆ max_lig_length_

int tesseract::LigatureTable::max_lig_length_
protected

◆ max_norm_length_

int tesseract::LigatureTable::max_norm_length_
protected

◆ min_lig_length_

int tesseract::LigatureTable::min_lig_length_
protected

◆ min_norm_length_

int tesseract::LigatureTable::min_norm_length_
protected

◆ norm_to_lig_table_

LigHash tesseract::LigatureTable::norm_to_lig_table_
protected

The documentation for this class was generated from the following files: