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_
LigHash norm_to_lig_table_
std::unordered_map< std::string, std::string, StringHash > LigHash
std::string RemoveLigatures(const std::string &str) const
static std::unique_ptr< LigatureTable > instance_
static LigatureTable * Get()
const LigHash & lig_to_norm_table() const
std::string AddLigatures(const std::string &str, const PangoFontInfo *font) const
LigHash lig_to_norm_table_
std::string RemoveCustomLigatures(const std::string &str) const
const LigHash & norm_to_lig_table() const