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

21 Commits

Author SHA1 Message Date
chrox
3a1fe689e2 update multiple screen regions
This is useful when updating keyboard and inputbox.
2014-11-05 12:28:28 +08: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
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
f575797b01 use original lookup word in wikipedia lookup 2014-08-20 18:25:37 +08:00
chrox
a275a8cc89 strip punctuations in word before wikipedia lookup 2014-08-20 18:04:19 +08:00
chrox
7b10d66e1b enable Wikipedia support
Since wikipedia server is language specific we should first detect
language of the text by querying Google Translate. Make sure you have
access to both Google Translate and Wikipedia service to use this
function.
2014-08-20 14:41:48 +08:00
chrox
d34a7fb355 lookup input word when holding on word in dict lookup window 2014-08-18 00:32:09 +08:00
chrox
a9b16613cf enable highlight in dictionary lookup window
This should fix #774.
2014-08-11 21:50:21 +08:00
pazos
9458936868 no need to translate trademarks v2 2014-08-09 13:56:49 +02:00
chrox
82b458102a swipe east/west to switch dictionary in dict quick lookup window 2014-07-24 22:10:28 +08:00
chrox
e624695d54 the Back key on Android should close the popup window and menu 2014-06-10 21:33:31 +08:00
chrox
877cff2933 invert button on tap 2014-05-01 18:37:12 +08:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
chrox
98f1c90d87 make dictionary title, toggle option and button text bold 2014-01-22 17:26:14 +08:00
Paulo Matias
9072a30cb5 Avoid off-limits dictionary title and make font size adjustable 2014-01-10 01:12:51 -02:00
chrox
f9445fca0d tweaks on dict lookup window 2014-01-07 19:30:53 +08:00
chrox
13d70eec9b add Kindle-like dictionary window follow-up 2013-12-26 22:40:40 +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
HW
09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +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
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00