22 #ifndef TESSERACT_CCMAIN_RESULT_ITERATOR_H_
23 #define TESSERACT_CCMAIN_RESULT_ITERATOR_H_
59 void Begin()
override;
93 int BlanksBeforeWord()
const;
106 virtual std::vector<std::vector<std::vector<std::pair<const char*, float>>>>*
107 GetRawLSTMTimesteps()
const;
108 virtual std::vector<std::vector<std::pair<const char*, float>>>*
109 GetBestLSTMSymbolChoices()
const;
115 bool ParagraphIsLtr()
const;
141 static void CalculateTextlineOrder(
142 bool paragraph_is_ltr,
164 bool CurrentParagraphIsLtr()
const;
177 void CalculateTextlineOrder(
bool paragraph_is_ltr,
181 void CalculateTextlineOrder(
bool paragraph_is_ltr,
190 int LTRWordIndex()
const;
199 void MoveToLogicalStartOfTextline();
205 void MoveToLogicalStartOfWord();
208 bool IsAtFinalSymbolOfWord()
const;
211 bool IsAtFirstSymbolOfWord()
const;
217 void AppendSuffixMarks(
STRING* text)
const;
220 void AppendUTF8WordText(
STRING* text)
const;
229 void IterateAndAppendUTF8TextlineText(
STRING* text);
237 void AppendUTF8ParagraphText(
STRING* text)
const;
240 bool BidiDebug(
int min_level)
const;
242 bool current_paragraph_is_ltr_;
248 bool at_beginning_of_minor_run_;
251 bool in_minor_direction_;
257 bool preserve_interword_spaces_;
262 #endif // TESSERACT_CCMAIN_RESULT_ITERATOR_H_