2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1471 Commits

Author SHA1 Message Date
Hans-Werner Hilse
3eae0cdcb7 Bugfixes: test leftovers, wrong paths 2014-11-03 10:08:55 +01:00
Hans-Werner Hilse
3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
2014-11-02 21:19:04 +01:00
chrox
a32991d898 add new sorting methods for file list in filemanager
Now files can be sorted by filename or last accessed time
2014-10-30 22:41:52 +08:00
chrox
84029e9694 add modal widget type that will stay on the top of window stack
ConfirmBox and InfoMessage are default to be modal.
Now returning to filamanager after highlighting a PDF page
the confirmbox asking users to save the document will not be hidden by
the filamanager window.
And it's tested on Kindle that #791 is already been solved probably by
out refacorting of MuPDF backend.
2014-10-30 16:01:04 +08:00
chrox
dfcd67c5bf move screenshot settings to submenu of Screenshot entry in readermenu
And also fix a touchmenu bug that prevent some menu entries
(always at the bottom of the menu) from showing submenus. The reason is
that the onTapSelect method of TouchMenuItem doesn't return true, so that
the tap gesture will propagate to the parent widget and be captured by
touchmenu itself. But at this time the dimen of touchmenu is changed to
the submenu of the tapped menuitem. If the submenu is short enough the
tap will be outside of touchmenu which will cause a TapCloseAllMenus
event and the submenu will never be shown.
2014-10-30 15:51:35 +08:00
chrox
f48c073357 persistent cache item now need an explicit persistent flag 2014-10-30 11:16:37 +08:00
chrox
8c9751744e fix #1064 by adding timestamp of document in cache key
so that when document is modified the persistent cache will
be invalidated automatically because the cache key will not
be matched. There is no perfermance overhead here at all. We
even don't need to check the modification time of the cache item
on disk, because the name of the on disk cache is a md5sum of the
cacheitem key, now the filename of the cache files contains the
modification time information.
If the document is modified since one rendered page is cached to disk,
the cache key won't match the cache file. And the cache file will
be discarded without the need to open the cache file or to check
the modification time of the cache file itself.
2014-10-30 11:05:26 +08:00
chrox
72f9449de8 ignore more markup tags in dictionary window 2014-10-29 16:42:00 +08:00
HW
a3dec7d088 Merge pull request #1058 from chrox/reader_history
add history view in the info panel of reader menu
2014-10-28 11:16:40 +01:00
HW
776f61d9eb Merge pull request #1057 from chrox/fix_1034
fix #1034 by refactoring path chooser to a download manager
2014-10-28 11:16:15 +01:00
chrox
bdebe90412 keep only one readerui instance running 2014-10-28 18:09:22 +08:00
chrox
4897d70b1f add reader history in the info panel 2014-10-28 17:42:06 +08:00
chrox
68265336f4 fix #1034 by refactoring path chooser to a download manager
Now directories visible in the filemanager should also
be visible in the path chooser
2014-10-28 17:14:06 +08:00
chrox
6b2768f801 fix cannot set default dictionary 2014-10-28 15:58:04 +08:00
chrox
fea7b93b62 fix #1035 by CDATA tidy 2014-10-28 15:57:01 +08:00
chrox
c2726a8f62 save two blitbuffer memory allocations for crengine on each page turn
One for drawbuffer at CreDocument:drawCurrentView and another for
resizing of drawBuf at cre.drawCurrentPage.
2014-10-27 22:05:24 +08:00
Hans-Werner Hilse
0a74dc6072 add needed ffi module when saving annotations 2014-10-26 23:16:27 +01:00
Michael Hall
79cb75b153 Added option for proportional cover image screensaver 2014-10-26 14:47:48 +00:00
Huang Xin
2dcf65c912 Merge pull request #1049 from gontofe/wifi_toggle
Leave both readerconfig and readermenu open on wifi toggle
2014-10-26 19:27:44 +08:00
Michael Hall
dd80d61155 Leave both readerconfig and readermenu open on wifi toggle 2014-10-26 09:41:28 +00:00
Qingping Hou
b0682b0470 chore: code clean up 2014-10-26 03:05:17 -04:00
Qingping Hou
6aabc62f73 fix(reader): crash on closing reader menu 2014-10-25 06:01:37 -04:00
Qingping Hou
394c847e2b fix(app): initilize menu properly in reader and filemanager 2014-10-25 05:46:02 -04:00
Qingping Hou
d1627337e0 fix(ui): fix dynamic menu height calculation 2014-10-25 04:03:37 -04:00
Hans-Werner Hilse
ba40cc56e9 fill background of intermediary blitbuffers
we need to explicitly fill those buffers, now that white is not "0"
anymore.
2014-10-24 13:48:42 +02:00
Hans-Werner Hilse
5982e24d57 unify color specification
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
2014-10-24 13:48:42 +02:00
chrox
281df50da5 fix #1028 2014-10-23 13:49:35 +08:00
chrox
2ff12af50c protected call of mupdf.renderImage 2014-10-23 13:49:35 +08:00
chrox
91400f8fef expand/collapse for the left one third region should be more resonable 2014-10-21 22:40:43 +08:00
chrox
c994e30cff fix #1024
if toc item has expand/collapse state and tap select on the left side
the state switch action is triggered, otherwise goto the
linked page.
2014-10-21 22:18:07 +08:00
HW
1cb3c85f34 Merge pull request #1021 from chrox/fix_1011
fix #1011
2014-10-21 12:42:16 +02:00
Huang Xin
3c1d2c69df Merge pull request #1014 from hwhw/master
use new FFI based mupdf API
2014-10-21 18:13:21 +08:00
chrox
07ae0cba81 fix #1011
The #1011 bug is caused by the `contains` check of link box with
visible area. When the link is at the very right (left?) of
the page, enlarged link box often exceeds the page bound rendering
the mentioned `contains` check failed. This patch uses an `intersectWith`
test to check if the link is in current page.
2014-10-21 17:26:16 +08:00
chrox
2050c0aa66 fix renderImage invocation 2014-10-21 17:22:20 +08:00
HW
3a42557b19 Merge pull request #1020 from chrox/fix_1013
fix #1013
2014-10-20 17:51:35 +02:00
chrox
1462d382d9 fix #1013 2014-10-20 22:55:39 +08:00
Hans-Werner Hilse
e0868826ad use new FFI based mupdf API
This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface
2014-10-20 16:49:10 +02:00
chrox
2ad63fc1a3 expand/collapse TOC only by tap on the icon 2014-10-20 22:19:31 +08:00
chrox
0a863f07c7 show 50 ticks on the mini progress bar at most 2014-10-20 22:17:53 +08:00
Qingping Hou
c1c3bcb3fe fix: various fixes for kindle dxg 2014-10-20 02:17:57 -04:00
Frans de Jonge
3334903e8c Actually flush stdio rather than all io. 2014-10-18 15:31:05 +02:00
Frans de Jonge
65d3cacd7c Flush stdio to prevent buffering multiple debugging messages when redirecting output to file. 2014-10-18 15:18:01 +02:00
Frans de Jonge
f3d5d5b030 Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3) 2014-10-17 13:25:13 +02:00
Frans de Jonge
7117235414 Kobo Aura H2O: fix bezel. 2014-10-16 15:17:31 +02:00
Frans de Jonge
c50bdfd11c Kobo Aura H2O detection: slight code refactoring. 2014-10-16 10:59:11 +02:00
HW
0f40042e57 Merge pull request #999 from Frenzie/master
Changes for Kobo Aura H2O.
2014-10-15 20:35:39 +02:00
Frans de Jonge
629c32f6ba Changes for Kobo Aura H2O. 2014-10-15 18:28:13 +02:00
Paulo Matias
8bbdf03ccb Merge pull request #998 from chrox/fix_970
fix #970
2014-10-15 11:40:57 -03:00
Paulo Matias
2843bf362d Merge pull request #996 from chrox/djvu_render_mode
add djvu render mode options in readermenu
2014-10-15 11:29:44 -03:00
chrox
834c994ed8 fix #970
by rendering full page if bbox is larger than native page size when
zooming mode is fit to content*
2014-10-15 22:01:42 +08:00
chrox
c99288f3ad fix #995 by reseting readertoc on init 2014-10-15 20:47:13 +08:00
chrox
d30709edb0 add djvu render mode options in readermenu 2014-10-15 20:31:24 +08:00
Paulo Matias
ef80cc6a4e Merge pull request #994 from chrox/fix_987
fix #987
2014-10-15 08:08:00 -03:00
chrox
f3417c5488 fix #987 2014-10-15 18:17:16 +08:00
chrox
506bf96379 add menu entry to lookup input word in dictionary
This should close #971.
2014-10-15 18:02:02 +08:00
chrox
96960cd554 don't dim icon button by default 2014-10-14 21:34:56 +08:00
chrox
7c9130744c add collapsable TOC menu 2014-10-14 21:34:56 +08:00
chrox
46963df0bb don't need to rebuild ota installed package if it's detected 2014-10-14 21:34:56 +08:00
WS64
f537125756 Bugfix 2014-10-13 15:40:48 +02:00
chrox
e714caed8d refactoring restoreScreenMode from readerview to filemanager
This should fix #983.
2014-10-12 17:26:36 +08:00
chrox
de38ea1199 count only leaf nodes of toc tree when level is zero 2014-10-11 21:10:07 +08:00
chrox
2b26e599d9 return to previous filemanager view instead of opening a new one 2014-10-10 18:14:33 +08:00
chrox
6dd3f99c35 reset ticks cache 2014-10-10 18:14:33 +08:00
chrox
b422eb90cc refactoring readerrolling
and fix lossing progress when switching screen mode
2014-10-10 18:14:33 +08:00
chrox
e34ad5ffe5 refactoring module registration in readerui
now every module can be looked up in readerui so that
unit test of these modules is possible.
2014-10-09 17:41:27 +08:00
chrox
d01ae145b8 guess plugin name from plugin path 2014-10-09 12:38:33 +08:00
chrox
a4d5ec6534 plugin modules have 'name' field 2014-10-09 12:26:52 +08:00
chrox
896ad0e8f8 fix #976 2014-10-09 09:42:43 +08:00
chrox
cec8ee3c29 add isChapterBegin/End API for readertoc
and add missing test epub
2014-10-07 17:44:10 +08:00
chrox
b09bb87d4e refactoring readertoc and readerfooter
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
chrox
7142492e42 fix #959 2014-10-07 14:05:34 +08:00
Qingping Hou
a44cc3150d fix: use correct entry for Ukrainian in language menu 2014-10-07 01:32:04 -04:00
Qingping Hou
16b393ff47 chore(device.lua): remove frontlight hack for kobo 2014-10-07 01:32:04 -04:00
chrox
6ee8f22d73 add clear api for DocSettings
to remove both history settings and sidecar settings
2014-10-07 13:06:52 +08:00
chrox
330e5a2789 don't open SDL if input device is dummy 2014-10-06 21:23:54 +08:00
Qingping Hou
05e47c8c9c Merge pull request #955 from chrox/network_proxy
http proxy support by setting NETWORK_PROXY variable
2014-10-05 01:14:48 -07:00
Qingping Hou
55cb0271cb Merge pull request #954 from chrox/fix_950
get rid of query filed of baseurl when building href
2014-10-05 01:08:02 -07:00
Qingping Hou
88b8f56146 Merge pull request #952 from chrox/fix_921
strip generic punctuation (U+2000 - U+206F) in lookup word
2014-10-05 01:05:12 -07:00
chrox
3147ffb08a http proxy support by setting NETWORK_PROXY variable
This should implement feature request in #919.
2014-10-05 16:04:52 +08:00
chrox
549f54ab07 get rid of query filed of baseurl when building href
otherwise there will be "?offset=90" query in downloading href
for calibre opds server which doesn't accept the url

This should fix #950.
2014-10-05 15:47:36 +08:00
chrox
9467eab6e1 strip generic punctuation (U+2000 - U+206F) in lookup word
This should fix #921.
2014-10-05 14:32:23 +08:00
chrox
7b78d70c74 fix fgcolor of inputbox is always 0.0 2014-10-05 14:00:38 +08:00
chrox
6152198e88 still needs button bgcolor
This bgcolor is for framecontainer background color.
2014-10-04 22:01:09 +08:00
Hans-Werner Hilse
7b1777e095 adapt widgets and text rendering to new font rendering
no background for text rendering anymore
2014-10-04 15:54:03 +02:00
Qingping Hou
7df2e0fb28 Merge pull request #944 from chrox/lazy_loading
refactoring: lazy loading of unused modules
2014-10-03 19:08:39 -07:00
evgsh
aae2c4de27 Added acquisition relation types , fixes issue #940 2014-10-03 17:22:37 +03:00
chrox
14e2bf3d69 refatoring: lazy loading of packages 2014-10-03 16:13:34 +08:00
Huang Xin
8fda638da6 Merge pull request #936 from WS64/master
fix the nil tags data bug
2014-10-01 00:53:14 +08:00
WS64
d790f8aafe fix the nil tags data bug 2014-09-30 18:28:36 +02:00
chrox
9adf8ac327 also paint widget if any widget underneath is dirty 2014-09-29 14:23:38 +08:00
chrox
508cf94f98 fix run out of memory when receiving large files from Calibre 2014-09-29 14:22:33 +08:00
Hans-Werner Hilse
e47b43e8b5 add implementation of a container widget with alpha-blitting
This is a container that will honor a given alpha value (0..1)
when painting, so it will be translucent for values < 1.
2014-09-28 21:48:06 +02:00
Hans-Werner Hilse
adbcdddb56 undo wrong use of addblitFrom()
rendertext.lua did use addblitFrom() for rendering text - i.e. blitting
the letters to a BlitBuffer. However, it used intensity=1.0, which is
the same as doing a (faster, more efficient) blitFrom(). So use that
instead.

What was probably intented here is a different kind of blitting - using
the bitbuffer of the glyph as a mask.
2014-09-28 21:11:03 +02:00
Ebrehem
44ecf74ba3 Update readerfooter.lua 2014-09-27 12:56:47 +02:00
chrox
97e7a90865 encode lfs.dir iterated file path to UTF-8 2014-09-25 22:33:43 +08:00
chrox
a0cd4816a7 no mkfifo on Windows 2014-09-25 22:33:31 +08:00
chrox
7d22318641 don't require ssl.https since it cannot yet be built for win32 2014-09-25 22:33:06 +08:00
evgsh
aabee1f3bc Update opdsbrowser.lua 2014-09-19 13:43:58 +03:00
Huang Xin
0d38a02eb6 Merge pull request #910 from WS64/master
minor code optimizing
2014-09-19 09:24:50 +08:00
WS64
d47af7e368 minor code optimizing optimizing 2014-09-18 19:04:00 +02:00