Mohammad Mahfuzur Rahman Mamun
dca4ee559c
Another Code Refactoring done
15 years ago
Mohammad Mahfuzur Rahman Mamun
88ec0951fe
Some code restructure changes in textpage.cpp
15 years ago
Mohammad Mahfuzur Rahman Mamun
73d4a31350
code recommenting done in textpage.cpp
15 years ago
Mohammad Mahfuzur Rahman Mamun
5a8b984f14
debugging and printing removed from textpage.cpp ... need code recomment now
15 years ago
Mohammad Mahfuzur Rahman Mamun
10b11903c2
Removal of black selection for epub or odt is working with some problem
15 years ago
Mohammad Mahfuzur Rahman Mamun
929e4b6a0e
Removed some double selection Problem
15 years ago
Mohammad Mahfuzur Rahman Mamun
b50b622a25
A Little change in the makeandsort lines
15 years ago
Mohammad Mahfuzur Rahman Mamun
1ef68e3301
text selection for both selection type 01 and 02 seems to be working correctly
15 years ago
Mohammad Mahfuzur Rahman Mamun
9a07e04fe3
another try for second type selection
15 years ago
Mohammad Mahfuzur Rahman Mamun
ff289f819c
selection 02 implemented but not working perfectly
15 years ago
Mohammad Mahfuzur Rahman Mamun
9168932079
trying to solve the second kind of selecction
15 years ago
Mohammad Mahfuzur Rahman Mamun
b599f02205
second type selection crashing
15 years ago
Mohammad Mahfuzur Rahman Mamun
c598b7749d
removal of some crashes
15 years ago
Mohammad Mahfuzur Rahman Mamun
fe20bcf157
an small but important change in XYCut and possible memory leak protection for m_spaces
15 years ago
Mohammad Mahfuzur Rahman Mamun
6623014fc5
some change in makeWord
15 years ago
Mohammad Mahfuzur Rahman Mamun
b69d9e0262
implementation of parameter tuning of XYcut using local information
15 years ago
Mohammad Mahfuzur Rahman Mamun
2809c3c747
makeAndSortLines changed to remove some similar code redundancy
15 years ago
Mohammad Mahfuzur Rahman Mamun
9343babe43
some issues regarding selection (TextPage::textArea) solved
15 years ago
Mohammad Mahfuzur Rahman Mamun
e406207444
character selection added in rearranged code
15 years ago
Mohammad Mahfuzur Rahman Mamun
8a3d4b2db5
some rearrangement and redesign of the code
15 years ago
Mohammad Mahfuzur Rahman Mamun
33d0facf4e
selection of text by character done ... need some testing and debug
15 years ago
Mohammad Mahfuzur Rahman Mamun
3d0564fa40
changed the added space scheme ... looking nice now :)
15 years ago
Mohammad Mahfuzur Rahman Mamun
1bbb192fce
added spaces between words ... looking very bad though ... will be solved later
15 years ago
Mohammad Mahfuzur Rahman Mamun
b288243324
This version is not crashing in my pc ... just checked with first 5 pages of http://www.icir.org/floyd/papers/early.twocolumn.pdf
15 years ago
Mohammad Mahfuzur Rahman Mamun
588b054365
Our own selection based on XY Cut seems to work except for mathematical forumlas
15 years ago
Mohammad Mahfuzur Rahman Mamun
8eda44b435
crash in makeword removed
15 years ago
Mohammad Mahfuzur Rahman Mamun
ccc9a62b0d
XY Cut implementation primary version done ... (need to test and debug)
15 years ago
Mohammad Mahfuzur Rahman Mamun
e2b0e0816c
calculation of horizontal and vertical projection profile done
15 years ago
Mohammad Mahfuzur Rahman Mamun
4d33b929ec
some addition for line rectangle and some bug fixing
15 years ago
Mohammad Mahfuzur Rahman Mamun
f14a8502dd
remove some problems from makeWord function in textPage
15 years ago
Mohammad Mahfuzur Rahman Mamun
e07fca1d47
creating words from single chracters before layout analysis
15 years ago
Mohammad Mahfuzur Rahman Mamun
bbd28aa8bf
calculation of column space rectangle and a try to separate columns from a two column document on that basis
15 years ago
Mohammad Mahfuzur Rahman Mamun
4c5d844e28
Find word spacing and column spacing
15 years ago
Mohammad Mahfuzur Rahman Mamun
27d0f2f8c6
create and sort lines by y overlap first and then according to x ordering
15 years ago
Mohammad Mahfuzur Rahman Mamun
2eb5f270fd
three functions added in textpage
15 years ago
Mohammad Mahfuzur Rahman Mamun
30e57988fc
unnecessary comments removed and a small change
15 years ago
Mohammad Mahfuzur Rahman Mamun
57db9f4c19
textSelection according to the TextList seems to work fine -- tested with some pdfs
15 years ago
Mohammad Mahfuzur Rahman Mamun
3798bd7398
primary text selection for more than one columns -- have problem if start or end is in empty space
15 years ago
Myreal Name
2149fb46ef
Another message
15 years ago
Albert Astals Cid
439e7b9799
remove unused variables
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230896
15 years ago
Albert Astals Cid
38462d062a
"Normalize" strings so searching for ligatures like "fi" works
...
Patch by Christopher Reichert
BUGS: 181828
svn path=/trunk/KDE/kdegraphics/okular/; revision=1225994
15 years ago
Albert Astals Cid
50e3519ffc
Fix off by one error on setting the search boundary limits
...
Fix researched by Christopher Reichert
Will backport to 4.6 if works fine in trunk for a while
BUGS: 266535
svn path=/trunk/KDE/kdegraphics/okular/; revision=1224201
15 years ago
Albert Astals Cid
6ad8e94d53
make the forward and backward search code more similar
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1170644
16 years ago
Albert Astals Cid
649722af24
add some const makes the code a bit easier to understand
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1170640
16 years ago
Glen Kaukola
45c82f8636
Krazy: Check for spelling errors
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110329
16 years ago
Pino Toscano
873689b1d4
small optimization in the internal TinyTextEntity storage:
...
instead of always creating (with new[]) the memory buffer for the chars, try to pack them into the space of the QChar*, if they are very few (2 on 32bit, 4 on 64bit)
this way the number of new[]+delete[] needed for storing text is slightly reduced, especially for documents with fine-grained text extraction (pdf, dvi, fb2, odt)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066934
16 years ago
Pino Toscano
192c0a0880
refactor a bit the string matching in text search, using a intermediate comparer function
...
this way, we can choose the comparing strategy before starting the search
also, make the comparer function use stringref, so we avoid copying data from the original strings (meaning less memory used, and slightly faster)
provide two comparing strategies, case sensitive and case insensitive, to continue doing the same job done so far
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066591
16 years ago
Albert Astals Cid
8f045d06a7
add a text() function that returns characters not containing any pixel inside the given area but the center pixel of the char rectangle
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1048193
17 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
7183c172c2
Do not ignore (white)spaces in the search query when searching within the text of a page;
...
search verbatim in the text page, while any other change in the query should be done at a Document level.
BUG: 172244
svn path=/trunk/KDE/kdegraphics/okular/; revision=873277
18 years ago