#include <ligature_table.h>
Definition at line 55 of file ligature_table.h.
◆ LigatureTable()
tesseract::LigatureTable::LigatureTable |
( |
| ) |
|
|
protected |
◆ AddLigatures()
◆ Get()
◆ Init()
void tesseract::LigatureTable::Init |
( |
| ) |
|
|
protected |
Definition at line 81 of file ligature_table.cpp.
113 UNICHAR::const_iterator it_begin =
UNICHAR::begin(str.c_str(), str.length());
114 UNICHAR::const_iterator it_end =
UNICHAR::end(str.c_str(), str.length());
117 for (UNICHAR::const_iterator it = it_begin; it != it_end; ++it) {
122 result += lig_it->second;
◆ lig_to_norm_table()
const LigHash& tesseract::LigatureTable::lig_to_norm_table |
( |
| ) |
const |
|
inline |
◆ norm_to_lig_table()
const LigHash& tesseract::LigatureTable::norm_to_lig_table |
( |
| ) |
const |
|
inline |
◆ RemoveCustomLigatures()
Definition at line 148 of file ligature_table.cpp.
157 const PangoFontInfo* font)
const {
159 int len = str.size();
165 if (i + liglen <= len) {
169 tlog(3,
"Considering %s -> %s\n", lig_cand.c_str(),
◆ RemoveLigatures()
Definition at line 129 of file ligature_table.cpp.
132 UNICHAR::const_iterator it_begin =
UNICHAR::begin(str.c_str(), str.length());
133 UNICHAR::const_iterator it_end =
UNICHAR::end(str.c_str(), str.length());
137 for (UNICHAR::const_iterator it = it_begin; it != it_end; ++it) {
◆ instance_
std::unique_ptr< LigatureTable > tesseract::LigatureTable::instance_ |
|
staticprotected |
◆ lig_to_norm_table_
LigHash tesseract::LigatureTable::lig_to_norm_table_ |
|
protected |
◆ max_lig_length_
int tesseract::LigatureTable::max_lig_length_ |
|
protected |
◆ max_norm_length_
int tesseract::LigatureTable::max_norm_length_ |
|
protected |
◆ min_lig_length_
int tesseract::LigatureTable::min_lig_length_ |
|
protected |
◆ min_norm_length_
int tesseract::LigatureTable::min_norm_length_ |
|
protected |
◆ norm_to_lig_table_
LigHash tesseract::LigatureTable::norm_to_lig_table_ |
|
protected |
The documentation for this class was generated from the following files: