29
30
int *fromLength, int *toLength );
32
* Make a line of TextList and store the bounding rectangle of line
34
typedef QList<TextList> SortedTextList;
35
typedef QList<QRect> LineRect;
38
33
* A list of RegionText. It keeps a bunch of TextList with their bounding rectangles
40
35
typedef QList<RegionText> RegionTextList;
62
57
void setWordList(const TextList &list);
65
* Copy m_words to a new TextList, it is the caller responsability to free the pointers
67
TextList duplicateWordList() const;
70
60
* Make necessary modifications in the TextList to make the text order correct, so
71
61
* that textselection works fine
73
63
void correctTextOrder();
76
* Remove odd spaces which are much bigger than normal spaces from m_words
81
* Create words from characters
83
QHash<QRect, RegionText> makeWordFromCharacters();
86
* Create lines from TextList and sort them according to their position
88
void makeAndSortLines(const TextList &words, SortedTextList *lines, LineRect *line_rects);
91
* Caluclate statistical info like, word spacing, column spacing, line spacing from the Lines
94
void calculateStatisticalInformation(const SortedTextList &lines, const LineRect &line_rects, int *word_spacing,
95
int *line_spacing, int *column_spacing);
98
* Functions necessary for document file segmentation into text regions for document layout
101
RegionTextList XYCutForBoundingBoxes(int tcx, int tcy);
104
* Add additional spaces between words, if necessary, which can make the words valuable
105
* while copying after selection
107
void addNecessarySpace(RegionTextList tree);
110
* Break the words into characters, so the text selection wors fine
112
void breakWordIntoCharacters(const QHash<QRect, RegionText> &words_char_map);
114
65
// variables those can be accessed directly from TextPage
116
67
QMap< int, SearchPoint* > m_searchPoints;