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

24 Commits

Author SHA1 Message Date
Qingping Hou
2ca5f2302c fix: set offset to top in unireader
set offset to top even usedbox is larger than
or equal to pagesize.
2012-03-07 11:59:32 +08:00
Qingping Hou
dce80b7b1c mod: change default offset in fit_page_width/height mode
set to the top of page
2012-03-07 07:59:03 +08:00
Qingping Hou
20474ce411 fix: page number in fast jump in percent
use math.floor to convert page number to integer
2012-03-07 07:37:45 +08:00
{Qingping,Dave} Hou
d754cff50b Merge pull request #42 from traycold/master
Keyboard shortcuts to jump to 0%, 10%, 20%, .. , 100% of currently reading document.
2012-03-06 15:27:05 -08:00
traycold
41e9b216cc Shortcut to jump to page corresponding to 0%, 10%, 20%, .., 100%
of document using respectively key 1, 2, .., 9, 0.
2012-03-06 23:46:10 +01:00
Dobrica Pavlinusic
24ca5854c5 override getUsedBBox for cropping #35 2012-03-06 23:18:52 +01:00
traycold
01399292db Merge remote-tracking branch 'hwhw/master' 2012-03-06 22:14:12 +01:00
Dobrica Pavlinusic
73ec285957 switch to ZOOM_BY_VALUE to enable panning on fiveway move 2012-03-06 21:31:58 +01:00
HW
a30e92b7a4 Merge pull request #36 from traycold/master
some small bugfix and some improvements (filechooser, "single file mode")
2012-03-05 15:16:53 -08:00
traycold
5caad18fb7 Merge remote-tracking branch 'hwhw/master' 2012-03-06 00:12:59 +01:00
traycold
eba1c2d5ef Merge remote-tracking branch 'hwhw/master' into djvu 2012-03-05 23:36:58 +01:00
Dobrica Pavlinusic
061f318132 HOME - filechooser, Shift/Alt+Home - exits closes #34
This seems more logical to me, because accidental exit is really
bad and requires several keypresses and wait for reader to start again.
2012-03-05 20:02:41 +01:00
Dobrica Pavlinusic
bf53b02bd4 new two-colum zoom mode (shift+F) without margins
This is especially useful if you want PDF pages which bouding box
includes headers or footers which are full page width files like #25

I opted to ignore margins with Shift+F to be consistant with other zoom
modes.
2012-03-05 14:17:14 +01:00
Dobrica Pavlinusic
b1ffb5af7e cleanup two column panning
It's important for us to take maring into account because rouding error
can force us to skip right marging. However, this shouldn't be done
when not in pan_by_page mode, so this diff is artifically large
2012-03-05 14:05:26 +01:00
Qingping Hou
f50e8d695c mod: add UniReader:cleanUpTOCTitle()
re-apply the changes introduced by HW in commit:
3c56f50cae

I mistakenly overwrote it when merging from djvu
branch. :(

Since the title needs to be cleaned in two places,
I turn it into a method.
2012-03-05 13:47:02 +08:00
Qingping Hou
989e915c8f mod: add notes in jumpstack
NOTE that the jumpstack maintaining strategy has
been changed in this commit compared to commit #15
and #31. Now current viewing page in kept in the
stack to preserve the notes.
2012-03-05 13:15:34 +08:00
Qingping Hou
ca3a712521 fix: bug in jump stack
* remove page to jump from the stack
2012-03-05 11:25:51 +08:00
Qingping Hou
ab2cd3ec8c mod: save jump_stack after exit 2012-03-05 10:48:03 +08:00
Qingping Hou
51dd8472b9 mod: bug fix in zooming
update self.global_orig after dc:setZoom
2012-03-05 10:38:02 +08:00
Qingping Hou
8cfae790ed mod: clear pan_by_page if not in two column mode 2012-03-05 10:33:56 +08:00
Qingping Hou
50d5604c79 mod: code cleanup for readers
closes #26
2012-03-05 09:58:19 +08:00
Qingping Hou
b318ca08e3 mod: merge djvu branch with master 2012-03-05 09:46:16 +08:00
Qingping Hou
f370842a88 mod: record self.globalzoom_orig to help zoom in/out
see: https://github.com/hwhw/kindlepdfviewer/issues/24
2012-03-04 19:47:17 +08:00
Qingping Hou
56470a75b0 add: unireader class
Add unireader class for better code reuse.
Now pdfreader and djvureader are subclass of
unireader.

Every subclass needs to have a init() method
that will be called in reader.lua.
2012-03-04 19:32:49 +08:00