frankyifei
059de23037
implement GUI dialog for setting crengine fallback font
9 years ago
Frans de Jonge
f1e8710f0f
Implement persistent global style setting
9 years ago
Frans de Jonge
f9d415642a
Fix clear external styles not persistent in document settings
...
References #1601
9 years ago
Frans de Jonge
ba994f41ab
Fix Wikipedia (HTTP is now HTTPS) and some failsafes
...
Rudimentary JSON validity check by seeing if the first character is {. The JSON decode function will crash in spite of pcall if it's not.
9 years ago
frankyifei
d0a44b9152
style
9 years ago
frankyifei
f7fb103abc
loop menu pages when it reaches ends
...
the following graph shows my idea.
1->2->3->4->5->6->7->8->9->10
└----------------------------------------┘
9 years ago
frankyifei
f7142cfcbe
fix filechooser crash on entering folder contains nil symlink
9 years ago
chrox
ec1d9e4b7d
partial refresh after deleting highlights
...
This should fix #1558 .
9 years ago
chrox
612ee99707
dictionary lookup now supports phrase
...
This should fix #1537 .
9 years ago
chrox
34ea9ac574
add datastorage module to handle data directory on various platform
...
On kindle, kobo and pocketbook the data directory is the current
running directory but on Android the app is installed in system
defined location and users may have no access to that location.
The same circumstances should be true for the upcoming Koreader for
Ubuntu touch, so the data directory (in which tessdata, dictionaries,
global settings, persistant defaults and probably history data are
stored) could be stored in another place.
9 years ago
chrox
8d7ebaff5d
add external font dir option for Android
9 years ago
Qingping Hou
a30fe26de0
Merge pull request #1543 from chrox/plugable-turbo
...
disable turbo lib by default
9 years ago
chrox
3ad0ea5777
refactoring: remove dead code in font module
9 years ago
chrox
c7cac7b333
disable turbo lib by default
9 years ago
Guangda Hu
7491cd7b9d
fix spaces
9 years ago
Guangda Hu
69db627136
Glo HD support
9 years ago
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.
9 years ago
chrox
d468b05567
Use turbo looper on Android
9 years ago
NiLuJe
3fdd90cf3b
Fix a few Droid font paths
9 years ago
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.
9 years ago
NiLuJe
c9d941215b
lfs.attributes() basically does a stat()
...
Rename these variables accordingly, that kills my itch to close() random
fds ^^
9 years ago
Qingping Hou
186673587e
chore: fix some of the luacheck errors
9 years ago
NiLuJe
c847807322
Turns out that also looks better as ui refreshes
9 years ago
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
;).
9 years ago
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 ;).
9 years ago
chrox
d345f21c39
Fix sdcv on Android cannot handle morphological changes
9 years ago
chrox
932df2a2f9
Refactor out string.gsplit to util.gsplit
9 years ago
chrox
98515a2210
Fix filemanager cp/mv/rm operations not work on Android
9 years ago
chrox
402806d32b
Dictionary on Android
...
Stardict dictionary files should be copied to
/sdcard/koreader/data/dict/ directory.
9 years ago
chrox
fdc56f39a3
Show OTA channel info when package is unavailable
...
so that users could be aware that there is other channels to check.
9 years ago
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?
9 years ago
chrox
ebdd374c93
Add 'input page number' function in filemanager
...
by holding on the page info label at the buttom of the filemanager
9 years ago
chrox
263309d0f3
Add option to disable swipe to go back
...
and add a menu entry "Go back".
This should fix #1443 .
9 years ago
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 .
9 years ago
chrox
cfffb44c9d
Fix no hardware key bindings on Android
9 years ago
chrox
0788709f26
Popup goto dialog only when holding on visible status bar
9 years ago
chrox
946f527bb5
Remember scroll mode in flipping mode
...
This is a follow-up workaround on #1439 .
9 years ago
chrox
8836225cec
fix freeze when register for KOSync on Kindle
9 years ago
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.
9 years ago
chrox
ff3a42e503
typo fix of #1462
9 years ago
chrox
d3bb0d159a
disable Turbo on Android to save precious mcode
...
This is a workaround to fix #1456 .
9 years ago
chrox
72012e97e1
disable reflow options when reflow is not ON
...
This should also fix #1061 .
9 years ago
chrox
90a5e09bdc
disable highlight in dict window if it's highlighted already
...
This should fix #1418 .
9 years ago
chrox
2ad21dcaa2
only strip punctuations when highlight to search
...
This should fix #1419 .
9 years ago
chrox
83cad1c61c
larger page margin as a workaround to fix #1422
9 years ago
chrox
daeefff741
fix #1433
9 years ago
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 .
9 years ago
chrox
3224eb1797
fix inproper variable name for pages left
9 years ago
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 .
9 years ago
chrox
ea76d91ed4
save zoom mode in flipping mode
...
This is a workaround to fix #1439 .
9 years ago
chrox
35abf4bfaf
move minibar configurations to reader menu
...
and fix #1446 by adding progress percentage in minibar.
9 years ago
chrox
cf124eb72f
refresh menu instead of closing if menu item is a check option
9 years ago
chrox
ae9f99744d
flush setting before showing screensaver
9 years ago
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 ).
9 years ago
chrox
d7faba5b5c
request from async http client only accept one callback
...
and error should be checked in the callback
9 years ago
chrox
0191dc6530
revert busted to v1.10.0 to avoid segmentation fault in testing
9 years ago
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.
9 years ago
chrox
5c9a9198fb
add Document:fastDigest method to calculate document hash without performance overhead
9 years ago
chrox
07ff30f89c
add md5:update and md5:sum methods
9 years ago
Huang Xin
b56c01c382
Merge pull request #1423 from Markismus/master
...
Update networkmgr.lua
9 years ago
Markismus
a32c3b3879
Update networkmgr.lua
...
Corrected a typo.
9 years ago
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.
9 years ago
chrox
3a0960d391
goto current toc entry automatically when open TOC window
9 years ago
chrox
5b76805911
disable follow link by default because it may cause trouble in reflowing mode
9 years ago
chrox
1894e71b07
don't expand toc node when it's parent node is collapsed
9 years ago
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.
9 years ago
chrox
906c91f0ad
add page-button support for Kindle Voyage
9 years ago
chrox
17f1498156
fix successively set landscape rotate the screen
9 years ago
chrox
5d79158602
fix cannot save document if exit directly after highlighting in PDF
9 years ago
chrox
f22a53affd
screen orientation won't change when going into filemanager
...
and filemanager remembers screen orientation at exit
This should fix #1338 .
9 years ago
chrox
ca6b3d7e33
fix #1373 by checking the pos0 and pos1 of selected text
9 years ago
chrox
02d61115dc
fix some part of the screen not refreshed when togglering nightmode
9 years ago
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 .
9 years ago
chrox
720ab191ab
fix crash when opening TOC window in scroll mode of EPUB
9 years ago
chrox
10db20f289
don't add duplicated bookmark and can delete bookmark
...
This should fix #1397 .
9 years ago
chrox
1e8f07629f
don't pop-up TOC window
9 years ago
chrox
c6f6699644
fix empty menu widget won't trigger screen refresh
...
This should fix #1398 .
9 years ago
chrox
07586cea71
strip punctuations around word before searching
...
This should fix #1337 .
9 years ago
chrox
3f691bab93
add stable OTA channel
...
This should fix #1353 .
9 years ago
chrox
db064fc009
add toggle wifi status on PocketBook
9 years ago
chrox
d0b450efde
refresh battery capacity when going out of suspend
...
This should fix #1383 .
9 years ago
NiLuJe
06bf4a2199
Fix input on KT2 devices (re #1403 )
9 years ago
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.
9 years ago
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.
9 years ago
chrox
9d13d4189b
fix no eink optimization on all devices
9 years ago
chrox
375070867b
fix crash when checking ota on some devices
9 years ago
chrox
c11a2bbf1e
fix ota update for PocketBook
9 years ago
chrox
29c15518b0
fix wrong PgBack/PgFwd key binding
9 years ago
chrox
49e672d599
totally disable rotation gesture to change screen orientation
9 years ago
chrox
291f088d94
update koreader-base for multi-touch support on PocketBook
9 years ago
chrox
d94d7d3aa7
fix PgFwd/PgBack cannot turn page in PDF scroll mode
9 years ago
chrox
6a06cfaea5
refactor out flush settings when device goes into screensaver
9 years ago
chrox
a5b90588ae
add powerd for PocketBook device
9 years ago
chrox
96e9bb0701
partial refresh screen when koreader goes to forground
9 years ago
chrox
5c4651a3d9
auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook
10 years ago
chrox
7ac36a460c
handle keyboard events in pocketbook
10 years ago
chrox
6894c11640
fix typo
10 years ago
chrox
1cba495fe0
add PocketBook port of Koreader
10 years ago
Hans-Werner Hilse
d016858d75
only device event0 and event1 do exist, remove others.
10 years ago
Hans-Werner Hilse
c28d973941
fix: load input driver before configuring it
10 years ago