2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
Commit Graph

80 Commits

Author SHA1 Message Date
Qingping Hou
b09110a38d Merge branch 'djvu-highlight' into epub 2012-03-29 17:54:48 +08:00
Qingping Hou
4821f10dda half done demo for crengine 2012-03-29 00:09:26 +08:00
Qingping Hou
d37e81ad0c Merge remote-tracking branch 'upstream/master' into djvu-highlight
Conflicts:
	unireader.lua
2012-03-27 02:50:15 +08:00
Qingping Hou
8159b24a46 add: simple highlight lists menu 2012-03-27 02:46:03 +08:00
Dobrica Pavlinusic
6886ae9830 exit reader with just Home as before #55 2012-03-26 20:16:36 +02:00
Qingping Hou
1113759972 fix: add virtual startHighLightMode method for all readers. 2012-03-26 20:25:44 +08:00
Qingping Hou
81a1f3d366 demo of text highlight
* text selection
* highlight save and restore
2012-03-23 15:51:48 +08:00
Qingping Hou
7c81f60a58 rewrite highlight again :( finished the cursor part 2012-03-22 23:12:57 +08:00
Qingping Hou
9aa9bc802f mod: add highlight after merged command module 2012-03-21 11:20:07 +08:00
Qingping Hou
46f171df3b Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts:
	unireader.lua
2012-03-21 10:52:51 +08:00
Qingping Hou
1e2d7f62ac record and save highlight table 2012-03-21 10:37:18 +08:00
traycold
bfcad367bb using font module for getting fonts (commit f95231d789)
renamed function names using camelCase (issue #62)
2012-03-20 20:15:24 +01:00
traycold
fd6c6dbe60 Merge remote branch 'hwhw/master'
* hwhw/master:
  Password input, handling for broken documents
  factored pages count out, better error and password handling
  factored pages counter out of document struct
2012-03-20 18:40:43 +01:00
Qingping Hou
a185f238eb mod: rewrite highlight feature 2012-03-20 16:42:22 +08:00
Qingping Hou
f4ea1cdb62 Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts:
	blitbuffer.c
	unireader.lua
2012-03-20 10:36:35 +08:00
HW
7e3e38be62 Password input, handling for broken documents 2012-03-20 00:10:19 +01:00
traycold
3d2a748aee Merge remote branch 'hwhw/master'
* hwhw/master:
  fix a Lua 5.0 syntax that was deprecated in 5.1
  separate DC out of pdf.c and djvu.c (cleanup)
  removed obsolete page rotation handling, closes #70
  allow easier customization of toolchain for libdjvu
  fix: remove page number checking in displaying TOC
  fix: handle LPGBCK and LPGFWD in selectmenu
2012-03-19 20:23:54 +01:00
HW
9ee7afa86d separate DC out of pdf.c and djvu.c (cleanup) 2012-03-19 18:59:36 +01:00
Qingping Hou
e7f0a8bddb mod: rewrite highlight feature
waiting for integrate test with cursor support
2012-03-19 11:05:23 +08:00
Qingping Hou
84c8230730 POC of text highlight in current page! 2012-03-17 12:17:20 +08:00
Qingping Hou
c8f87d5661 fix: remove page number checking in displaying TOC
Former showTOC() method checks the page number in each
entry and only display entry whose page number is greater
than the previous one. However, I think this is too
"clever", we should better leave the TOC untouched to keep
consistent with other pdf readers.
2012-03-16 12:27:27 +08:00
traycold
496ab3720e small bugfix 2012-03-14 00:07:19 +01:00
traycold
943b511b7c complete implementation of issue #55
created a help page
2012-03-13 22:51:25 +01:00
traycold
abf9696221 Merge branch 'master' of git://github.com/hwhw/kindlepdfviewer.git
Conflicts:
	reader.lua
	unireader.lua
2012-03-13 22:14:26 +01:00
Qingping Hou
56a00d79a0 mod: delete debug print 2012-03-13 17:16:05 +08:00
Qingping Hou
46cfd950c7 fix: typo 2012-03-13 17:07:55 +08:00
Qingping Hou
8c31dd3c5f fix: hanlde offset in ZOOM_FIT_TO_WIDTH_PAN mode
ZOOM_FIT_TO_WIDTH_PAN mode must be handled differently.
Because not like other zoom mode, its offset is not set
to middle of the screen or page.
2012-03-13 16:21:16 +08:00
Qingping Hou
734f94da89 fix: handle positive self.offset in draworcache method 2012-03-13 15:37:45 +08:00
HW
8410ac5cb7 fix forgotten corner case when caching 2012-03-13 00:11:31 +01:00
HW
aab05c3002 Fix page caching
Fixed page caching. Cache strategy is the following:
prio 1: cache/render requested area
prio 2: cache/render as much of the current page as possible
prio 3: cache/render full page
prio 4: render next page

This is still a bit buggy when in fit-to-content mode.
2012-03-13 00:02:49 +01:00
HW
86ff74acd6 prepare for more elaborate caching policy
we allow for bigger render buffers, so the cache now returns
the ID (hash) of the relevant cashed tile PLUS offsets into that
tile, pointing to the coordinates where the requested frame
has its origin.
2012-03-12 20:48:46 +01:00
Qingping Hou
0e914c5fda revert 70b7e029d3 again
commit 5fae18298a mistakenly
reverted d8a58e8764, in which
commit 70b7e029d3 was reverted.
2012-03-12 19:48:24 +08:00
Qingping Hou
5fae18298a add: goto input box in reader 2012-03-12 13:59:19 +08:00
Dobrica Pavlinusic
d8a58e8764 revert 70b7e029d3
It's not that simple since ZOOM_FIT_TO_CONTENT_HALF_WIDTH also
needs bounding boxes, and this seems like over-optimization
which seems to be bug infested especially because it deals
with negative numbers so code just *looks* wrong
2012-03-12 00:42:44 +01:00
Dobrica Pavlinusic
7ee77dee5c removed duplicate code 2012-03-11 02:20:44 +01:00
Qingping Hou
7389255503 fix: handle last section in getTOCTitleByPage() 2012-03-10 18:20:03 +08:00
traycold
3fbb39fc05 Proof of concept for issue #55.
Still to be completed.
2012-03-10 10:28:54 +01:00
Qingping Hou
f95231d789 add: status bar in reading menu & font.lua
* Since fontchooser is replaced by selectmenu, it
is no longer needed. So I rewrite it into font.lua
module which can cache faces that shared among all
UIs.

* add progressBar method in graphics.lua to draw
reading progress.

* add reading progress information in reading menu.
It is just a demo. Should be clean up in next release
when the real reading menu is out. :)
2012-03-10 16:41:23 +08:00
Qingping Hou
319826c385 mod: screen rotation implemented by ioctl
Now you get a instance rotate :) With only one bug.
I have to restore to previous rotation state of the
native system after exists. Because the native system
does poll the new rotation state that changed by ioctl.

Currently, I don't know how to force the native system
to detect the changes.
2012-03-09 18:34:56 +08:00
Qingping Hou
f795bda6e0 mod: read cache settings from .reader.kpdfview.lua 2012-03-09 14:06:05 +08:00
Qingping Hou
70b7e029d3 mod: only get usedBBox in fit to content mode
make fit to page mode a little bit faster
2012-03-09 10:41:31 +08:00
Qingping Hou
d2aaf15dce add: screen.lua
* move rotation mode to global variable, now check rotation
with Screen.cur_rotation_mode

* move screenRotate to screen module so other UIs can use it.
2012-03-09 09:40:46 +08:00
Qingping Hou
3dbf9877bc add: 90 degree rotation support
demo for issue #51
2012-03-08 23:28:16 +08:00
Qingping Hou
3474e56d30 fix: check key mode properly for manual crop 2012-03-08 10:35:33 +08:00
Dobrica Pavlinusic
4bc0bca413 store globalzoom and globalzoommode settings 2012-03-08 01:29:17 +01:00
Dobrica Pavlinusic
4d7fa2d12f Alt+Z to toggle bbox cropping 2012-03-08 00:55:12 +01:00
Dobrica Pavlinusic
c2f2e617ad correct bbox loading and Shift+Z removes page bbox
this moves #35 a *little* bit closer to release ;-)
2012-03-08 00:38:34 +01:00
Dobrica Pavlinusic
9575d23f63 save bbox layout
inspired by f79ae48de8
2012-03-08 00:18:58 +01:00
Dobrica Pavlinusic
0c7eb32d48 Merge branch 'master' into 35_manual_crop 2012-03-08 00:12:21 +01:00
Dobrica Pavlinusic
fdca464b96 don't pre-cache next page if we are going to modify bbox 2012-03-08 00:11:30 +01:00