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