22 #ifndef TRAININGDATA_LIGATURE_TABLE_H_ 23 #define TRAININGDATA_LIGATURE_TABLE_H_ 27 #include <unordered_map> 36 typedef std::unordered_map<std::string, std::string, StringHash>
LigHash;
80 #endif // OCR_TRAININGDATA_TYPESETTING_LIGATURE_TABLE_H_ std::unordered_map< std::string, std::string, StringHash > LigHash
std::string RemoveLigatures(const std::string &str) const
LigHash norm_to_lig_table_
static std::unique_ptr< LigatureTable > instance_
std::string AddLigatures(const std::string &str, const PangoFontInfo *font) const
std::string RemoveCustomLigatures(const std::string &str) const
static LigatureTable * Get()
LigHash lig_to_norm_table_
const LigHash & norm_to_lig_table() const
const LigHash & lig_to_norm_table() const