Commit Graph

2391 Commits (72ae80870ca406728ee155d43de93a948e0fdd31)

Author SHA1 Message Date
Qingping Hou 77b07255f0 chore: make input debug less verbose 7 years ago
Frans de Jonge d1785e1863 Reorganize menus
* Replace "home" (exit) menu with hamburger
* Discard pokeball and put items in hamburger
* Introduce search menu in reader

Cf. #2562
7 years ago
Hzj_jie 7fb2dc8d5c Update kobolight plugin to support kindle (#2587) 7 years ago
Qingping Hou 4fce69d18d bookstatus(minor): read setting only once 7 years ago
Frans de Jonge 0566df5f28 FileSearcher: also show directory results
Fixes #2177
7 years ago
Frans de Jonge 47a40eb414 util: add some LDoc descriptions 7 years ago
Frans de Jonge da3ff5e336 History: add 'autoremove_deleted_items_from_history' setting 7 years ago
Frans de Jonge 827e77afbe FileManagerHistory: fix loop error 7 years ago
Frans de Jonge 2c80ff7d7b FileManagerHistory: remove harmful deletion code and turn it into a feature
Fixes the problem introduced in 51327911f2 and turns it into a feature that should fix #2477
7 years ago
robert00s 8b95b8fd96 Fix #2176 - Wrong book's review and rating stars are shown 7 years ago
Frans de Jonge 1ed0ce0c21 FileManager: fix up arrow issue 7 years ago
Frans de Jonge 6458c8e9eb File Manager: rename to "KOReader File Browser" and add up arrow to ".."
This should make it clearer to new users what's going on. Fixes #2529.
7 years ago
Bastien Dejean ee54e127b1 FileManager: replace arrows by ellipsis to indicate cut-off long filenames 7 years ago
Bastien Dejean f0b63003e9 Use a smaller font to display the filename
More information regarding the file!
7 years ago
Frans de Jonge fed22b509d FileManager: rename hasSidecarDir to hasSidecarFile
Fixes #2550

Cf. b502047635
7 years ago
Zijie He 4f1cabcdbc Improve several outputs 7 years ago
Hzj_jie 726b15ad01 More sorting orders in file manager (#2535) 7 years ago
Zijie He faaca028e7 Remove empty sidecar folder 7 years ago
Zijie He 83d8606270 Crash on directory 7 years ago
Zijie He b502047635 Removing metadata file instead of purging .sdr folder 7 years ago
Frans de Jonge bec5f46245 Merge pull request #2524 from Hzj-jie/master2
Add characters in menu items to indicate sub menus
7 years ago
Hzj_jie 65e2d6630f Use small triangle 7 years ago
Frans de Jonge 3ea18208d7 Removed deprecated Confirmbox option cancel_on_tap_outside = true 7 years ago
Frans de Jonge 67a6eb271d Language: Would you like to read this Wikipedia %1 article?
Discussion on https://www.transifex.com/houqp/koreader/translate/#nb_NO/koreader/106518021

@Frenzie Second option is I came to too. Very consistent and nice.
by kingu, 6 minutes ago

Let's see, I'm not entirely happy with the phrase. Here are a couple of brainstorms.

Would you like to read the full version of this Wikipedia EN article?

Would you like to read this Wikipedia EN article?
by Frenzie, an hour ago

@kingu It's the language code, such as EN, FR, etc.

http://imgur.com/u1q6tT4l.png
by Frenzie, an hour ago

ISSUE
What is %1 here?
by kingu, 3 days ago
7 years ago
Hzj_jie 18117584c0 Resolve review comments 7 years ago
poire-z 56d1a26a8b ImageViewer: allow zoom with vertical swipe on sides
For devices without multi touch support, where pinch & spreak don't work.
7 years ago
Frans de Jonge 6257bae77f Language: mostly Wikipedia-related changes 7 years ago
Hzj_jie c33d1aa43b Use 25b9 instead of > 7 years ago
Hzj_jie fa848719ae > 7 years ago
Hzj_jie 98a86ba62f prepose plus signal 7 years ago
Hzj_jie c90a484d01 Add a + for menu items with sub menu 7 years ago
Hzj_jie f91ad679d9 swithItemTable -> switchItemTable 7 years ago
poire-z 7166efd777 ImageViewer: added zoom & pan via gestures
ImageWidget: removed 'autostretch' setting (replaced by scale_factor=0)
and renamed 'autoscale' setting to 'scale_for_dpi'.
7 years ago
Qingping Hou f402ee5f6f chore: remove all echo shell out in kobo resume routine 7 years ago
Qingping Hou 9b7aba3fba fix: override readerhighlight hold in readerfooter
Also fix touch zone dependency graph generation code.

ReaderHighlight has now been migrated to use touch zone

Inputcontainer's touch event handling logic changed to only stop
propagation when handler returns `true`. Previously, it stops
propagation when a handler is found. This is needed to support
both readerhighlight_tap and tap_forward touch zones.
7 years ago
robert00s 0bbb4bbc16 Fix: missing letters from portuguese language 7 years ago
Frans de Jonge 399190c520 Merge pull request #2508 from NickSavage/master
OPDS: Fixed Wifi prompt and enabled removing default catalogs.
7 years ago
poire-z 2ded2bce5e Wikipedia: save full page as epub (html, with optional images)
Also for the current text-only wikipedia full page: replace
the ==s in section titles with some unicode symbols for a better
visual feeling of hierarchy. These same symbols are also used
in the .epub.
Both can be disabled by adding ["wikipedia_prettify"] = false
to settings.reader.lua

readerhighlight: close ButtonTable (like other buttons do) when looking
up wikipedia, otherwise if we save as epub, and swtich to new document,
this ButtonTable will never be closed and stays in UI.
7 years ago
Nick Savage 85585a0973 Fixed bug where only calibre OPDS catalogs would prompt to enable Wifi.
Tested on Kindle PW3. The error message my device threw was different from what was coded in OPDSBrowser.lua in getCatalog(). Perhaps we should test other devices and see if there are other error messages thrown as well.
7 years ago
Nick Savage ebb290f0ba OPDSCatalog: Normalize default and user-added catalogs
This patch makes the OPDS Browser treat the default catalogs (Project Gutenberg, Feedbooks, etc.) the same as a user-added catalog. This makes them removable and editable if the user so chooses.
7 years ago
Frans de Jonge 81bc115cee ImageViewer: "best fit" to "scale" 7 years ago
poire-z 8f6a38db69 Fix sidecar file name
Get back "metadata." part forgotten while refactoring.
7 years ago
Hzj_jie 529d1b3d33 evernote: ReadHistory integration and text file output (#2498) 7 years ago
poire-z 97d34c5bb0 Better handling of tap on invalid/external links
Tap on external urls or invalid links would jump to
document's 1st page. We check first the validity of the
link, and deal with wikipedia links or just show the external
url.
ConfirmBox: allow dismissing/cancelling by taping outside,
to keep UX consistent.
7 years ago
poire-z ee06171c83 New ImageViewer widget + hold on image show it fullscreen
Simple image viewer with Best Fit/Original size and Rotate
(for landscape images) buttons.
readerhighlight: check if hold is on an image to show it
fullscrren
7 years ago
poire-z 0577fde59e Better tracking, management and freeing of BlitBuffers
This should fix the most obvious memory leaks (noticable when
using images as screensaver).
ImageWidget: added a few more options needed by ImageViewer,
and removed 'overflow' option as logic was wrong.
7 years ago
poire-z d648d2b66c Added getImageFromPosition() and isXPointerInDocument()
Bump base (depends on koreader-base PR #470)
7 years ago
Zijie He 8549d98805 Add checked tag for keepalive plugin 7 years ago
robert00s fe5379814d Ask for connection when clicking on Wikipedia 7 years ago
poire-z 130f7b0773 wikipedia: fix languages rotation and query
Fix innacurate language query and rotation when back from nested lookups.
More informative lookup message (langage used, search or full page)
Allow for screen refresh with diagonal swipe (like in readerpaging).
7 years ago
poire-z ebe0c08bfb dict/wiki: definitions' text justification
This can be disabled by adding ["dict_justify"] = false to settings.reader.lua
7 years ago
poire-z 5012fb79d3 Set hyphenation dict fallback with Hold
For documents without language defined in metadata (.txt, .html),
crengine would fallback to hardcoded English_US_hyphen_(Alan).pdb.
This allows for setting a different one.
7 years ago
robert00s 7ff1731aab Fix #2326 7 years ago
Robert 7bfbc9f06a Sanitize filename for vfat, fix #2433 (#2464) 7 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 8 years ago
Hzj_jie 5bda44473d Add dictionary to filemanager 8 years ago
Qingping Hou 581039aed5 opds(fix): unescape name and value 8 years ago
Qingping Hou d16688c43c feat: show full menu on menu key for touch devices 8 years ago
Qingping Hou cb195e9ce8 feat: support disable show file name in bold
also rename show_opened_doc_in_bold setting to show_file_in_bold
8 years ago
Robert 31218fa79e Skim to widget (New Go to page/location widget ) (#2460) 8 years ago
Hzj_jie ce6bc3df8d Implement keepalive plugin (#2456) 8 years ago
Qingping Hou ead5dfd9b4 readerview(feat): add registerViewModule method 8 years ago
Qingping Hou 0f931517ba doc: fix document build 8 years ago
Qingping Hou dc2746f1d7 chore: various minor cleanups 8 years ago
Qingping Hou 36763a1ad7 feat: new setting to show opened book name in bold 8 years ago
Robert 957e8ce768 Add open last book menu item in file manager (#2450) 8 years ago
Frans de Jonge 4f64ac4b69 Minor language fixes
Unsubscribe from was suggested by Allan Nordhøy (kingu) on Transifex.
8 years ago
robert00s ae9261b685 Fix #2440 8 years ago
Robert 187598deb2 Cloud storage - dropbox and ftp integration (#2424) 8 years ago
Hzj_jie c662ca4cc8 Load plugins also in FileManager (#2426)
added is_doc_only plugin attribute
8 years ago
Qingping Hou d2743b6f15 fix: migrate readermenu to use touch zone 8 years ago
Qingping Hou 33367d3a6c inputcontainer(fix): update gesture range on screen resize properly 8 years ago
Qingping Hou 070be5bfb1 fix: migrate readerrolling to touch zones 8 years ago
poire-z 5b2aee3c81 textboxwidget: added some sanity checks
fix #2434 and avoid strange things when holding from/to outside dimension.
Also fix crash when tap (move cursor) in an inputtext with no text at all.
8 years ago
poire-z 359c1ae265 textboxwidget: enhanced CJK text wrapping
(changes only in util.isSplitable(), but used by textboxwidget)
Implemented line breaking rules from :
https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages
8 years ago
Frans de Jonge 0fb29e9cd3 Kobo: fix Kobo Aura second edition highlighting 8 years ago
poire-z a8dd8c6f30 textboxwidget: even better text wrapping
util.isSplitable() accepts now also the previous char to help
decide if a space can be used to split a line.
TextBoxWidget:_splitCharWidthList() : simplified logic
8 years ago
poire-z fe56ecd301 Clear readers' cache: invalidate in-memory references
This avoids crash on exit after clearing caches.
8 years ago
retrue eae730d140 Some uppercase fixes (#2421) 8 years ago
Frans de Jonge ba7377065e Doc: miscellaneous improvements. 8 years ago
Frans de Jonge 69f70ac16e Kobo: initial support for Kobo Aura second edition (Kobo star)
This fixes #2418.
8 years ago
Frans de Jonge 7f318c0762 Merge pull request #2416 from koreader/houqp-master
doc: event propagation for widgets
8 years ago
poire-z 1708fd5e1c Dictionary and wikipedia enhancements (#2393)
Stardict:
- remove duplicate results
- better cleaning of selection
- append results from a 2nd query of a 2nd set of dictionaries
  in data/dict_ext/

Wikipedia:
- use the search API for better results
- allow viewing the full page content of a result in a bigger window
- allow queries for multiple languages
- available languages can be set in settings.reader.lua :
    ["wikipedia_languages"] = {"en", "fr", "it"}
- "Wikipedia lookup" added to Tools menu

For both:
- allow selection of multiple words for a new lookup (so one can
  actually browse wikipedia)
- allow continuous reading with Tap
- display "current result / total number of results"

Details in #2393
8 years ago
poire-z 5040bfe4c5 textboxwidget and scrolltextwidget enhancements (#2393)
util: made isSplitable() accept an optional next_char
for wiser decision

textboxwidget: speed up rendering, enhanced text wrapping,
allow selection of multiple words with Hold.

scrolltextwidget: allow scrolling with Tap.

Details in #2393
8 years ago
Qingping Hou 09564d4b4d doc: event propagation for widgets 8 years ago
Qingping Hou d1f9cf932b kobo(minor): add debug log for suspend action 8 years ago
Qingping Hou 11f55d2aff doc: Event and WidgetContainer 8 years ago
Qingping Hou 329fd55302 filemanager: show new books in bold 8 years ago
Qingping Hou a6c506dc10 kobolight(refactor): move into plugin & only enable for kobo 8 years ago
Qingping Hou 0c49b915de refactor: add touch zone subsystem to inputcontainer
Touch zone decouples screen size from gesture event registration.

The win here is each individual widget does not need to update
gesture range on screen rotate/resize anymore.

Another advantage is we now have a centralized ordered array to handle
all registered touch event listeners, makes it much easier to resolve
gesture range conflicts between multiple widgets.

This patch also includes the following changes:

* migrate readerpaging to use readerui's touch zone
* migrate readerfooter to use readerui's touch zone
* move inverse read direction setting to touch menu's setting tab
* moved kobolight widget from readerview into readerui
* various dead code cleanups and comments
8 years ago
Qingping Hou 8799b4b6b1 doc: geometry module 8 years ago
Robert 93e075feb6 Adding the buttondialogtitle widget and show long filename in filemanager (#2414) 8 years ago
robert00s e0ad600bc7 Fix: prevent step_min lower than fl_min 8 years ago
Robert 7e1c0c15c6 Refresh filemanager after exit from OPDS browser (#2405) 8 years ago
poire-z ca59efc5b6 FileManager Menu: added "Developer options" (#2391)
and "Clear readers' caches" subitem.
8 years ago
poire-z 949e5ba54d FileManager: added button to purge sidecar directory (#2391)
Also move its sidecar directory when moving a file.
8 years ago
poire-z 0aa19d72a0 FileManager: show files with sidecar dir in bold (#2391)
docsettings : added hasSidecarDir() and made getSidecarDir() more robust
widget/menu : allow items to specify themselves to be displayed in bold
8 years ago
poire-z efd6c7f556 Added "Swipe to follow first link" option (#2392)
Allow swipe west to jump to current page's first link (easier than clicking on small links)
Also fixed existing function names to comply with style guide.
8 years ago
poire-z 283429fe9b Network Info: prettier and additional infos (#2394)
Left alignment of existing infos.
Added SSID and default gateway ping result.
8 years ago
poire-z e1c3448d0e ImageWidget optimisations (#2394)
Avoid multiple renderings.
Don't cache big images (ie: screensaver images)
8 years ago
poire-z 2c01f3add9 Fix: dog ears disappearance when switching fonts (#2394)
or switching orientation, or some other page layout setting.
Reverted commit a049edd, which should be done better (see #2395).
8 years ago
poire-z adbe76c156 Reset refresh rate counter on explicit full refreshs (#2394) 8 years ago
poire-z 0145ab0410 Fix: crash if wpa_supplicant has already connected (#2394) 8 years ago
poire-z bbba2799a5 Fix: unexpendable TOC in some cases (#2394)
When on a page in a 2nd level section, after switching orientation,
TOC was stuck with the section we're in unexpandable.
8 years ago
Robert fdbab3e11d frontlightwidget(fix): prog_button does not honor powerd.fl_min (#2396) 8 years ago
Robert 64a79f6892 Frontlight progress bar (#2385) 8 years ago
Sergey Organov 3800a3077a DictQuickLookup:update(): strip all leading empty lines/spaces
This gets rid of sometimes huge spacing between a word and its
description taken from dictionary, and thus need for scrolling just to
read fisrs few lines of description.
8 years ago
Sergey Organov 48ff941764 Custom DPI: increase upper bound from 330 to 600
It's useful on 300dpi devices to get this value above 330 to enlarge
entire UI.
8 years ago
poire-z 4ec7efb2d0 Fix selection in dictionary window (#2126)
Fix #2126 (hold on a word on the 2nd page of a definition was triggering
lookup of the word at the same place in 1st page).
8 years ago
Bastien Dejean c71b176e0a Kobo Aura ONE: no viewport adjustments needed
Test image:
https://cloud.githubusercontent.com/assets/159419/20651651/5e344d1c-b4e9-11e6-8450-6fb165c792db.png

Fixes #2372.
8 years ago
Qingping Hou bd43e59fe7 fix: disable network info menu when device is not connected 8 years ago
Robert 171d40d287 feat: Would you like to read the downloaded book for OPDS (#2370) 8 years ago
Hzj_jie 9efc723388 PR #2356 breaks CJK character splitting 8 years ago
Huang Xin b16a33a232 Merge pull request #2375 from koreader/houqp-master
readerpaging(fix): handle edge cases where paging pan will crash the reader
8 years ago
Dimitrios Semitsoglou-Tsiapos b87ce7fe12 footer: update when toggling markers 8 years ago
Qingping Hou 8e76ed4f0b fix: flush reader setting on change from filemanagermenu 8 years ago
Qingping Hou cd24eb82d7 readerpaging(fix): handle edge cases where paging pan will crash the reader 8 years ago
retrue 529b365b11 Arranges alphabetically list of languages and
uses caps for first letter of language name.
I have left English in first place because it is the default language, but it could be placed between Deutsch and Español.
8 years ago
Bastien Dejean cffb21f7be Add new setting: auto_book_status
Fixes #2363.
8 years ago
robert00s 2cfce6f369 OPDS - fix opds catalog for Wolne Lektury 8 years ago
Bastien Dejean b959c4de1c Allow local overrides of use_lastfile_as_screensaver 8 years ago
Frans de Jonge 6b4f48f29f Merge pull request #2341 from koreader/houqp-master
minor: add doc_home_display_name setting
8 years ago
Qingping Hou b7cdf103e3 chore: fix luacheck error & add comment to release-ip.sh 8 years ago
robert00s fc5ba9b862 Fix hyphenation words with unicode character in texboxwidget (#2356) 8 years ago
Qingping Hou 17b453cd02 doc: add more doc for imagewidget 8 years ago
Qingping Hou 88ab21c62c minor: change setting names for home_dir_name 8 years ago
Bastien Dejean 64bc5cd63c Make the powered off state customizable
This changes the behavior of the powered off transition phase for the
Kobo devices: instead of displaying a confirmation dialog, a screensaver
is used after a 2 seconds press delay.

Users can specify separate directories/files/messages for the powered
off and sleeping states through the `path` and `message` attributes of
the `{poweroff,suspend}_screensaver` settings.

Fixes #2327 and closes #2306.
8 years ago
Bastien Dejean fe738ef101 Don't try to return an element from an empty set 8 years ago
Bastien Dejean b3d58fba00 Don't try to set the value of fm_screen_mode
I'm not sure what the original intention was, but in practice, the user
experience regarding the way this setting is saved is horrible: it seems
to change randomly and once the orientation is changed from portrait to
landscape, the only way to fix it is to edit `settings.reader.lua`.
8 years ago
Bastien Dejean 58b6c94a8d Generalize and consolidate tildify
- Don't do any substitution unless `home_dir_name` exists.

- Don't rely on `gsub` because it might interpret some characters in
  `home_dir` as magical (and might also replace a match not starting at
  the beginning of `path`).
8 years ago
Bastien Dejean 283a113aaa Handle corner case in tildify 8 years ago
Qingping Hou b2e1d9dc42 dictquicklookup(chore): simplify logic that disables wikipedia button 8 years ago
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.
8 years ago
Bastien Dejean 83f18d6d77 Properly spell the title of the file manager
Us humans can handle spaces in titles.
8 years ago
Frans de Jonge b7671e9ae5 Merge pull request #2324 from koreader/houqp-master
update new OTA server & fix plugin check errors
8 years ago
robert00s 2238fdc882 Fix #2328 8 years ago
robert00s 09f2db3729 Fix long filename text in history textbox (#2322)
Fix long filename text in history textbox
8 years ago
Qingping Hou 8ff05707d2 ota: support legacy kindle devices 8 years ago
Qingping Hou d6aa3b9c8c ota: add new default server 8 years ago
Qingping Hou efae2ed16f network(fix): automaticallly obtain IP if network is already authenticated 8 years ago
robert00s 8a9811804d Add Polish keyboard (#2319)
Add Polish keyboard


* Optimization
8 years ago
Bastien Dejean 41764e23e8 Make page gap configurable 8 years ago
Qingping Hou 558754e9b5 footer(refactor): various bug fixes and optimizations 8 years ago
Qingping Hou 816d0a551a kobo: handle charging/uncharging event 8 years ago
Qingping Hou 4540d51a6e settings: add entry to toggle debug mode 8 years ago
Qingping Hou 48c8470209 wpa_supplicant(fix): restore password bassed on SSID 8 years ago
robert00s 886e2d6cb1 display document metadata (#2307)
display document metadata in file manager and history menu
8 years ago
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
8 years ago
Zijie He f36f8cb464 KOSync plugin should respect onNetworkConnected and onFlushSettings events 8 years ago
ycrichard c3aa5fa0d9 allow disable highlight by default
minor code change

typo
8 years ago