22 #ifndef TRAININGDATA_LIGATURE_TABLE_H_ 23 #define TRAININGDATA_LIGATURE_TABLE_H_ 27 #include <unordered_map> 36 using LigHash = std::unordered_map<std::string, std::string, StringHash>;
80 #endif // OCR_TRAININGDATA_TYPESETTING_LIGATURE_TABLE_H_ static LigatureTable * Get()
Definition: ligature_table.cpp:52
int max_lig_length_
Definition: ligature_table.h:69
std::unordered_map< std::string, std::string, StringHash > LigHash
Definition: ligature_table.h:36
int min_norm_length_
Definition: ligature_table.h:70
LigatureTable()
Definition: ligature_table.cpp:60
Definition: baseapi.cpp:94
int min_lig_length_
Definition: ligature_table.h:68
void operator=(const LigatureTable &)
static std::unique_ptr< LigatureTable > instance_
Definition: ligature_table.h:65
Definition: ligature_table.h:38
Definition: pango_font_info.h:44
void Init()
Definition: ligature_table.cpp:63
int max_norm_length_
Definition: ligature_table.h:71
std::string RemoveCustomLigatures(const std::string &str) const
Definition: ligature_table.cpp:130
const LigHash & norm_to_lig_table() const
Definition: ligature_table.h:52
LigHash norm_to_lig_table_
Definition: ligature_table.h:66
LigHash lig_to_norm_table_
Definition: ligature_table.h:67
std::string RemoveLigatures(const std::string &str) const
Definition: ligature_table.cpp:111
std::string AddLigatures(const std::string &str, const PangoFontInfo *font) const
Definition: ligature_table.cpp:156
const LigHash & lig_to_norm_table() const
Definition: ligature_table.h:55