Commit Graph

307 Commits (4cfdce610575aecfce60607413fad72e30b79791)

Author SHA1 Message Date
chrox 4cfdce6105 fix several local calls of Math.round 11 years ago
HW 141d72ddbe Merge remote-tracking branch 'upstream/master' 11 years ago
HW 09cd5c4104 Make DEBUG a require()d local 11 years ago
HW 748a443cd5 Merge remote-tracking branch 'upstream/master'
resolved conflicts with refactored structure
11 years ago
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).
11 years ago
chrox 99e0da52b6 check json output before decoding
This should fix #332.
11 years ago
chrox 8b6bf2e72b export highlights only if highlighted text is not nil 11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
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.
11 years ago
chrox d7d2b9a20b press Enter in Goto Dialog will goto page/location directly 11 years ago
chrox c86bb46ef7 add gotoLocation for credocument 11 years ago
chrox cd2ee14b91 various fixes on Device:hasKeyboard check 11 years ago
chrox 32ffacdf77 adjust font sizes in credocument according to screen dpi
and font sizes list is moved to defaults.lua
11 years ago
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.
11 years ago
chrox 7a5ce55b8d fix extra page rendering when starts up in landscape mode 11 years ago
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.
11 years ago
chrox 2f61b96748 fix wrong zoom value after returning from cropping dialog 11 years ago
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.
11 years ago
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.
11 years ago
Paulo Matias 54636e9407 Add InputText:setText and avoid non-intuitive UI behavior after light toggle 11 years ago
chrox 6f89fec891 fix calling setFontSize in pdfreader 11 years ago
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.
11 years ago
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.
11 years ago
Qingping Hou 94e89e8e38 add missing import for group widget in readerview 11 years ago
Paulo Matias 81facc2ce9 Refactor min/max handling in BaseFrontLight; use getFrontlight() in ReaderFrontLight for consistency 11 years ago
Paulo Matias 3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 11 years ago
Paulo Matias 232d8cd74a Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns 11 years ago
Giorgio Micotti cea353323e Initial light control widget; final fixes for kobo light 11 years ago
Giorgio Micotti 103133d216 Fix some dumb mistakes, toggle light now works 11 years ago
chrox ef7f3fec90 fix keyboard in landscape 11 years ago
chrox 196f72a053 add onGotoPage handler in readerpaging 11 years ago
chrox 57a5f18406 add goto page menu entry for pdfreader 11 years ago
chrox 6c7641cd0b fix long definition not shown properly in dictionary window 11 years ago
chrox 3f36fa80fd fix nil pos bug in readerhighlight 11 years ago
Qingping Hou 201e63b2b2 fix require error 11 years ago
Huang Xin 5eb1fb7e06 Merge pull request #174 from giorgio130/master
WIP kobo light support
11 years ago
Giorgio Micotti 70963a0ddc Merge branch 'master' of https://github.com/koreader/koreader 11 years ago
Giorgio Micotti e4b8fc3266 NOT WORKING initial kobo light support. 11 years ago
Paulo Matias b814eaf6f3 Fix a rare crash on ReaderHighlight 11 years ago
chrox 07de799237 set fast refresh mode in setDirty method 11 years ago
{Qingping,Dave} Hou b7a49e04f9 Merge pull request #167 from chrox/refresh_mode
add regional screen refresh support
11 years ago
chrox f2a6b7c4e3 use WAVEFORM_MODE_A2 when scrolling page 11 years ago
Paulo Matias f0b352b0e3 Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165) 11 years ago
chrox 8f051b4c44 bugfix: update width of dict window in readerdictionary 11 years ago
chrox 725bef08e6 add multi-dictionary support 11 years ago
{Qingping,Dave} Hou bc15daf06f Merge pull request #163 from chrox/ocr_language
add document language option in config dialog
11 years ago
chrox 6dc53df5b5 word gap is set to smallest when selcting CJK languages 11 years ago
chrox 71d6395fba add Translate button when selecting multiple words 11 years ago
chrox 1808c7e5c3 add document language option in config dialog
Document language setting is used for better text extraction and OCR.
11 years ago
{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
11 years ago