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

318 Commits

Author SHA1 Message Date
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
Qingping Hou
b7c04ada1a mod: clean up in inputbox.lua 2012-03-11 15:46:25 +08:00
Qingping Hou
72c032e7db fix: adjust page number in toc
djvulibre counts page number starts from 0, while
kpdfview starts from 1.
2012-03-11 09:44:05 +08:00
{Qingping,Dave} Hou
183d878c9c Merge pull request #61 from Germanc/master
Add djvu TOC support
2012-03-10 17:25:42 -08:00
Dobrica Pavlinusic
7ee77dee5c removed duplicate code 2012-03-11 02:20:44 +01:00
German Caro
c074f19b0f Re-indented using tabs 2012-03-10 22:06:49 -03:00
German Caro
392d14606a Merge branch 'master' of github.com:Germanc/kindlepdfviewer 2012-03-10 21:50:53 -03:00
German Caro
ab056e2e15 Add support to djvu TOC 2012-03-10 21:50:16 -03:00
German Caro
6362972707 Testing how git and github works and add support to djvu TOC 2012-03-10 21:43:55 -03:00
Dobrica Pavlinusic
09610d966e fix typo 2012-03-10 14:09:12 +01:00
Dobrica Pavlinušić
87d8df045b Merge pull request #57 from houqp/master
Add font.lua & status bar in reading menu
2012-03-10 05:04:38 -08:00
Qingping Hou
7389255503 fix: handle last section in getTOCTitleByPage() 2012-03-10 18:20:03 +08:00
Qingping Hou
3a6aaedb9f rm: fontchooser.lua 2012-03-10 18:05:34 +08: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
Dobrica Pavlinušić
d3c9062c7c Merge pull request #53 from houqp/master
90 degree rotation support & 1 fix & 1 modification
2012-03-09 16:03:38 -08:00
Qingping Hou
5237ba947d fix: typo 2012-03-09 18:45:55 +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
f45671a747 fix: add screen.lua
forgot to add it in previous commit :(
2012-03-09 09:44:22 +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
Dobrica Pavlinusic
65f95ca204 fix fetchthirdparty, closes #43
- added forgot git submodule init to make empty repository checkout work
- fetchthirdparty won't re-download exiting archives on disk
- moved mupdf-thirdparty.zip to root of repostory, since mupdf already
  has .gitignore and we shouldn't modify upstream submodule
2012-03-08 14:06:16 +01:00
{Qingping,Dave} Hou
eab72cfb27 Merge pull request #50 from houqp/master
3 fixes, closes #47
2012-03-08 03:46:40 -08:00
Qingping Hou
03f658f59e fix: push mupdf commit to e7bb1c4937593c95065dbbbdd7eb15a73996c470 2012-03-08 19:45:16 +08:00
Qingping Hou
72e4808889 fix: add double quotes
this should fix issue #47
2012-03-08 19:29:30 +08:00
Qingping Hou
2ac4272933 fix: export LC_ALL when running kpdfview in launchpad 2012-03-08 19:23:17 +08:00
Qingping Hou
e0f1564c7a fix: exit filesearcher with home key 2012-03-08 14:24:30 +08:00
Qingping Hou
3474e56d30 fix: check key mode properly for manual crop 2012-03-08 10:35:33 +08:00
{Qingping,Dave} Hou
98154a4eb4 Merge pull request #49 from houqp/master
fix: passing wrong page number to ddjvu_document_get_pageinfo in djvu.c
2012-03-07 17:59:53 -08:00
{Qingping,Dave} Hou
bb3d3949a4 Merge pull request #48 from dpavlin/35_manual_crop
#35 manual crop for odd and even pages
2012-03-07 17:59:18 -08:00
Qingping Hou
b3fb1dbcce fix: passing wrong page number to ddjvu_document_get_pageinfo 2012-03-08 09:35:15 +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
HW
dd8c1324b7 djvulibre wants utf8-based filenames to be handed differently. closes #47 2012-03-07 19:37:03 +01:00
Dobrica Pavlinusic
f62a12a629 more debugging output for secting bboxes 2012-03-07 18:50:16 +01:00
Dobrica Pavlinusic
9bd93fe9c1 move third-party git checkouts into submodules #43 2012-03-07 17:19:52 +01:00
Dobrica Pavlinušić
16e70ac719 Merge pull request #45 from houqp/master
two modifications
2012-03-07 06:50:36 -08:00
Qingping Hou
bf267ef0ef mod: add ZOOM_FIT_TO_CONTENT_WIDTH_PAN mode
This mode is used with ZOOM_FIT_TO_CONTENT_WIDTH, so
when press KEY_PGFWD, you jump to lower part of current
page. When hit page bottom, you do a real page turn. It
now behaviors the same like the native reader as I
mentioned in issue #41.

The first time you set to ZOOM_FIT_TO_CONTENT_WIDTH mode,
the reader will setup proper zoom factor and offset, then
switch to ZOOM_FIT_TO_CONTENT_WIDTH_PAN mode. When you hit
the page bottom, the reader will set the mode back to
ZOOM_FIT_TO_CONTENT_WIDTH mode and do a real page turn.
2012-03-07 21:44:59 +08:00
Qingping Hou
f79ae48de8 add: UniReader:initGlobalSettings()
Use this method to read settings that may shared
among all readers. For instance, pan_overlap_vertical
2012-03-07 18:16:46 +08:00
Qingping Hou
f9ba833568 Merge branch 'master' of github.com:hwhw/kindlepdfviewer 2012-03-07 17:59:19 +08:00
Qingping Hou
68b94fa337 mod: code clean up for KEY_2 to KEY_9 bindings
inspired by commit:
796b42cc36
2012-03-07 17:57:27 +08:00
Dobrica Pavlinušić
a2fdbc890f Merge pull request #44 from houqp/master
set default offset to the top of page in fit to content mode
2012-03-07 01:45:40 -08:00
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