chrox
32cd7b2a88
show both reader menu and config menu when tapping top
...
So the bottom tap zone is optional now and will be removed by default
in the future.
2013-12-27 21:47:19 +08:00
chrox
13d70eec9b
add Kindle-like dictionary window follow-up
2013-12-26 22:40:40 +08:00
chrox
b5fd38f897
delayed calling of gotoXPointer when internal properties are changed
...
This should fix #400 and fix #300 .
2013-12-26 06:24:36 +08:00
chrox
01046fe478
fix font size change when reopening the same credocument
2013-12-26 02:00:48 +08:00
chrox
3b9eaafadd
add dictionary lookup in crereader
2013-12-25 01:43:28 +08:00
chrox
f476a638a8
fix highlight dialog triggering bookmark
2013-12-20 12:17:11 +08:00
chrox
e5bf0eb13e
fix closing dict window will bookmark current page
...
use `self.highlight:handleEvent(Event:new("Tap"))` instead of
`self.ui:handleEvent(Event:new("Tap"))` when clearing highlighted
text since Tap event in latter situation will be captured by
the dogear widget.
2013-12-20 12:05:11 +08:00
chrox
2bb3c7c286
append page number in toc entry
2013-12-19 23:14:27 +08:00
chrox
93866822d0
always show progress bar in flipping mode
...
tap on progress bar in flipping mode will goto corresponding page
2013-12-17 22:42:31 +08:00
chrox
da317ed14a
customizable tap zones for top menu
2013-12-17 20:11:34 +08:00
chrox
f0039cbb02
customizable tap zones for page flipping and bookmarking
2013-12-17 19:53:43 +08:00
chrox
3205f228d3
partial refresh when switching time display in progress bar
2013-12-17 19:51:07 +08:00
chrox
5dd96b8756
tap on reader footer will toggle time display
2013-12-15 20:19:06 +08:00
chrox
912a8a496b
add customizable tap zones for tap forward/backward and config
2013-12-15 17:02:52 +08:00
chrox
4d7d88cfbc
page overlap is turned on by default
...
Page overlap added when turning in non-fit-to-page zoom mode
is now distinguishable from dim area overlap.
2013-12-09 15:58:25 +08:00
chrox
2fd66e1fa3
typo fix
2013-12-04 22:17:05 +08:00
chrox
84ad0f2307
fix null export highlight in reflowed mode
2013-11-30 21:17:13 +08:00
chrox
153d0866d5
remove auto "contentwidth" in landscape
...
This should fix #365 .
2013-11-29 17:18:50 +08:00
chrox
88c2307c14
fix kindle paperwhite2 support
...
reported at http://www.mobileread.com/forums/showpost.php?p=2696481&postcount=316
tested at http://www.hi-pda.com/forum/redirect.php?goto=findpost&ptid=1078988&pid=23393929
2013-11-25 23:30:54 +08:00
chrox
2f2d3553ff
fix cannot highlight text with only one word in the first line
2013-10-28 21:48:17 +08:00
chrox
974927db54
smoother relative panning in scrolled pages
2013-10-25 16:07:04 +08:00
Qingping Hou
d3979ff72d
call scaleByDPI from screen module fixes #343
2013-10-24 13:47:22 -04:00
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
Huang Xin
c8a1fb4935
if original zoom mode is not "content", set zoom mode to "contentwidth" after cropping
...
Otherwise, users will feel confused that the view stays the same after cropping if current mode is fit-to-page.
2013-07-15 19:10:17 +08:00
chrox
03faf70fd5
show last used panel when opening config dialog
2013-07-14 18:48:06 +08:00
chrox
52c4ada111
save rotation mode in doc settings
2013-07-13 13:57:02 +08:00
chrox
cee6f6a616
fix typo in readerrotation.lua
2013-07-13 13:52:30 +08:00
chrox
56c8b28f7c
Fix bug #151
...
Check if there is only one line between the two positions and no
word boxes are found, if so break the loop immediately.
2013-07-12 20:52:12 +08:00
chrox
5b1ca4b101
remove associated scroll mode setting with zoom mode
2013-07-09 15:38:34 +08:00
Qingping Hou
0d902a1a4c
add scrollmode and fullscreen mode to defaults
2013-07-03 02:19:10 -04:00
Qingping Hou
561c7902ca
move defaults.lua to root directory
2013-07-01 02:55:28 -04:00
Qingping Hou
18122fe067
add defaults.lua
2013-07-01 02:41:33 -04:00
chrox
d8e45b4e7c
bugfix: embedded css toggle now shows correct status
2013-06-28 17:15:02 +08:00
chrox
94526fa26d
add page margin options in CREOptions
2013-06-28 17:12:04 +08:00
chrox
f87c67308a
toggle scroll mode on when zooming to content*
...
and toggle scrool mode off when zooming to page*.
2013-06-26 15:54:24 +08:00
chrox
84e67ff122
disable scroll mode in flipping for better performance
2013-06-26 15:51:12 +08:00
chrox
35f71bb04a
add fake tap to dismiss temp hightlight after hightlight is saved
2013-06-17 13:15:24 +08:00
chrox
18fbc0f248
export hightlights to My Clippings
2013-06-16 19:00:15 +08:00
chrox
8ae528629c
bugfix: make a fresh copy of Geom before transforming
2013-06-16 18:59:11 +08:00
chrox
c116b34e71
parameterize lighten color in displaying saved highlights
2013-06-16 17:10:54 +08:00
chrox
e3da8e41f1
remove selected word if hold moves out of word box
2013-06-16 16:58:26 +08:00
chrox
2e4485c396
add strings in highlight dialog for translation
2013-06-16 11:15:39 +08:00
chrox
eb4c76bd15
add highlight in pdf reader
2013-06-15 23:16:53 +08:00
chrox
c8df7a460d
strip punctuation characters around selected word
2013-06-15 23:16:53 +08:00
Qingping Hou
cc411efc92
update rolling status after cre view mode change
2013-05-18 13:35:12 -04:00
chrox
c3dc712169
fix reader crash when hold pos is outside of page area
2013-05-03 19:04:31 +08:00
chrox
7c78e83e49
add hightlight/dictionary lookup in scanned pdf/djvu
2013-05-01 23:43:53 +08:00
chrox
81294e804a
fix page rect to screen rect transform when scale is larger than 1
2013-05-01 23:42:30 +08:00
chrox
390135d02d
escape quotes and other funny characters in word when popening sdcv
2013-05-01 17:53:18 +08:00
chrox
bda282ffa4
fix ineffective default options of full screen and scroll mode
2013-05-01 10:46:20 +08:00
chrox
e560c20c6d
add word lookup with stardict
2013-04-30 18:45:12 +08:00