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

656 Commits

Author SHA1 Message Date
Bastien Dejean
283a113aaa Handle corner case in tildify 2016-11-13 15:09:59 -08:00
Bastien Dejean
2f5935411a Replace the home dir by ~ in the FM's current path
This mirrors the well known shell convention and release the user from
a needlessly verbose description of the current path.
2016-11-12 15:26:14 -08:00
Bastien Dejean
83f18d6d77 Properly spell the title of the file manager
Us humans can handle spaces in titles.
2016-11-12 15:25:11 -08:00
robert00s
09f2db3729 Fix long filename text in history textbox (#2322)
Fix long filename text in history textbox
2016-11-08 10:05:34 -08:00
Bastien Dejean
41764e23e8 Make page gap configurable 2016-11-05 13:16:33 -07:00
Qingping Hou
558754e9b5 footer(refactor): various bug fixes and optimizations 2016-11-05 00:06:26 -07:00
robert00s
886e2d6cb1 display document metadata (#2307)
display document metadata in file manager and history menu
2016-10-30 15:24:50 -07:00
robert00s
683b0381bf Patch for wikipedia language (#2304)
* smarter language detection for wikipedia

new order:
* check language for document
* check global language setting
* check language for lookup phrase

Fix: https://github.com/koreader/koreader/issues/1844
2016-10-26 10:20:12 -07:00
ycrichard
c3aa5fa0d9 allow disable highlight by default
minor code change

typo
2016-10-23 15:31:01 -07:00
ycrichard
f3149b0b2c add frontlight information in the footer including context menu 2016-10-16 13:35:07 -07:00
Qingping Hou
31d22dfc17 fix(kobofrontligh): initialize dimen with nil value 2016-10-14 19:51:24 -07:00
Qingping Hou
67ae10742a defaults: try parse int from user input 2016-10-14 19:50:49 -07:00
ycrichard
17e9a8e45b add kobo frontlight gesture (#2284)
* add kobo frontlight gesture
2016-10-14 11:11:35 -07:00
Qingping Hou
abbb72b6d3 readerrolling(fix): do not emit PageUpdate event until document is ready 2016-10-08 15:53:58 -07:00
Qingping Hou
404702914e minor: adjust wording for fallback font setting based on Frenzie's suggestion 2016-10-08 15:53:02 -07:00
Qingping Hou
d6c48b06f9 chore: fix all luacheck issues 2016-09-22 00:38:10 -07:00
Qingping Hou
252100891f fix(defaults): override defaults with persistent defaults for advanced setting menu 2016-09-22 00:38:03 -07:00
Qingping Hou
ca21ab4be5 fix(defaults): type casting for user input 2016-09-21 23:57:45 -07:00
Qingping Hou
c619de324e chore: more luacheck fixes 2016-09-19 01:10:53 -07:00
chrox
166aa52a24 move painting and drawing debug log to verbose 2016-08-12 17:47:35 +08:00
chrox
9ab005a1d3 fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework.

Now `make testfront` won't retry on failure and testing files are
ordered in each run so that it's possible to reproduce testing failure.

And this patch also fix flush settings not working before suspend issue:
at some point the `FlushSettings` event is sent to `UIManager` instead
of `ReaderUI`, but `UIManager` only delegated events to active widgets
and `ReaderUI` is actually not an active widgets thus will miss the event.

This patch also add a verbose debug mode with "-v" as a switch to turn
on this mode. With verbose mode on, event handling will be logged.
2016-08-12 17:05:07 +08:00
chrox
2fa8ebb7c4 don't consume swipe gesture event in readerlink
if location stack is empty
2016-08-12 09:33:31 +08:00
Qingping Hou
ec6da5318c screensaver(fix): add back menu toggle to support screensaver folder 2016-07-31 18:26:26 -07:00
Hzj_jie
3df363165a Fix crash in readertoc.lua
This issue has been mentioned in https://github.com/koreader/koreader/issues/2186.
2016-07-29 22:47:44 -07:00
Qingping Hou
1c5543358c readerfooter(fix): avoid setting mini footer to invisible when full progress bar is on
Our previous assumption is user will only choose between full or min
bar. The does not hold anymore as many more info has been added to the
mini bar and sometimes user might want to have both of them on. This
patch makes the reader behavior consistent when both bars are set to be
on for a document.
2016-07-23 18:00:37 -07:00
Hzj_jie
7493fc89f6 Add removed item name in "Remove this item from history" and fix wrong items deleted issue. (#2164)
* Add removed item name in "Remove this item from history".

* Fix #2162, wrong history items deleted.
2016-07-18 22:37:57 -07:00
Qingping Hou
f30e487959 readerpaging(fix): set the corrent page number on GoBackLink event 2016-07-18 01:33:35 -07:00
Qingping Hou
0d9fc17d7c chore: rename SetDefaults:SaveSettings 2016-07-16 22:47:19 -07:00
chrox
1d887f4fe1 book reading statistics for djvu documents 2016-07-15 23:00:46 +08:00
Hzj_jie
d4c31d683f Add a setting to disable save document (#2138)
* Add a setting to disable save document
* Add UI elements to control save-document settings
2016-07-14 10:38:00 -07:00
Huang Xin
014abf21bc Merge pull request #2153 from houqp/houqp-master
reader(fix): fix crash when DAUTO_SAVE_PAGING_COUNT is set to 0
2016-07-14 08:08:56 +08:00
Qingping Hou
4cdafedcc8 Merge pull request #2147 from koreader/houqp-master
move setDirty call from TextWidget:setText to FileManager
2016-07-13 10:52:32 -07:00
Qingping Hou
726259f5a1 reader(fix): fix crash when DAUTO_SAVE_PAGING_COUNT is set to 0
* setup autoSaveSettings callback on ReaderReady event
* delay calling autoSaveSettings with UIManager:nextTick
2016-07-12 23:54:01 -07:00
Huang Xin
b8f23d162d filemanager(fix): refresh banner in filemanager insteand of TextWidget 2016-07-12 21:34:17 -07:00
Qingping Hou
304b0f218e chore: fix some of the luacheck errors 2016-07-12 20:49:09 -07:00
Qingping Hou
a10a4f65a5 minor: use predefined color instead of gray method 2016-07-10 23:25:32 -07:00
NiLuJe
207af74527 Support the White Kindle PW3 & the Kindle Oasis.
Also attempts to support the new Kindle Basic, pending confirmation.
2016-07-09 03:16:08 +02:00
Hzj_jie
400e63a463 Resolve review comments 2016-07-04 23:14:53 -07:00
Hzj_jie
493ff00609 Add path in file manager 2016-07-04 17:38:04 -07:00
chrox
1c5c7d3a7c fix #1682 by closing all dict windows when holding close icon 2016-06-29 00:35:00 +08:00
chrox
551857ce6e fix some luacheck warnings 2016-06-28 00:43:23 +08:00
chrox
03fda94562 fix #2110 by adding disable double tap option in screen options 2016-06-27 23:02:10 +08:00
Qingping Hou
fadad90447 uimanager(fix): handle stack change in close 2016-06-21 01:53:42 -07:00
Frans de Jonge
97925df40a Merge pull request #2086 from chrox/fix_2084
fix #2084 introduced by copy and paste in #2079
2016-06-16 18:46:48 +02:00
chrox
ad88192d85 fix #2054 by removing ticks max limitation 2016-06-17 00:23:03 +08:00
chrox
0ca82fb072 fix #2084 introduced by copy and paste in #2079 2016-06-17 00:05:25 +08:00
Qingping Hou
cf3c91d92e Merge pull request #2079 from Hzj-jie/master
ReaderZooming should remove the size of page footer when calculating zoom value
2016-06-15 00:28:32 -07:00
Qingping Hou
fe6aaca47d Merge pull request #2083 from chrox/fix_2060
fix #2060 by handling blank search pattern
2016-06-15 00:25:40 -07:00
chrox
5bbcae954e fix #2060 by handling blank search pattern 2016-06-15 02:34:46 +08:00
chrox
5983050d79 PDF free zoom mode revisit
this should implement feature request of zoom mode for multi-columns
page in #501
This PR depends on koreader/koreader-base#435

How to use?
1. Tap the top left corner of a PDF/Djvu page to get into the flipping
mode
2. Double-tap on text block will zoom in to that column
3. Double-tap on any area will zoom out to an overview of the page
4. repeat step 2 to focus to another page block

How does it work?
1. We first find the mask of text blocks in the page. (Pic 1)
2. Then we intersect page boxes with user tap to form a page block. (Pic 2)
3. Finally we zoom the page to the page block and center current view to
that block. (Pic 3)
2016-06-15 02:05:09 +08:00
Zijie He
ac6ccc0038 ReaderZooming should remove the size of page footer when calculating zoom value. 2016-06-13 14:37:40 -07:00
chihyang
a948ecb19a Add 'read from right to left' in readerrolling
- Fix problems in readerpaging.lua;
- Add the same feature in readerrolling.lua.
2016-06-10 21:17:42 +08:00
chihyang
c161bc2f79 Add a new feature 'read from right to left'
A new feature 'read from right to left' is added, which is more fit for
Traditional Chinese and Japanese books. Once the feature is enabled:
1. The gesture region of TapForward and area will be flipped
horizonally;
2. The action for swiping to west and to east will be exchanged.
2016-06-10 20:14:03 +08:00
Frans de Jonge
eb28513403 Fix 'screen server' typo (should be screensaver) 2016-06-07 14:08:20 +02:00
Qingping Hou
2e417cfbd8 filemanager(refactor): use purge method from docsettings 2016-06-03 22:06:02 -07:00
Qingping Hou
f71534e399 readerfooter(fix): only populate footer info after document is loaded 2016-06-03 01:31:46 -07:00
Huang Xin
f718b0669f Merge pull request #2045 from koreader/defaults
defaults(refactor): remove global hack in filemanagersetdefaults
2016-06-01 08:31:36 -05:00
Qingping Hou
ac03cd241f fm(fix): close filemanager before showReader
This removes filemanager from UI widget stack so it does not listen
to events sent to the reader. Before this patch, screenshot event will
be sent to filemanager.
2016-05-29 19:36:54 -07:00
Qingping Hou
9586b36eb6 defaults(fix): purge entry from persistent file 2016-05-26 00:44:42 -07:00
Qingping Hou
476e35708d inputdialog(feat): add is_enter_default attribute to buttons 2016-05-25 23:09:49 -07:00
Qingping Hou
60587e08c6 defaults(refactor): remove global hack in filemanagersetdefaults
also added screensaver folder setting dialog for kobo
2016-05-25 22:07:20 -07:00
Zijie He
882a815f6c Use default font if settings.reader.lua does not provide one. Provide a Toggle button if readerfooter gesture actions are disabled. 2016-05-22 22:32:57 -07:00
chrox
4c491b5ee2 rename 'Highlight' to 'Highlight options' in menu
This should fix #2023.
2016-05-14 12:20:01 +08:00
Zijie He
1aa0c4192a Multi-line toggle switch & add instruction to resolve sdcv build error. 2016-05-09 21:59:33 -07:00
Qingping Hou
2cf4e77ae5 readerui(chore): rename _running_instance 2016-05-02 22:42:19 -07:00
Qingping Hou
0f3eeb24c9 progressbar(fix): persist progressbar visibility 2016-04-28 01:25:18 -07:00
Qingping Hou
0166ff8add reader(fix): force draw info message before loading document
Since the doShowReader will run in nextTick, it will get picked up by
checkTask, which is in the beginning of next UI loop and blocks
UIManager from redrawing the screen for the info popup.
2016-04-23 21:17:38 -07:00
Frans de Jonge
89a4b49c8b Merge pull request #1987 from chrox/fix_landscape_opening_dialog
fix 'opening file' dialog not centered in landscape
2016-04-23 17:58:19 +02:00
chrox
6e723237ba fix 'opening file' dialog not centered in landscape
by setting the timeout to 0.0 seconds so that when the screen
is turned to landscape the dialog is already closed.
2016-04-23 23:09:34 +08:00
chrox
92184f0199 fix #1985 by always return to the parent dir of current doc in the FileManager 2016-04-23 22:57:19 +08:00
Qingping Hou
0226efc4cd readerfooter(minor): just incase self.pages is nil 2016-04-20 23:12:07 -07:00
Qingping Hou
572412b1f6 readerrolling(fix): detect end of book properly 2016-04-20 23:12:07 -07:00
Qingping Hou
f0cc8749b6 Merge pull request #1977 from Hzj-jie/migrate-history
Migrate history folder into sdr - A new history.lua file and ReadHistory component
2016-04-21 02:11:10 -04:00
Zijie He
667e8834ad Migrate history folder, FileManagerHistory uses own history.lua file and ReadHistory component 2016-04-20 22:44:44 -07:00
Qingping Hou
c22a3747d8 fix all the tests 2016-04-19 00:01:28 -07:00
Qingping Hou
a049eddcbc bookmark(fix): bookmark comparison for crengine 2016-04-18 23:51:06 -07:00
Frans de Jonge
5638819f25 Removed a bunch of "successfully", replaced an ellipsis, and some deviant spellings of KOReader. 2016-04-16 12:37:08 +02:00
Allan Nordhøy
bc16ed5035 Spelling of calibre and KOReader. Ellipsis. 2016-04-15 15:04:41 +02:00
Qingping Hou
eb37d9b8b6 kobo: fix screen probe for touch 2016-04-02 23:06:09 -07:00
Qingping Hou
dffc42d234 fix(readerrolling): crash with legacy last_per config in page mode 2016-03-28 21:23:33 -07:00
Qingping Hou
467199285f minor: rename Koreader to KOReader 2016-03-27 18:50:23 -07:00
Qingping Hou
26f5c8861b chore: minor style cleanup 2016-03-27 17:18:25 -07:00
Qingping Hou
11d5b5c0a1 fix(readerlink): restore reader view context on go back 2016-03-27 16:01:56 -07:00
Qingping Hou
2d5222ef33 readerview: add get/set methods for view context 2016-03-27 15:39:59 -07:00
Qingping Hou
f48d9bd6d9 fix(readerfooter): marker ticks initialization 2016-03-18 23:24:51 -07:00
Qingping Hou
2f78493e9e minor: write reader error to stderr 2016-03-17 21:55:46 -07:00
Qingping Hou
adc7ddccfc test: start every test suit with a clean reader setting 2016-03-12 15:52:04 -08:00
Qingping Hou
1683023f2c refactor(readerfooter): optimization and bug fixes
* avoid unnecessary initialization
* really fix the crash caused by autoRefreshTime....
* responsive progress bar layout
2016-03-12 01:00:52 -08:00
Qingping Hou
1ede9d03f1 fix: avoid initializing readerfooter multiple times
This will create multiple autoRefreshTime function and crash the reader on exit
2016-03-07 22:50:32 -08:00
Qingping Hou
34e0238b6f readermenu: move book status to info tab & minor cleanup 2016-03-06 22:45:41 -08:00
Qingping Hou
a99ab5a976 bookstatus: adjust layout and spacing for bookstatus page 2016-03-06 22:45:40 -08:00
Qingping Hou
5e8c5243c4 uimanager: fix crash on crash.... 2016-03-05 12:37:45 -08:00
Qingping Hou
8190093f83 kobo: don't create FrontLightState config if it didn't exist to begin with 2016-03-02 18:25:17 +01:00
Qingping Hou
9afae91b13 chore: rename frontlight related variables to keep style consistent
flIntensity -> fl_intensity
flState -> is_fl_on
fallback_FrontLightLevel -> fallback_fl_level
2016-03-02 18:25:17 +01:00
Qingping Hou
d4254e5266 fix: unschedule auto refresh footer task on document close 2016-02-29 23:13:52 -08:00
Qingping Hou
46ade8e795 readergoto: show current page in input hint 2016-02-26 00:20:09 -08:00
Qingping Hou
847837c5c1 readergoto: use the term page and location based on doc type 2016-02-26 00:20:09 -08:00
Qingping Hou
8c01835458 fix: only show reader status at the end of the book 2016-02-23 22:43:35 -08:00
zijiehe
8861365264 Add rename function for filemanager 2016-02-20 23:53:05 +08:00
Qingping Hou
4598284bbb fix(readerfontlight): crash in toggle 2016-02-17 09:53:29 -08:00
Qingping Hou
03e81cfa4d test: fix readerui instance reset test 2016-02-17 00:06:55 -08:00
Qingping Hou
72e7cd5cf4 style: move functions around 2016-02-16 23:26:08 -08:00
Qingping Hou
b63ddb8736 fix: kill in fly hinting event on document close 2016-02-16 23:26:08 -08:00
Qingping Hou
e422842256 minor: a lot of luacheck fixes 2016-02-15 23:10:07 -08:00
Qingping Hou
6a6469fa09 more luacheck fixes 2016-02-15 22:34:28 -08:00
Qingping Hou
f2c016161e fix: typo in readerstatus 2016-02-15 02:26:19 -08:00
Qingping Hou
59c17ef420 minor: more luacheck fixes 2016-02-15 01:33:48 -08:00
Qingping Hou
12c6bd7121 test: fix readerbookmark unit test 2016-02-14 23:55:32 -08:00
Qingping Hou
11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 2016-02-14 21:54:17 -08:00
Alex Pletnev
fbf98ed920 #1710 FR: Add support of statistics plugin for pdf 2016-02-12 16:55:02 +02:00
Qingping Hou
8e707da616 reader(status): append status item to the end of menu properly 2016-02-09 23:17:53 -08:00
Qingping Hou
9bd2d42834 build: enforce luacheck in travis build 2016-02-09 23:01:52 -08:00
Alex Pletnev
c0a2b3d4d9 #1730 Create complete book feature 2016-02-09 14:51:55 +02:00
Alex Pletnev
0f9bfbf147 #1730 Create complete book feature 2016-02-08 18:16:55 +02:00
Qingping Hou
2f0544b1b7 refactor(statistics): avoid magic 0.1 schedule with PostRender event 2016-02-07 14:03:53 -08:00
Qingping Hou
daf754d0f4 minor(readerhinting): access document directly instead of from ui 2016-02-07 13:51:19 -08:00
Qingping Hou
e2096ed8d9 doc: add documentation build infrastructure 2016-02-04 10:24:53 -08:00
chrox
41d3642467 add auto refresh time option for status bar, close #1769 2016-02-04 11:28:50 +08:00
Huang Xin
1dff6c7bc6 Merge pull request #1784 from koreader/houqp-master
minor FM fix
2016-02-02 23:07:43 +08:00
Qingping Hou
1609becd61 Merge pull request #1772 from dset0x/frontlight-sync
WIP Synchronise frontlight level with nickel config
2016-02-01 21:15:00 -08:00
Qingping Hou
fb0606aa9c style(FM): rename internal only method into function 2016-02-01 18:25:33 -08:00
Qingping Hou
34515484d1 fix: remove invalid setDirty in FileManager:restoreScreenMode 2016-02-01 18:25:33 -08:00
Qingping Hou
e19f73bdba style(util): rename tablelength to tableSize 2016-01-31 14:58:05 -08:00
Andrey Golovizin
bb1d4c60b3 Choose hyphenation dict by document language 2016-01-21 17:01:01 +01:00
Dimitrios Semitsoglou-Tsiapos
eb47c5a39f Synchronise frontlight level with nickel config
* Drops support for mocking the frontlight setting internally which may
  cause incorrect in-memory values.

* Adds new supported value for `KOBO_LIGHT_ON_START` (-2), which sets
  'Kobo eReader.conf' as the source to update `settings.reader.lua`'s
  brightness setting on startup, thus using the value from it
  indirectly.

* Adds the `KOBO_SYNC_BRIGHTNESS_WITH_NICKEL` configuration variable
  which updates 'Kobo eReader.conf' every time the brightness setting is
  changed within koreader.

* Fixes missing call to save brightness when modifying via two-finger
  swipe.

Closes #1523.
2016-01-11 23:30:22 +02:00
Qingping Hou
d1ca8bc494 fix(filemanager): delete document with settings 2016-01-09 12:12:10 -08:00
Qingping Hou
7caeae8701 fix: make screenshoter always active for filemanager 2016-01-08 23:30:02 -08:00
Qingping Hou
6fe9f7870b chore: more luacheck fixes 2016-01-03 01:18:54 -08:00
Qingping Hou
9c46cafc9c chore: fix luacheck warning 2016-01-03 00:56:55 -08:00
Qingping Hou
3b92bdc084 feat: support screenshot in filemanager 2016-01-03 00:47:44 -08:00
Qingping Hou
4759def09c chore: fix static-check errors 2016-01-02 23:45:23 -08:00
Qingping Hou
55234ef899 fix: read stats crashes pdf/djvu documents 2015-12-25 20:57:11 -08:00
Qingping Hou
90d1101ab7 minor: quit uimanager properly on coroutine error 2015-12-25 20:35:58 -08:00
Qingping Hou
41240464ca minor: fail loudly with stack trace when doShowReader crashed 2015-12-23 00:01:43 -08:00
Qingping Hou
ffd438de18 fix(ReaderFooter:getDataFromStatistics): return na if book has no stats history 2015-12-22 22:35:46 -08:00
Alex Pletnev
6bf9d75807 #1750 TB feature/statistics issue
Change time to read book formula to: ((total_read_time / read_pages) * (all_pages - current_page))
2015-12-21 08:49:03 +02:00
Alex Pletnev
ce4e32e01c #1723 Add time to read into the status bar
Add new statuses:
TB - book time to read
TC - chapter time to read

Fix backward compatible in statistics plugin
2015-11-27 17:13:01 +02:00
chrox
79e0f3fe65 fix hold-to-set font size not effective 2015-11-06 22:59:53 +08:00
chrox
8b85cbf157 add support for password protected zip/cbz documents 2015-10-06 21:18:31 +08:00
chrox
96dc338812 fix #1570 to disable swipe to go back by default 2015-10-04 00:20:41 +08:00
chrox
f2d38336c1 fix #1642 GFW block in China may also cause Network unavailable error 2015-10-04 00:16:31 +08:00
chrox
a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
2015-10-03 14:48:51 +08:00
Huang Xin
d393fbb180 Merge pull request #1628 from apletnev/#1581
Add Statistic plugin (#1581 Amount of hours spent on a book)
2015-09-16 19:55:26 +08:00
Alexander Pletnev
c45328f14e Add Statistic plugin (#1581 Amount of hours spent on a book)
Changes based on comments
2015-09-13 22:34:20 +03:00
chrox
5ec384efb5 fix #1593 cannot download from COPS OPDS server
and get rid of the ugly baseurl workaround for "Internet Archive",
actually the url building of all these catalogs is perfectly
handled with `url.absolute(base, relative)`.
2015-09-13 22:08:05 +08:00
Qingping Hou
63e88baf33 fix: stop self.dimen polution for inputcontainers
Without this fix, self.dimen is shared among all inputcontainers
intances, which breaks some of the UI rendering. All widget should
set/initialize their own self.dimen in self:init() method.
2015-09-13 01:10:09 -07:00
NiLuJe
ce5f66ccbc Prefix battery percentage w/ a + when charging.
Adresses comments on MR.
Add a comment explaining the magic behind CRe's charging icon when using
CRE's full (top) status bar.
2015-09-09 17:37:35 +02:00
Alexander Pletnev
52d821df00 Add Statistic plugin (#1581 Amount of hours spent on a book) 2015-09-07 20:06:17 +03:00
Qingping Hou
f09f6e0db8 Merge pull request #1621 from Frenzie/readerfont
Fix set default or fallback font string isn't picked up by lua_xgettext
2015-09-05 23:08:37 -07:00
Frans de Jonge
30a95c8fc3 Fix set default or fallback font string isn't picked up by lua_xgettext 2015-09-05 10:53:46 +02:00