chrox
8d7ebaff5d
add external font dir option for Android
2015-06-06 17:22:09 +08:00
Qingping Hou
a30fe26de0
Merge pull request #1543 from chrox/plugable-turbo
...
disable turbo lib by default
2015-06-03 12:47:07 -04:00
chrox
3ad0ea5777
refactoring: remove dead code in font module
2015-06-02 13:19:50 +08:00
chrox
c7cac7b333
disable turbo lib by default
2015-06-02 13:07:17 +08:00
Guangda Hu
7491cd7b9d
fix spaces
2015-05-15 21:57:00 -04:00
Guangda Hu
69db627136
Glo HD support
2015-05-15 17:46:16 -04:00
NiLuJe
8a8697c382
Future-proof the frontlight handling on Kindle.
...
Guard against trying to get any kind of frontlight info on devices
without one.
So far the flIntensity prop has always been there, even on devices
without one, but better not assume that'll always be the case ;).
That, and be consistent with the other lipc_handle tests.
2015-04-28 18:25:56 +02:00
chrox
d468b05567
Use turbo looper on Android
2015-04-28 11:06:38 +08:00
NiLuJe
3fdd90cf3b
Fix a few Droid font paths
2015-04-27 22:19:11 +02:00
NiLuJe
a6a2b3d6a3
Try to get the Kobo codename from the env first
...
My batch of startup script tweaks should ensure PRODUCT is always
exported.
Leave the fallback in place, to avoid blowing up in weird corner-cases I
haven't thought about.
2015-04-27 13:15:02 +02:00
NiLuJe
c9d941215b
lfs.attributes() basically does a stat()
...
Rename these variables accordingly, that kills my itch to close() random
fds ^^
2015-04-27 13:10:16 +02:00
Qingping Hou
186673587e
chore: fix some of the luacheck errors
2015-04-26 20:57:45 -04:00
NiLuJe
c847807322
Turns out that also looks better as ui refreshes
2015-04-26 20:10:18 +02:00
NiLuJe
50dbf6b581
Switch a few widgets to ui refresh modes
...
More closely matches native behavior on REAGL devices.
Closing those widgets should still trigger a partial refresh though,
because we usually get back to the reader, and text, so we want REAGL
;).
2015-04-26 20:07:17 +02:00
NiLuJe
c6a3f9002c
Tweak the H2O viewport to make it pixel-perfect.
...
As confirmed by checking a fb dump via fbgrab, and nickel's
broken cropping of screenshots ;).
2015-04-26 19:11:47 +02:00
chrox
d345f21c39
Fix sdcv on Android cannot handle morphological changes
2015-04-22 14:27:33 +08:00
chrox
932df2a2f9
Refactor out string.gsplit to util.gsplit
2015-04-22 14:27:33 +08:00
chrox
98515a2210
Fix filemanager cp/mv/rm operations not work on Android
2015-04-22 14:27:33 +08:00
chrox
402806d32b
Dictionary on Android
...
Stardict dictionary files should be copied to
/sdcard/koreader/data/dict/ directory.
2015-04-15 20:30:27 +08:00
chrox
fdc56f39a3
Show OTA channel info when package is unavailable
...
so that users could be aware that there is other channels to check.
2015-04-15 13:41:00 +08:00
chrox
b1867def37
Check dns for www.example.com when geting network status
...
Because sometimes dns won't return for www.google.com in China,
ridiculous enough, right?
2015-04-15 13:41:00 +08:00
chrox
ebdd374c93
Add 'input page number' function in filemanager
...
by holding on the page info label at the buttom of the filemanager
2015-04-13 14:45:05 +08:00
chrox
263309d0f3
Add option to disable swipe to go back
...
and add a menu entry "Go back".
This should fix #1443 .
2015-04-01 18:24:01 +08:00
chrox
c2924abac4
Fix OCR fails on native djvu pages
...
The page_width and page_height were always 600 and 800 before this patch
rendering the OCR engine confused.
This should fix #1379 .
2015-03-31 10:31:02 +08:00
chrox
cfffb44c9d
Fix no hardware key bindings on Android
2015-03-29 08:59:51 +08:00
chrox
0788709f26
Popup goto dialog only when holding on visible status bar
2015-03-28 22:04:12 +08:00
chrox
946f527bb5
Remember scroll mode in flipping mode
...
This is a follow-up workaround on #1439 .
2015-03-24 09:34:10 +08:00
chrox
8836225cec
fix freeze when register for KOSync on Kindle
2015-03-21 13:19:00 +08:00
chrox
82393f0ed3
fix loading frontend/JSON.lua for json.lua on Kindle
...
The VFAT file system of `/mnt/us` is case insensitive so that
require("json") from Spore which intends to load luajson module in
rock directory actually will load `frontend/JSON.lua`, the two JSON
parser libraries have slightly different APIs.
This patch remove the pure Lua JSON library in favor of `luajson` which
uses LPeg pattern marching backend for better performance.
2015-03-21 13:19:00 +08:00
chrox
ff3a42e503
typo fix of #1462
2015-03-20 21:22:14 +08:00
chrox
d3bb0d159a
disable Turbo on Android to save precious mcode
...
This is a workaround to fix #1456 .
2015-03-20 10:15:41 +08:00
chrox
72012e97e1
disable reflow options when reflow is not ON
...
This should also fix #1061 .
2015-03-16 21:51:17 +08:00
chrox
90a5e09bdc
disable highlight in dict window if it's highlighted already
...
This should fix #1418 .
2015-03-12 18:51:01 +08:00
chrox
2ad21dcaa2
only strip punctuations when highlight to search
...
This should fix #1419 .
2015-03-12 17:41:23 +08:00
chrox
83cad1c61c
larger page margin as a workaround to fix #1422
2015-03-12 17:31:33 +08:00
chrox
daeefff741
fix #1433
2015-03-12 16:31:12 +08:00
chrox
69e6b6b9cb
hold on directory in filemanager can set the it as HOME directory
...
and this "HOME" directory will override the command line option passed to
koreader.
This patch implements #1434 .
2015-03-12 16:29:15 +08:00
chrox
3224eb1797
fix inproper variable name for pages left
2015-03-12 15:51:59 +08:00
chrox
992e769aaf
support goto relative page number
...
We can input relative page number now in the reader goto dialog.
Goto "+4" will page forward 4 pages and goto "-4" will page
backward 4 pages.
This implements #1437 .
2015-03-12 15:46:01 +08:00
chrox
ea76d91ed4
save zoom mode in flipping mode
...
This is a workaround to fix #1439 .
2015-03-12 14:52:59 +08:00
chrox
35abf4bfaf
move minibar configurations to reader menu
...
and fix #1446 by adding progress percentage in minibar.
2015-03-12 14:35:49 +08:00
chrox
cf124eb72f
refresh menu instead of closing if menu item is a check option
2015-03-12 14:19:10 +08:00
chrox
ae9f99744d
flush setting before showing screensaver
2015-03-10 18:33:11 +08:00
chrox
d08e22ec2e
add simple sync service as a plugin
...
The 'KOSync' plugin will synchronize furthest reading progress
across different koreader devices after users registering their
devices.
The synchronizing service is open-sourced as the project
[koreader/koreader-sync-server](https://github.com/koreader/koreader-sync-server ).
2015-03-09 20:20:36 +08:00
chrox
d7faba5b5c
request from async http client only accept one callback
...
and error should be checked in the callback
2015-03-07 11:19:43 +08:00
chrox
0191dc6530
revert busted to v1.10.0 to avoid segmentation fault in testing
2015-03-05 17:56:03 +08:00
chrox
9299b9a5e8
add async http client
...
it uses non-blocking turbo I/O looper to process http request
so that multiple http request can be handled simultaneously and http request
won't block user input, and most importantly, in Lua's way.
2015-03-02 17:21:26 +08:00
chrox
5c9a9198fb
add Document:fastDigest method to calculate document hash without performance overhead
2015-03-02 14:55:16 +08:00
chrox
07ff30f89c
add md5:update and md5:sum methods
2015-03-02 14:55:16 +08:00
Huang Xin
b56c01c382
Merge pull request #1423 from Markismus/master
...
Update networkmgr.lua
2015-02-10 23:13:00 +08:00
Markismus
a32c3b3879
Update networkmgr.lua
...
Corrected a typo.
2015-02-09 16:01:30 +01:00
Markismus
5dd2fe0fae
Update networkmgr.lua
...
Change from the commands from `wifi.sh` to those from `wifi_enable_dhcp.sh` from Tshering's Start Menu. See Issue #939 . Should resolve hanging of Kobo Aura H2O.
2015-02-08 18:28:28 +01:00
chrox
3a0960d391
goto current toc entry automatically when open TOC window
2015-02-03 15:34:35 +08:00
chrox
5b76805911
disable follow link by default because it may cause trouble in reflowing mode
2015-02-03 12:48:24 +08:00
chrox
1894e71b07
don't expand toc node when it's parent node is collapsed
2015-02-03 12:48:24 +08:00
Cosmin Gorgovan
41045dab99
Fix charging detection for Kobo devices
...
I've tested this on a N905C. I assume this implementation never
worked (since charge_now is supposed to show state of charge), but
it would be useful to get a confirmation.
2015-02-02 16:46:46 +00:00
chrox
906c91f0ad
add page-button support for Kindle Voyage
2015-02-02 21:37:38 +08:00
chrox
17f1498156
fix successively set landscape rotate the screen
2015-02-02 02:33:12 +08:00
chrox
5d79158602
fix cannot save document if exit directly after highlighting in PDF
2015-02-02 02:22:58 +08:00
chrox
f22a53affd
screen orientation won't change when going into filemanager
...
and filemanager remembers screen orientation at exit
This should fix #1338 .
2015-02-02 01:36:52 +08:00
chrox
ca6b3d7e33
fix #1373 by checking the pos0 and pos1 of selected text
2015-02-02 00:09:07 +08:00
chrox
02d61115dc
fix some part of the screen not refreshed when togglering nightmode
2015-02-01 23:21:34 +08:00
chrox
e25ca27db3
auto expand the parent TOC node of current page
...
and fix current item of item not updated when in the last node
This should fix #1396 .
2015-02-01 22:50:08 +08:00
chrox
720ab191ab
fix crash when opening TOC window in scroll mode of EPUB
2015-02-01 21:52:46 +08:00
chrox
10db20f289
don't add duplicated bookmark and can delete bookmark
...
This should fix #1397 .
2015-02-01 21:37:25 +08:00
chrox
1e8f07629f
don't pop-up TOC window
2015-02-01 21:36:22 +08:00
chrox
c6f6699644
fix empty menu widget won't trigger screen refresh
...
This should fix #1398 .
2015-02-01 20:41:23 +08:00
chrox
07586cea71
strip punctuations around word before searching
...
This should fix #1337 .
2015-02-01 17:40:45 +08:00
chrox
3f691bab93
add stable OTA channel
...
This should fix #1353 .
2015-02-01 17:25:30 +08:00
chrox
db064fc009
add toggle wifi status on PocketBook
2015-02-01 15:16:27 +08:00
chrox
d0b450efde
refresh battery capacity when going out of suspend
...
This should fix #1383 .
2015-02-01 12:49:49 +08:00
NiLuJe
06bf4a2199
Fix input on KT2 devices (re #1403 )
2015-01-30 19:00:29 +01:00
chrox
a40c172c47
fix mupdf rendering caused by FONTDIR env var
...
It turns out that one of our mupdf patch reads the FONTDIR env var
and uses it in a totally different way so we will use another env var
EXT_FONT_DIR to define external font directory for different platforms.
2015-01-28 02:20:45 +08:00
chrox
077517be0b
add FONTDIR env variable
...
to support custom font directory for EPUB documents
Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
2015-01-25 16:52:04 +08:00
chrox
9d13d4189b
fix no eink optimization on all devices
2015-01-25 00:53:25 +08:00
chrox
375070867b
fix crash when checking ota on some devices
2015-01-25 00:53:25 +08:00
chrox
c11a2bbf1e
fix ota update for PocketBook
2015-01-20 00:07:53 +08:00
chrox
29c15518b0
fix wrong PgBack/PgFwd key binding
2015-01-19 12:50:59 +08:00
chrox
49e672d599
totally disable rotation gesture to change screen orientation
2015-01-18 14:59:11 +08:00
chrox
291f088d94
update koreader-base for multi-touch support on PocketBook
2015-01-18 14:26:33 +08:00
chrox
d94d7d3aa7
fix PgFwd/PgBack cannot turn page in PDF scroll mode
2015-01-18 04:34:19 +08:00
chrox
6a06cfaea5
refactor out flush settings when device goes into screensaver
2015-01-18 00:58:08 +08:00
chrox
a5b90588ae
add powerd for PocketBook device
2015-01-17 23:54:49 +08:00
chrox
96e9bb0701
partial refresh screen when koreader goes to forground
2015-01-17 23:17:46 +08:00
chrox
5c4651a3d9
auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook
2015-01-17 09:09:36 +08:00
chrox
7ac36a460c
handle keyboard events in pocketbook
2015-01-15 22:23:03 +08:00
chrox
6894c11640
fix typo
2015-01-13 00:18:59 +08:00
chrox
1cba495fe0
add PocketBook port of Koreader
2015-01-13 00:15:18 +08:00
Hans-Werner Hilse
d016858d75
only device event0 and event1 do exist, remove others.
2015-01-09 15:55:04 +00:00
Hans-Werner Hilse
c28d973941
fix: load input driver before configuring it
2015-01-09 15:46:33 +00:00
Hans-Werner Hilse
0b5545f125
rump implementation for PocketBook devices, to be extended.
2015-01-09 14:10:25 +00:00
Michael Hall
9a66805b5a
Handle Kobo Touch Key
2014-12-26 11:45:09 +00:00
Hans-Werner Hilse
f789913702
read global default value for margin size
...
The global configuration wasn't evaluated before
2014-12-19 14:03:56 +00:00
Hans-Werner Hilse
a4571c297e
read global default value for using embedded stylesheets
...
The global configuration wasn't evaluated before.
Fixes #1364 .
2014-12-19 13:58:03 +00:00
Qingping Hou
6ed8f30f35
fix: empty item_table crashes menu widget
2014-12-18 03:16:11 -05:00
chrox
b403a45228
fix OTA server broken on checking stable release
2014-12-06 20:14:10 +08:00
Hans-Werner Hilse
05503791b4
issue a full refresh when changing rotation
2014-12-05 21:25:32 +00:00
chrox
8555f24c45
make sure refresh_count is incremented by only once at most for each repaint
2014-12-04 15:46:47 +08:00
chrox
b3d79b053a
workaround to fix #1340
2014-12-04 10:09:09 +08:00
chrox
d9fa97df5a
fix #1336 by ignoring uncompatiable saved highlights
2014-12-04 09:13:56 +08:00