Commit Graph

58 Commits (6ed58346a17529ed9360d60c7c12355c95546f7a)

Author SHA1 Message Date
Frans de Jonge 6ed58346a1
[i18n] Add translator notes (#5250)
Thanks to <https://github.com/koreader/koreader/pull/5237> we can now  extract the knowledge currently embedded in Transifex and put it directly in our source. This positively affects <https://github.com/koreader/koreader/issues/3754>.

Translation instructions and knowledge that comes out of localization-related questions should be preserved in the source, because Transifex is too ephemeral. For example, the links from <https://github.com/koreader/koreader/pull/2290> are no longer accessible. Even when they are, it's quite useful to have this information around while dealing with the code as well, and I also hope it'll be informative to contributors who seldom visit Transifex.

This commit also makes a few minor changes to obviate the need for comments where possible.
5 years ago
Frans de Jonge 96179670f8
[fix] Close calibre search when opening document (#4978)
Fixes https://github.com/koreader/koreader/issues/4225.
5 years ago
poire-z 85ac59ae00 CreDocument: fix document loading interferences (#4349)
When a main document is opened for displaying, some other
document openings (for getting metadata or cover image)
could affect the main document.
Split some code from CreDocument:init() into another new
method CreDocument:setupDefaultView(), that will only be
called by ReaderUI when opening the main document (and not
by these other openings like Book inforation, View cover...)

Also speed up some of these other openings (Search, Screensaver)
by using doc:loadDocument(false) to load only metadata and
avoid parsing the HTML.

Details in https://github.com/koreader/koreader/issues/4346#issuecomment-440036496
6 years ago
NiLuJe fea0d8dbaf
Another set of fixes (#4083)
* Make findcalibre actually useful

By setting SEARCH_LIBRARY_PATH when a Calibre tree is found, so that
book paths can properly be constructed.

Users should still very much set it themselves, but at least everything
works as intended when not, instead of mysteriously half-breaking later.

Drop the SetDefaults bits, it appeared to have been added to fix no-ops
detected by Luacheck, and it's actually non-functional, because
SetDefaults doesn't handle saving variables it did not itself assign.
So this was just causing the "Do you want to save new defaults" popup to
show up on exit, but it couldn't actually do anything useful (like, say,
save the new SEARCH_LIBRARY_PATH value).

fix #4082

* Better comments about the state of NaturalLight on the Clara, and how this might translate to the H2O²r2.

re #4015

* Make ScrolltextWidget refresh as "partial" only on actual Scroll events

Moving the cursor should stay "ui", or things gets annoying really fast
;).

re #4084

* Bump base to pickup ZMQ fixes (fix #4086)
6 years ago
onde2rock e502bf04d3 [feat, UX] Support the virtualKeyboard on non touch-device (#3796)
* [VirtualKeyboard] Add support for keynaviguation

Also rename the variable "layout" to "keyboard_layout" because conflict
with the layout from the focusmanager

* Make the goto dialog compatible with key naviguation

My solution is to change the order of the widget. The last one will the
virtualkeybard so it catch all the keybinding, and below it, make the
dialog "is_always_active = true" so it can receive touch event.

* Correctly show the virtual keyboard on dpad devices

* change the order to call the virtualKeyboard so it end up on top

* Handle the multi input dialog

* Support reopening the virtualKeyboard by the Press key

* add check focusmanager

* Fix https://github.com/koreader/koreader/issues/3797

* MultiInputDialog : Now work on non touch-device

* Set the virtualkeyboard to be a modal widget

* Fix the layout in multiinputwidget

* Fix for the various combination of
hasKeys,hasDpad,isTouchDevice

* [Focusmanager] Better handling of malformed layout
6 years ago
Frans de Jonge ced9e45d92
[fix] DocumentRegistry: don't create empty sdr and add hasProvider() (#3675)
As suggested by @poire-z https://github.com/koreader/koreader/pull/3653#issuecomment-364663156
6 years ago
Qingping Hou 23c2955500 chore: style cleanup for infomessage 7 years ago
Frans de Jonge e1aa57f27e Font: unify font styling 7 years ago
Hzj_jie f91ad679d9 swithItemTable -> switchItemTable 7 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 7 years ago
Qingping Hou d6c48b06f9 chore: fix all luacheck issues 8 years ago
Qingping Hou 304b0f218e chore: fix some of the luacheck errors 8 years ago
Qingping Hou 60587e08c6 defaults(refactor): remove global hack in filemanagersetdefaults
also added screensaver folder setting dialog for kobo
8 years ago
Qingping Hou 467199285f minor: rename Koreader to KOReader 8 years ago
Qingping Hou 186673587e chore: fix some of the luacheck errors 9 years ago
Frans de Jonge 73a6f71a0b Prevent spaces from being eaten by Transifex
Fixes #1276
10 years ago
Frans de Jonge 518c46033e Change "Search Books" to "Search books" for consistency with other search dialogs 10 years ago
Frans de Jonge 324d67a7a8 Various language-related fixes. 10 years ago
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.
10 years ago
WS64 f537125756 Bugfix 10 years ago
chrox 14e2bf3d69 refatoring: lazy loading of packages 10 years ago
WS64 d790f8aafe fix the nil tags data bug 10 years ago
Qingping Hou 7c6790796a fix: replace showReaderUI with ReaderUI:showReader 10 years ago
WS64 6c4869f8a8 Only use registered file types in search 10 years ago
chrox 0bc3eadcae refactoring: use Document API getCoverPageImage to get cover image 10 years ago
chrox 40bddf0735 emulate Power button with F2 on emulator 10 years ago
Huang Xin 451092905e Merge pull request #842 from WS64/master
Add a new multi line input dialog and change some search behaviour
10 years ago
chrox 6a0cc0afc6 remove too verbose information that is utterly untranslatable
I would suggest when creating a translate string you'd better keep
as much words together as you can other than trying to call the
`_` function on each word which may cause the final
translation in some languages unreadable.
For example, no matter how we translate the single words, the Chinese
translation of
```
_("No ") .. some_thing .. _("found ") .. _("matching") .. other_thing
```
will be nonsense.
Better way would be:
```
some_thing .. " is not found matching" .. other_thing
```
10 years ago
chrox 5890e4a0b1 use conventional util name and update koreader-base 10 years ago
WS64 3bb45f3a20 Changed the way to handle the own database file
This should make it easier to update the format of the file and also prevents errors when someone keeps this file but the deletes the original calibre file
10 years ago
WS64 6e86923659 remove global variable 10 years ago
chrox 4c68e091f9 refactoring: better logic and indentation 10 years ago
Michael Hall 8d9eb30886 Switch to local variables 10 years ago
Michael Hall 8e57adadb2 2nd change to make image dynamic in search 10 years ago
Michael Hall d84984521b Making image size in search info dynamic based on screen size 10 years ago
WS64 03c2782844 Don't show "0: text" in series view but just "text" 10 years ago
WS64 9661616edb Removed screensaver functions to new lua file 10 years ago
WS64 1a4bdd5895 Removed screensaver functions to new lua file 10 years ago
WS64 db7c97211c Add images to info screen 10 years ago
WS64 669d766a39 Code cosmetics 10 years ago
WS64 e19733edf4 Create a simplified database file out of the calibre file
Makes searches WAY 100 times faster.
From the second run on.
10 years ago
WS64 5201f59451 Go back to series/tags list after enter a series/tag
Todo: Go back to the actual page
10 years ago
WS64 05abbbdff9 Minor change for error "not found2 messages 10 years ago
WS64 24f3bdb7fa Add number of books to browse fundction 10 years ago
WS64 7fb545286b New function, browse series/tags, and sorting of all search results 10 years ago
WS64 f39ffc623a Reuse previous search 10 years ago
WS64 c7240539d5 add second library 10 years ago
chrox b7c7287bab remove more global variables 10 years ago
WS64 09334dd7a6 Changed size and added some "close"s 10 years ago
WS64 19c7c14809 Search Enhancements
- Paths now can have unicode characters
- Long tap on search result shows book infos
10 years ago