22#ifndef TRAININGDATA_LIGATURE_TABLE_H_
23#define TRAININGDATA_LIGATURE_TABLE_H_
29#include <unordered_map>
36using LigHash = std::unordered_map<std::string, std::string>;
46 std::string AddLigatures(
const std::string &str,
const PangoFontInfo *font)
const;
48 std::string RemoveLigatures(
const std::string &str)
const;
50 std::string RemoveCustomLigatures(
const std::string &str)
const;
53 return norm_to_lig_table_;
56 return lig_to_norm_table_;
std::unordered_map< std::string, std::string > LigHash
const LigHash & norm_to_lig_table() const
const LigHash & lig_to_norm_table() const
static std::unique_ptr< LigatureTable > instance_
LigHash norm_to_lig_table_
LigHash lig_to_norm_table_