Commit 1bbb192f authored by Mohammad Mahfuzur Rahman Mamun's avatar Mohammad Mahfuzur Rahman Mamun
Browse files

added spaces between words ... looking very bad though ... will be solved later

parent b2882433
......@@ -2327,10 +2327,7 @@ void Document::requestTextPage( uint page )
d->m_generator->generateTextPage( kp );
TextPage *tmpPage = d->m_pagesVector[page]->d->m_text;
tmpPage->removeSpace();
tmpPage->correctTextOrder();
// tmpPage->addNecessarySpace();
}
void Document::addPageAnnotation( int page, Annotation * annotation )
......
This diff is collapsed.
......@@ -194,12 +194,6 @@ class OKULAR_EXPORT TextPage
**/
void makeAndSortLines();
/**
add additional spaces between words, if necessary, which can make the words valuable
while copying after selection
**/
void addNecessarySpace();
/**
Functions necessary for document file segmentation into text regions for document layout
analysis.
......
......@@ -25,6 +25,9 @@ namespace Okular
class PagePrivate;
typedef QList< TinyTextEntity* > TextList;
/** list of RegionText -- keeps a bunch of TextList with their bounding rectangles **/
typedef QList<RegionText> RegionTextList;
typedef bool ( *TextComparisonFunction )( const QStringRef & from, const QStringRef & to,
int *fromLength, int *toLength );
......@@ -59,7 +62,16 @@ class TextPagePrivate
/** copy a TextList to m_words **/
void copy(TextList &list);
/**
add additional spaces between words, if necessary, which can make the words valuable
while copying after selection
**/
void addNecessarySpace(RegionTextList tree);
RegionTextList m_region_words;
TextList m_spaces;
TextList m_words;
TextList m_tmp_words;
QMap< int, SearchPoint* > m_searchPoints;
PagePrivate *m_page;
SortedTextList m_lines;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment