Albert Astals Cid
e842bcdfed
No need to if the delete
15 years ago
Mahfuzur Rahman Mamun
d7576a6a2b
Fix crashes
...
1. I replaced the previous fixed memory array with dynamic memory allocation
(line 18-20).
2. Put some extra check so that we do not access under or over the boundary
of arrays (line 29-30,37-38)
3. Removed some unnecessary parts(line 46-48,56-58)
4. Instead of appending already existing element, I have created new
TinyTextEntity elements and removed them after usage(72-73,79)
5. Restored the deletion of words(78). Deletion of word will crash the
program, as all the TinyTextEntity in the nodes of the tree has reference to
words. This memory will be deallocated at line 105.
6. Another change like 4 is done in line 96-97.
15 years ago
Albert Astals Cid
75cac8a3c6
I am pretty sure we need to delete this
15 years ago
Albert Astals Cid
0e1efa6516
rework the API a bit so we can assign it to const variables
15 years ago
Albert Astals Cid
d0d2b45a11
Fix TextPagePrivate::removeSpace iteration
...
You need to use the iterator returned by erase
15 years ago
Albert Astals Cid
ccc317bc5c
remove toAscii().data() since that is already a QString
15 years ago
Albert Astals Cid
2bec8e3aaa
add some const, will make the code easier to read later on
15 years ago
Albert Astals Cid
7dbc4f48e1
Do not use this->
15 years ago
Albert Astals Cid
d6b5a70951
Mark file local functions static
15 years ago
Albert Astals Cid
0e825cc599
fix potential memory leak
15 years ago
Albert Astals Cid
be8f9bd9cb
Rename copy* functions to something I like more
15 years ago
Albert Astals Cid
c78a7069b1
fix bad merge
15 years ago
Albert Astals Cid
a9fd44009e
Add some const &
15 years ago
Mohammad Mahfuzur Rahman Mamun
c55ee4b70d
A last moment refactoring of the code ... some const & changes
15 years ago
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