Dobrica Pavlinušić
e89750b379
Merge pull request #104 from houqp/master
...
API changes in highlighting code
13 years ago
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.
13 years ago
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
13 years ago
Qingping Hou
66ab3a2f56
fix: typo in unireader's comment
13 years ago
Qingping Hou
56d4700001
mod: changes APIs in highlighting code
13 years ago
HW
face8b44c0
fixed cursor positioning
13 years ago
HW
46d197954b
put highlight implementation into unireader
13 years ago
HW
e772d9f0d7
turn back coordinates to be just in pt, not 0,01pt
13 years ago
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)
13 years ago
Dobrica Pavlinušić
da6c2309d2
Merge pull request #101 from houqp/master
...
Fix for CREngine's build environment
13 years ago
Qingping Hou
0007a8677f
fix: rm antiword in make clean
13 years ago
Qingping Hou
e3f6bab9f1
mod: adapt Makefile to new kpvcrlib's CMake environment
13 years ago
Qingping Hou
3bf6860767
fix: a terrible mistake in kpvcrlib's CMakeLists.txt
...
add LINUX & _LINUX macro definition.
also stop building antiword.
13 years ago
Qingping Hou
e42530bbc0
mod: set DrawBuf to 4bpp mode in cre.cpp
13 years ago
{Qingping,Dave} Hou
6158ac49f6
Merge pull request #100 from dpavlin/master
...
correctly dim part of page when hitting margins
13 years ago
Dobrica Pavlinusic
b555596f42
correctly dim part of page when hitting margins
13 years ago
Qingping Hou
6041603468
fix: use new width and height drawing after screen rotate
13 years ago
Qingping Hou
7093e7377e
fix: reset dc after screen rotate
...
handle ZOOM_FIT_TO_CONTENT_WIDTH_PAN mode
seperately.
13 years ago
Dobrica Pavlinusic
fc089e5f14
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
13 years ago
Dobrica Pavlinusic
1aba2d2695
fix operator precedence #95
...
This explains why our dimmed areas had vertical stripes and improves
quality
13 years ago
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.
13 years ago
Dobrica Pavlinušić
1a0e245c88
Merge pull request #97 from houqp/master
...
Add number input box
13 years ago
Qingping Hou
485dda2a0f
fix: bugs in inputbox.lua
...
* one typo
* clear ret_code on exit
* add init() method
13 years ago
Qingping Hou
95998a7397
add: NumInputBox class for goto page feature
13 years ago
Qingping Hou
25e0c8545b
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
13 years ago
HW
040a4e88b9
Merge pull request #95 from dpavlin/master
...
show overlap when moving with pan_by_page
13 years ago
Dobrica Pavlinusic
75bed710f7
fix shift direction and cleanup comments
13 years ago
HW
1c50a5676a
free blitbuffers when cleaning complete cache
13 years ago
HW
0b0dfa24ed
removed obsolete example
13 years ago
HW
a0c0c98093
added configurable static libstdc++ linking
...
you can now point to a static libstdc++:
make STATICLIBSTDCPP=/home/hw/kindle-sysroot/usr/lib/libstdc++.a
13 years ago
HW
538940baf7
reworked toolchain management a bit
...
you can now set the toolchain by using e.g.
make HOST=arm-unknown-linux-gnueabi
or
make HOST=arm-linux-gnueabi
also, a SYSROOT flag is introduced. I use this to point
the compiler to a certain sysroot (which contains headers
and might contain libraries to link against). I use this to
use a current and modern compiler against the older
software versions on the Kindle (especially glibc).
I use it like this:
make HOST=arm-none-linux-gnueabi SYSROOT="--sysroot=/home/hw/my-kindle-sysroot"
13 years ago
Qingping Hou
28b1f5330a
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
13 years ago
HW
2f11b761b0
fixed font copying upon customupdate
13 years ago
HW
b32c3bef1f
added bind-mounting of host fonts
13 years ago
HW
ec2eda0c05
switched font handling to only work with external fonts
...
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
13 years ago
HW
a375febf8e
patch for muPDF to allow fonts from files
13 years ago
Qingping Hou
c09ab1a36b
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
13 years ago
Dobrica Pavlinusic
752da5ca3f
use pan_overlap_vertical only in pan_by_page mode
13 years ago
Dobrica Pavlinusic
37f1cf4ef9
added test file for ZOOM_FIT_TO_CONTENT_WIDTH_PAN
13 years ago
Dobrica Pavlinusic
9dd9df0356
added dimRect and use it
...
dimRect might be useful if we want to display status messages over
content (as opposed to erasing background)
13 years ago
Dobrica Pavlinusic
5d9176907f
show_overlap inverts part of page visible in previous view
...
This is nice feature of Sony e-book readers which is very useful when
reading since it shows previous part of visible page and provides
hint where to continue reading after page refresh
13 years ago
HW
a824204039
fixed missed case for device/emu recognition
13 years ago
Qingping Hou
fb7e99878d
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
13 years ago
Dobrica Pavlinušić
f9c97bcf59
Merge pull request #94 from dpavlin/dbbd6e4c1247e4caeff79245c62f5dd352b17d5b
...
cleanup customupdate make target
13 years ago
HW
c24d0bd26e
corrected CFLAGS for some base .c files
13 years ago
Dobrica Pavlinusic
dbbd6e4c12
call all target for customupdates and cleanup install dir
13 years ago
HW
cce3b41d63
don't build slider_watcher for now
13 years ago
HW
caefddb99c
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
...
Conflicts:
crereader.lua
13 years ago
HW
2d5e398be9
removed obsolete Shift-P-P combination
13 years ago
HW
b4fa798d92
device recognition now fully automatic
13 years ago