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
Frederik Schwarzer
39e964b2a0
typos
...
- smaller then -> smaller than
- bigger then -> bigger than
- ... then -> ... than
svn path=/trunk/KDE/kdegraphics/okular/; revision=872264
18 years ago
Frederik Schwarzer
5626a6d60c
global typo
...
more then -> more than
other then -> other than
svn path=/trunk/KDE/kdegraphics/okular/; revision=872169
18 years ago
Pino Toscano
e8e93ee179
Internally replace a TextEntity with a "lighter version", that stores the raw UTF-16 data of the text.
...
This way, we can save about 4 int's for each text entity; this is not much for small documents,
but with big documents with lots of text (eg, the PDF specs) we can save a lot (more than 50MB!).
CCBUG: 161213
svn path=/trunk/KDE/kdegraphics/okular/; revision=803048
18 years ago
Pino Toscano
93c57bac43
add a simpler ctor for the private class of textpage
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=798434
18 years ago
Pino Toscano
89064c11bf
keep the iterators to the begin and the end of the text entity/ies contaning the search term;
...
this way, when the search direction is changed we can continue excluding the current result
svn path=/trunk/KDE/kdegraphics/okular/; revision=785682
18 years ago
Pino Toscano
8a858a9449
Core implementation of the backward text search, to be used now in the search bar.
...
Works pretty well -- the only problem left is that when changing the search direction, the first match is the current match.
svn path=/trunk/KDE/kdegraphics/okular/; revision=785629
18 years ago
Pino Toscano
097a606520
more strict checks for the search
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=785611
18 years ago
Pino Toscano
805b0f3386
Introduce a selective merging strategy for text areas, so we merge only all the areas of a text "line" together, not also with the areas above (if the lines overlap).
...
Adapt the text selection to merge correctly depending on the current rotation.
Drawback: darker overlap zones if two lines overlap.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708745
19 years ago