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

357 Commits

Author SHA1 Message Date
traycold
0350822ade remove some trailing white spaces 2012-04-15 16:05:44 +02:00
traycold
1ff6ee44ba Merge branch 'txt'
* txt:
  use font metric to better display help page (to exted to other pages in future)
  draft commit, test implementation
2012-04-15 16:02:21 +02:00
traycold
96894ec1a5 update mupdf submodule to commit bdb6b688a238df56b2cf47fa17a08a4dd4b7a122 and small modification to source code to adapt to mupdf modifications 2012-03-24 17:47:52 +01:00
traycold
e2e5af1c61 added some debug code to better understand memory usage by muPdf 2012-03-22 02:08:31 +01:00
traycold
ce30d9c652 use font metric to better display help page (to exted to other pages in future) 2012-03-20 23:28:49 +01:00
traycold
81f99e4921 Merge remote branch 'origin/master' into txt
* origin/master:
  using font module for getting fonts (commit f95231d789)
  Password input, handling for broken documents
  factored pages count out, better error and password handling
  factored pages counter out of document struct
  make muPDF cache size configurable from Lua
  add XPS and CBZ support (muPDF provides this)
  fixed bug for odd rendering widths
  refactored muPDF integration to use strictly the fitz.h API
  forgot Makefile change when factoring out drawcontext
  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-20 22:53:20 +01: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
HW
7e3e38be62 Password input, handling for broken documents 2012-03-20 00:10:19 +01:00
HW
b037208fb1 factored pages count out, better error and password handling 2012-03-20 00:03:35 +01:00
HW
87ec4bbf6b factored pages counter out of document struct 2012-03-20 00:03:09 +01:00
traycold
c2fe6f9bee Merge remote branch 'hwhw/master'
* hwhw/master:
  make muPDF cache size configurable from Lua
  add XPS and CBZ support (muPDF provides this)
  fixed bug for odd rendering widths
  refactored muPDF integration to use strictly the fitz.h API
  forgot Makefile change when factoring out drawcontext
2012-03-19 23:21:23 +01:00
HW
14b26a4aeb make muPDF cache size configurable from Lua 2012-03-19 22:48:54 +01:00
HW
48463d4739 add XPS and CBZ support (muPDF provides this) 2012-03-19 22:35:16 +01:00
HW
2fcfe4a329 fixed bug for odd rendering widths 2012-03-19 22:29:06 +01:00
HW
ee51fe7e6d refactored muPDF integration to use strictly the fitz.h API
This will allow for reading XPS and CBZ documents, since those are
supported by muPDF (not tested yet)
2012-03-19 22:27:00 +01:00
HW
a49c8fa2e5 forgot Makefile change when factoring out drawcontext 2012-03-19 22:04:49 +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
traycold
c11ecce55a draft commit, test implementation 2012-03-19 19:41:09 +01:00
HW
8869c52c31 fix a Lua 5.0 syntax that was deprecated in 5.1
luaL_reg is now renamed to luaL_Reg. Lua 5.2 does not know about
the old name anymore, Lua 5.1.x had backward compatibility.
2012-03-19 19:11:32 +01:00
HW
9ee7afa86d separate DC out of pdf.c and djvu.c (cleanup) 2012-03-19 18:59:36 +01:00
HW
929ea1e703 removed obsolete page rotation handling, closes #70 2012-03-19 18:24:43 +01:00
HW
7b120b0ee0 allow easier customization of toolchain for libdjvu 2012-03-18 11:48:26 +01: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
Qingping Hou
9dd3994dd8 fix: handle LPGBCK and LPGFWD in selectmenu 2012-03-14 17:20:48 +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
HW
ad6198efb8 A take at better boundary checks in blitbuffer
this will hopefully prevent segfaults resulting from bad
coordinate/size input when blitting
2012-03-13 18:34:04 +01:00
HW
00a9f0f363 Merge pull request #64 from houqp/fixcache
Try to fix some bugs in new cache system
2012-03-13 10:10:05 -07: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
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