Dobrica Pavlinusic
a46dae3341
Merge branch 'master' of github.com:dpavlin/kindlepdfviewer
2012-04-14 00:04:25 +02:00
Dobrica Pavlinusic
b6d167f8ca
remove page:getPageText debug dump to improve performance on device
...
And leave it in unireader if we can't find text on page
2012-04-14 00:03:16 +02:00
Dobrica Pavlinusic
56ddad6a38
remove page:getPageText debug dump to improve performance on device
2012-04-13 23:54:06 +02:00
Dobrica Pavlinusic
a65090025c
display crash.log on error
2012-04-13 23:53:36 +02:00
Dobrica Pavlinusic
ffa663d37d
added few more keys to inputbox
2012-04-13 20:52:30 +02:00
Dobrica Pavlinusic
81c6dc5997
commands.map is very large, impacts startup performance on device
2012-04-13 20:46:10 +02:00
Dobrica Pavlinusic
96958c62ca
added UniReader:screenOffset and use it
2012-04-13 18:10:11 +02:00
Dobrica Pavlinusic
4d49e9f28b
correct two-column margin calculation respecting globalzoom
2012-04-13 17:57:49 +02:00
Dobrica Pavlinusic
0a8ca94218
make highlight working in all zoom modes #103
...
This change introduce object's dest_x and dest_y coordinates which
are needed in zoomedRectCoordTransform to make highlight scale and
move according to current pan position.
2012-04-13 16:51:17 +02:00
Dobrica Pavlinušić
ef6ab7d0db
Merge pull request #107 from houqp/master
...
show_overlap calculation bug in two column mode
2012-04-13 03:58:51 -07:00
Qingping Hou
3828a6c440
fix: clear show_overlap in two column mode on KEY_FW_{LEFT, RIGHT}
2012-04-13 17:09:15 +08:00
Qingping Hou
cafa86a5bd
fix condition in saveWaitForEvent()
...
add newline escape sequence.
close #106
2012-04-13 15:19:42 +08:00
Qingping Hou
e0327ed4e8
fix: enable screen rotate in crereader.lua
2012-04-13 12:46:33 +08:00
Qingping Hou
75f244eb60
fix: typo in unireader
2012-04-13 10:37:50 +08:00
HW
57d769e0ae
added wrapper function for input.waitForEvent that retries on EINTR
2012-04-12 21:00:44 +02:00
HW
b11c5f414a
highlighting: fixed segfault when there's no text on a PDF page
...
also, add a few more whitespace characters from the Unicode standard.
2012-04-12 20:02:53 +02:00
Qingping Hou
1407579ea8
mod: remove debug code
2012-04-12 17:49:38 +08:00
Qingping Hou
528d76aa60
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
2012-04-12 17:47:22 +08:00
{Qingping,Dave} Hou
2407490284
Merge pull request #105 from houqp/master
...
bug fix in highlight code
2012-04-12 02:44:16 -07:00
Qingping Hou
3b4445a6dd
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
2012-04-12 17:44:13 +08:00
Qingping Hou
dcd485c84c
fix: bug in highlighting words
...
Properly highlight words that partially fit
into screen range.
2012-04-12 17:31:01 +08:00
Dobrica Pavlinušić
e89750b379
Merge pull request #104 from houqp/master
...
API changes in highlighting code
2012-04-12 01:45:57 -07:00
Qingping Hou
3438d6749d
mod: rewrite part of highlight code
...
* add _isEntireLineInScreenHeightRange() method
For better page view navigation when highlighting
or moving cursor.
* bug fix in _isWordInScreenRange() method
* add _nextGap(), _prevGap(), _gapInNextLine()
and _gapInPrevLine() methods, so now key event
handling code in cursor moving mode only focuses
on drawing, calculation task is passed to these
four methods.
2012-04-12 15:50:19 +08:00
Qingping Hou
75d5b5f984
fix: three bugs in highlight mode
...
* handle left end of first line in cursor move
* properly highlight first word if cursor starts
from left end of first line
* handle right end of last line in cursor move
2012-04-12 13:43:20 +08:00
Qingping Hou
66ab3a2f56
fix: typo in unireader's comment
2012-04-12 11:34:24 +08:00
Qingping Hou
56d4700001
mod: changes APIs in highlighting code
2012-04-12 11:23:22 +08:00
HW
face8b44c0
fixed cursor positioning
2012-04-11 23:33:47 +02:00
HW
46d197954b
put highlight implementation into unireader
2012-04-11 22:52:48 +02:00
HW
e772d9f0d7
turn back coordinates to be just in pt, not 0,01pt
2012-04-11 22:47:05 +02:00
HW
80a6e0210b
add PDF text extraction (for pages)
...
this will return data in the way that djvu.c does already.
hopefully, this will permit us to re-use the highlighting code
(and factor it out into unireader.lua)
2012-04-11 21:12:59 +02:00
Dobrica Pavlinušić
da6c2309d2
Merge pull request #101 from houqp/master
...
Fix for CREngine's build environment
2012-04-11 06:55:03 -07:00
Qingping Hou
0007a8677f
fix: rm antiword in make clean
2012-04-11 17:32:36 +08:00
Qingping Hou
e3f6bab9f1
mod: adapt Makefile to new kpvcrlib's CMake environment
2012-04-11 17:13:37 +08:00
Qingping Hou
3bf6860767
fix: a terrible mistake in kpvcrlib's CMakeLists.txt
...
add LINUX & _LINUX macro definition.
also stop building antiword.
2012-04-11 17:07:31 +08:00
Qingping Hou
e42530bbc0
mod: set DrawBuf to 4bpp mode in cre.cpp
2012-04-11 17:06:37 +08:00
{Qingping,Dave} Hou
6158ac49f6
Merge pull request #100 from dpavlin/master
...
correctly dim part of page when hitting margins
2012-04-10 18:07:01 -07:00
Dobrica Pavlinusic
b555596f42
correctly dim part of page when hitting margins
2012-04-10 23:15:09 +02:00
Qingping Hou
6041603468
fix: use new width and height drawing after screen rotate
2012-04-10 21:40:29 +08:00
Qingping Hou
7093e7377e
fix: reset dc after screen rotate
...
handle ZOOM_FIT_TO_CONTENT_WIDTH_PAN mode
seperately.
2012-04-10 21:34:38 +08:00
Dobrica Pavlinusic
fc089e5f14
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
2012-04-10 15:06:00 +02:00
Dobrica Pavlinusic
1aba2d2695
fix operator precedence #95
...
This explains why our dimmed areas had vertical stripes and improves
quality
2012-04-10 15:05:18 +02:00
Qingping Hou
c85b768c0e
switched shortcut between 10 degree and 90 degree rotation
...
* also deleted 10 degree rotation shortcut in
djvureader, becuase it is not supported by the
library.
2012-04-10 20:45:22 +08:00
Dobrica Pavlinušić
1a0e245c88
Merge pull request #97 from houqp/master
...
Add number input box
2012-04-10 02:05:44 -07:00
Qingping Hou
485dda2a0f
fix: bugs in inputbox.lua
...
* one typo
* clear ret_code on exit
* add init() method
2012-04-10 16:35:46 +08:00
Qingping Hou
95998a7397
add: NumInputBox class for goto page feature
2012-04-10 15:52:51 +08:00
Qingping Hou
25e0c8545b
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
2012-04-10 10:26:09 +08:00
HW
040a4e88b9
Merge pull request #95 from dpavlin/master
...
show overlap when moving with pan_by_page
2012-04-09 11:42:40 -07:00
Dobrica Pavlinusic
75bed710f7
fix shift direction and cleanup comments
2012-04-09 20:27:45 +02:00
HW
1c50a5676a
free blitbuffers when cleaning complete cache
2012-04-09 19:58:34 +02:00
HW
0b0dfa24ed
removed obsolete example
2012-04-09 19:52:58 +02:00