22 #ifndef TESSERACT_CCMAIN_RESULT_ITERATOR_H_
23 #define TESSERACT_CCMAIN_RESULT_ITERATOR_H_
56 void Begin()
override;
90 int BlanksBeforeWord()
const;
103 virtual std::vector<std::vector<std::pair<const char*, float>>>*
104 GetBestLSTMSymbolChoices()
const;
110 bool ParagraphIsLtr()
const;
136 static void CalculateTextlineOrder(
137 bool paragraph_is_ltr,
159 bool CurrentParagraphIsLtr()
const;
172 void CalculateTextlineOrder(
bool paragraph_is_ltr,
176 void CalculateTextlineOrder(
bool paragraph_is_ltr,
185 int LTRWordIndex()
const;
194 void MoveToLogicalStartOfTextline();
200 void MoveToLogicalStartOfWord();
203 bool IsAtFinalSymbolOfWord()
const;
206 bool IsAtFirstSymbolOfWord()
const;
212 void AppendSuffixMarks(
STRING *text)
const;
215 void AppendUTF8WordText(
STRING *text)
const;
224 void IterateAndAppendUTF8TextlineText(
STRING *text);
232 void AppendUTF8ParagraphText(
STRING *text)
const;
235 bool BidiDebug(
int min_level)
const;
237 bool current_paragraph_is_ltr_;
243 bool at_beginning_of_minor_run_;
246 bool in_minor_direction_;
252 bool preserve_interword_spaces_;
257 #endif // TESSERACT_CCMAIN_RESULT_ITERATOR_H_