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

60 Commits

Author SHA1 Message Date
Frans de Jonge
e3fa9bd4b8
[fix] Various minor string issues (#5719)
Fixes <https://github.com/koreader/koreader/issues/5712>.
2020-01-01 12:41:37 +01:00
NiLuJe
d8e0b1759b
Other minor frontend.util cleanups (#5629)
* Resync fixUtf8 w/ upstream
* Fix lastIndexOf desc
* Drop unichar usage, it's a crappier unicodeCodepointToUtf8 ;).
2019-11-24 00:27:27 +01:00
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.
2019-08-24 09:25:38 +02:00
Frans de Jonge
96179670f8
[fix] Close calibre search when opening document (#4978)
Fixes https://github.com/koreader/koreader/issues/4225.
2019-04-28 20:10:41 +02:00
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
2018-11-20 21:07:59 +01:00
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)
2018-07-21 21:51:25 +02:00
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
2018-03-30 12:46:36 +02:00
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
2018-02-10 18:36:18 +01:00
Qingping Hou
23c2955500 chore: style cleanup for infomessage 2017-05-08 09:38:48 +02:00
Frans de Jonge
e1aa57f27e Font: unify font styling 2017-04-29 03:01:38 -07:00
Hzj_jie
f91ad679d9 swithItemTable -> switchItemTable 2017-02-01 06:26:06 -08:00
Qingping Hou
f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 2017-01-02 19:52:09 -08:00
Qingping Hou
d6c48b06f9 chore: fix all luacheck issues 2016-09-22 00:38:10 -07:00
Qingping Hou
304b0f218e chore: fix some of the luacheck errors 2016-07-12 20:49:09 -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
Qingping Hou
467199285f minor: rename Koreader to KOReader 2016-03-27 18:50:23 -07:00
Qingping Hou
186673587e chore: fix some of the luacheck errors 2015-04-26 20:57:45 -04:00
Frans de Jonge
73a6f71a0b Prevent spaces from being eaten by Transifex
Fixes #1276
2014-11-28 22:38:54 +01:00
Frans de Jonge
518c46033e Change "Search Books" to "Search books" for consistency with other search dialogs 2014-11-16 13:09:03 +01:00
Frans de Jonge
324d67a7a8 Various language-related fixes. 2014-11-14 20:34:55 +01:00
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.
2014-11-02 21:19:04 +01:00
WS64
f537125756 Bugfix 2014-10-13 15:40:48 +02:00
chrox
14e2bf3d69 refatoring: lazy loading of packages 2014-10-03 16:13:34 +08:00
WS64
d790f8aafe fix the nil tags data bug 2014-09-30 18:28:36 +02:00
Qingping Hou
7c6790796a fix: replace showReaderUI with ReaderUI:showReader 2014-09-07 18:43:32 -04:00
WS64
6c4869f8a8 Only use registered file types in search 2014-08-27 09:17:54 +02:00
chrox
0bc3eadcae refactoring: use Document API getCoverPageImage to get cover image 2014-08-27 11:07:25 +08:00
chrox
40bddf0735 emulate Power button with F2 on emulator 2014-08-26 18:10:26 +08:00
Huang Xin
451092905e Merge pull request #842 from WS64/master
Add a new multi line input dialog and change some search behaviour
2014-08-26 15:20:37 +08:00
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
```
2014-08-26 10:47:20 +08:00
chrox
5890e4a0b1 use conventional util name and update koreader-base 2014-08-26 08:59:24 +08:00
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
2014-08-25 18:01:33 +02:00
WS64
6e86923659 remove global variable 2014-08-24 10:08:45 +02:00
chrox
4c68e091f9 refactoring: better logic and indentation 2014-08-23 23:19:02 +08:00
Michael Hall
8d9eb30886 Switch to local variables 2014-08-23 16:01:47 +01:00
Michael Hall
8e57adadb2 2nd change to make image dynamic in search 2014-08-23 15:35:55 +01:00
Michael Hall
d84984521b Making image size in search info dynamic based on screen size 2014-08-23 15:33:00 +01:00
WS64
03c2782844 Don't show "0: text" in series view but just "text" 2014-08-22 18:30:20 +02:00
WS64
9661616edb Removed screensaver functions to new lua file 2014-08-22 09:07:56 +02:00
WS64
1a4bdd5895 Removed screensaver functions to new lua file 2014-08-22 09:05:59 +02:00
WS64
db7c97211c Add images to info screen 2014-08-21 22:34:00 +02:00
WS64
669d766a39 Code cosmetics 2014-08-19 18:04:38 +02:00
WS64
e19733edf4 Create a simplified database file out of the calibre file
Makes searches WAY 100 times faster.
From the second run on.
2014-08-19 17:50:02 +02:00
WS64
5201f59451 Go back to series/tags list after enter a series/tag
Todo: Go back to the actual page
2014-08-18 22:52:29 +02:00
WS64
05abbbdff9 Minor change for error "not found2 messages 2014-08-18 20:44:15 +02:00
WS64
24f3bdb7fa Add number of books to browse fundction 2014-08-18 20:37:32 +02:00
WS64
7fb545286b New function, browse series/tags, and sorting of all search results 2014-08-18 09:48:46 +02:00
WS64
f39ffc623a Reuse previous search 2014-08-17 12:01:59 +02:00
WS64
c7240539d5 add second library 2014-08-16 22:33:11 +02:00
chrox
b7c7287bab remove more global variables 2014-08-14 19:52:30 +08:00