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

307 Commits

Author SHA1 Message Date
chrox
4cfdce6105 fix several local calls of Math.round 2013-10-23 22:37:55 +08:00
HW
141d72ddbe Merge remote-tracking branch 'upstream/master' 2013-10-22 20:54:57 +02:00
HW
09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +02:00
HW
748a443cd5 Merge remote-tracking branch 'upstream/master'
resolved conflicts with refactored structure
2013-10-22 17:19:08 +02:00
HW
2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00
chrox
99e0da52b6 check json output before decoding
This should fix #332.
2013-10-22 22:13:47 +08:00
chrox
8b6bf2e72b export highlights only if highlighted text is not nil 2013-10-20 12:32:35 +08:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
chrox
1ccba6ce39 use --utf8-input and --utf8-out params when calling sdcv
This will prevent string encoding conversion in Kobo in which it
has problem to doing so.
This patch should fix #252 and #272.
2013-10-18 00:02:55 +08:00
chrox
d7d2b9a20b press Enter in Goto Dialog will goto page/location directly 2013-10-17 23:56:03 +08:00
chrox
c86bb46ef7 add gotoLocation for credocument 2013-10-17 23:53:29 +08:00
chrox
cd2ee14b91 various fixes on Device:hasKeyboard check 2013-10-16 20:56:18 +08:00
chrox
32ffacdf77 adjust font sizes in credocument according to screen dpi
and font sizes list is moved to defaults.lua
2013-10-16 17:06:28 +08:00
chrox
9f42289226 use pixels from reflowed page when doing OCR in reflowing mode
I hope it will get back OCR accuracy as in build 545.
2013-10-14 23:06:05 +08:00
chrox
7a5ce55b8d fix extra page rendering when starts up in landscape mode 2013-10-13 22:13:04 +08:00
chrox
4660a3532b synchronize hightlights in non-/reflowing modes
and there is no need to OCR word if we can extract text from
original page in reflowing mode thanks to the rect maps between
normal page and reflowed page.
2013-10-12 23:07:13 +08:00
chrox
2f61b96748 fix wrong zoom value after returning from cropping dialog 2013-10-11 23:39:57 +08:00
chrox
0b7554b1d8 add DSHOWOVERLAP in defaults.lua
Turn off "show overlap" by default since scroll mode can replace it
in most cases where "show overlap" is used. And the dimmed area often
make new users confused. It's better to leave this feature to more
advanced users.
2013-09-14 19:35:37 +08:00
chrox
979d4c5d48 add DHINTCOUNT in defaults.lua
It controls how many number of pages will be hinted in background
after one page has been drawn. Default DHINTCOUNT is 2.
2013-09-14 15:27:56 +08:00
Paulo Matias
54636e9407 Add InputText:setText and avoid non-intuitive UI behavior after light toggle 2013-08-21 08:54:46 -03:00
chrox
6f89fec891 fix calling setFontSize in pdfreader 2013-08-17 16:11:46 +08:00
chrox
44c31afe62 fix bug #179
It seems that the setPageMargins method will mess up XPointer of current view.
This bugfix simply disables page margin restoring in readercopt.lua so that
reading position is restorable.
2013-08-17 15:34:42 +08:00
chrox
75eb0e6f23 bugfix: fix screen ghosting after swiping north/south in scroll mode
As swiping north/south will generate several pan gestures which will
set refresh mode to WAVEFORM_MODE_A2, we should explicitly do a full
refresh in order to switch refresh waveform from WAVEFORM_MODE_A2
to WAVEFORM_MODE_GC16 as in OnPanRelease.
2013-08-17 11:01:57 +08:00
Qingping Hou
94e89e8e38 add missing import for group widget in readerview 2013-08-14 12:13:48 -04:00
Paulo Matias
81facc2ce9 Refactor min/max handling in BaseFrontLight; use getFrontlight() in ReaderFrontLight for consistency 2013-08-12 09:37:41 -03:00
Paulo Matias
3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 2013-08-12 02:13:28 -03:00
Paulo Matias
232d8cd74a Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns 2013-08-12 02:13:28 -03:00
Giorgio Micotti
cea353323e Initial light control widget; final fixes for kobo light 2013-08-05 23:06:26 +02:00
Giorgio Micotti
103133d216 Fix some dumb mistakes, toggle light now works 2013-08-02 11:08:36 +02:00
chrox
ef7f3fec90 fix keyboard in landscape 2013-07-31 13:51:01 +08:00
chrox
196f72a053 add onGotoPage handler in readerpaging 2013-07-30 23:37:51 +08:00
chrox
57a5f18406 add goto page menu entry for pdfreader 2013-07-30 23:09:08 +08:00
chrox
6c7641cd0b fix long definition not shown properly in dictionary window 2013-07-28 16:07:51 +08:00
chrox
3f36fa80fd fix nil pos bug in readerhighlight 2013-07-25 23:03:54 +08:00
Qingping Hou
201e63b2b2 fix require error 2013-07-24 02:14:12 -04:00
Huang Xin
5eb1fb7e06 Merge pull request #174 from giorgio130/master
WIP kobo light support
2013-07-23 18:09:47 -07:00
Giorgio Micotti
70963a0ddc Merge branch 'master' of https://github.com/koreader/koreader 2013-07-23 19:41:16 +02:00
Giorgio Micotti
e4b8fc3266 NOT WORKING initial kobo light support. 2013-07-23 19:40:26 +02:00
Paulo Matias
b814eaf6f3 Fix a rare crash on ReaderHighlight 2013-07-23 14:08:14 -03:00
chrox
07de799237 set fast refresh mode in setDirty method 2013-07-23 14:51:38 +08:00
{Qingping,Dave} Hou
b7a49e04f9 Merge pull request #167 from chrox/refresh_mode
add regional screen refresh support
2013-07-22 08:30:25 -07:00
chrox
f2a6b7c4e3 use WAVEFORM_MODE_A2 when scrolling page 2013-07-22 22:07:49 +08:00
Paulo Matias
f0b352b0e3 Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165) 2013-07-22 09:23:58 -03:00
chrox
8f051b4c44 bugfix: update width of dict window in readerdictionary 2013-07-21 14:42:27 +08:00
chrox
725bef08e6 add multi-dictionary support 2013-07-21 14:23:54 +08:00
{Qingping,Dave} Hou
bc15daf06f Merge pull request #163 from chrox/ocr_language
add document language option in config dialog
2013-07-20 10:11:40 -07:00
chrox
6dc53df5b5 word gap is set to smallest when selcting CJK languages 2013-07-20 03:33:58 +08:00
chrox
71d6395fba add Translate button when selecting multiple words 2013-07-20 02:49:03 +08:00
chrox
1808c7e5c3 add document language option in config dialog
Document language setting is used for better text extraction and OCR.
2013-07-20 02:46:51 +08:00
{Qingping,Dave} Hou
af2e9436dc Merge pull request #160 from chrox/master
if original zoom mode is not "content", set zoom mode to "contentwidth" after cropping
2013-07-15 10:41:58 -07:00