Commit Graph

6922 Commits (73c8e5c5cd93992c011ff8f491b472a2f62a6d16)
 

Author SHA1 Message Date
Hung-Wei Hung 73c8e5c5cd [Kindle] Update Kindle support devices list (#5235)
* Add KT3 into Kindle support list

* Update support list for KT4
5 years ago
poire-z 4a8881687e
bump crengine: CSS parsing: cleanup and optimisations (#5239)
Includes:
- Fix background-image drawing overflowing page
- CSS parsing code: formatting cleanup and optimisations
5 years ago
Frans de Jonge e2ceace302
[fix, CI] Push to Transifex from master, fix multiline strings for xgettext (#5238)
Related to https://github.com/koreader/koreader/pull/5237
5 years ago
Frans de Jonge fbd331dd07
[i18n] Switch `make pot` to xgettext (#5237)
This introduces context to our strings to differentiate them when necessary.

The syntax chosen is `C_()`, following [glib](https://developer.gnome.org/glib/2.28/glib-I18N.html#C-:CAPS).

```lua
local _ = require("gettext")
local C_ = _.pgettext

C_("Menu|StyleTweaks|", "Pages")
```

Closes #5232.
5 years ago
Frans de Jonge 461c250790
[Android] Bump base for fix ANR by fixing a typo in the name (#5236)
https://github.com/koreader/koreader-base/pull/951
5 years ago
Frans de Jonge 0067c8f29e
[i18n, feat] Add basic context (msgctxt) support (#5234)
References https://github.com/koreader/koreader/issues/5232

Given an entry in the PO file like the following:

```
msgctxt "systemstat"
msgid "    Total"
msgstr "Totaal"
```

It can be addressed using:

```lua
local _ = require("gettext")
local C_ = _.pgettext
C_("systemstat", "    Total")
```

This allows to distinguish between separate instances of the same string, for example "Pages" meaning "Number of pages" and "Pages" meaning "Display of pages".

Extraction of this code pattern is not yet implemented by nightswatcher. xgettext didn't yet support Lua back in 2013 when all this was first added to the program, but now it does. Therefore it might make the most sense to replace the current Python extraction script with xgettext itself.

By default it only understands gettext.pgettext(), but that can be addressed by passing some extra command line arguments, for example:

```
xgettext -l lua -c --keyword=C_:1c,2 *.lua
```
5 years ago
Robert 395503d6ba [fix] Prevent double run genFooterText (#5233) 5 years ago
Martín Fernández 3a957d71e3 [Desktop] Open writable font dir, toggle system+user/user fonts, fix openLink on mac (#5220)
Fixes #5093
5 years ago
Frans de Jonge 8be113e4bd
[fix] Update LDoc config (#5231)
Follow-up to #5217.
5 years ago
Martín Fernández 57d9f75f53 [doc] Simplify and reorganize readme (#5217)
References #5213.
5 years ago
Martín Fernández c6862780a1 bump luajit-launcher 5 years ago
Martín Fernández 3161673d70 fix #5228 5 years ago
Robert d9018faa5a [UX] Option to never full refresh (#5227)
Closes #5190.
5 years ago
Robert 33e4c36a42 [UX] Move tap x y corner to tap corner submenu (#5225)
Ref: https://github.com/koreader/koreader/issues/5021#issuecomment-522308285
Close: #5021
5 years ago
Robert c57beada27 [chore] Remove Polish keyboard (#5223) 5 years ago
Robert f56e9bcf98 Fix after #5203 (#5218)
https://github.com/koreader/koreader/pull/5203#issuecomment-522156268
https://github.com/koreader/koreader/pull/5203#pullrequestreview-276228925
5 years ago
poire-z d25d449a26
bump crengine and others, adds HTML extended debug view (#5219)
Bump crengine: background image and other fixes:
- View HTML: option to show text unicode codepoints
- Fix attribute parsing: decode &-encoded chars
- Text: allow wrap after more unicode spaces and hyphen
- Fix: no left hanging when hanging punctuation disabled
- lvtextfm.cpp: more comments, some formatting cleanup
- Optimize background image drawing
- CSS: fix background-image file path resolution

Bump luasec to 0.8.1
Bump harfbuzz to 2.6.0

cre.cpp:
Adds setBackgroundImage() proxy function to crengine
facility to set background textures (this is unrelated
to the background-image CSS fixes).
No frontend code (yet) to select such an image.

View HTML: adds a 3rd view (extended debug view), showing the
unicode codepoint of each char and crengine rendereing methods.
5 years ago
Robert 5da3312869 More footer options, default to use icons as prefixes (#5203)
- show icons or letters as prefix of items
- various footer separators
- progress percentage format with decimal digits
- time in 12/24 format
- two duration formats (1:30, 1h30')
- move some options into Settings submenu
5 years ago
vvasseur c104724a58 PocketBook 626 new codename (#5215) 5 years ago
Martín Fernández 84b06d2824 bump luajit-launcher 5 years ago
Martín Fernández 81ea5f6a7e bump base: fix for #5206 5 years ago
Martín Fernández 50ce8d47cd do not request write settings permission at launch 5 years ago
Robert 939538cc25 [UX] Add gesture - poweroff and restart device (#5202)
Also abstract canRestart, canReboot and CanPowerOff.
5 years ago
Frans de Jonge aae6acb48c
[lang] Change 'ignore' to 'pass through' (#5209)
Hopefully pass through is clearer than ignore. Terms like capture and propagate are too jargon; almost no one without the specific domain knowledge would understand what that means.

Cf. https://github.com/koreader/koreader/issues/5204#issuecomment-521278649
5 years ago
NiLuJe 10511220e5 Simplify isWifiOn on Kobo (#5211)
Don't fork for lsmod + grep, we can perfectly well parse /proc/modules
ourselves ;).

c.f., https://github.com/koreader/koreader/pull/5203#issuecomment-521277628
5 years ago
NiLuJe 3579c5522c
Bump koreader-fonts (#5210)
Minor Noto & FreeFont updates
5 years ago
NiLuJe 9e4a7797c9
Honor the alpha channel in our icon for the About popup (#5208)
It ends up with a black background otherwise.
(Old regression that dates back to my alpha shenanigans a few months
ago)
5 years ago
Frans de Jonge a87c33f1f2
[lang] Change 5 years ago
Frans de Jonge 0b8d15416a
[Android] Bump luajit-launcher for big refactor with better logging (#5201)
https://github.com/koreader/android-luajit-launcher/pull/161
5 years ago
jetomit 20493eebc3 [fix, Kobo] Add missing parentheses (#5198)
Prevents a crash when the WIFI_MODULE environment variable is not
defined.
5 years ago
B YI 53b77e3ae4 [shell] Avoid hard-coded path (#5197)
Although the current hard-coded paths work on debian, they may fail on many other distros. Other distros may pack koreader based on the released deb file. I personally have problem using current script on nixos, as it does not use the paths `/bin/bash` and `/usr/lib/`.
5 years ago
Robert 0a2a1fffe8 [UI] Status bar alignment (#5195)
Close #5044
Option to align status bar without progress bar.
5 years ago
noEmbryo 570180196b [UX] Update for the greek popups (#5193)
Just used the north (upper) part of the popup wherever I could, because is more accessible.
5 years ago
Robert f450936e9a Fix: conflict horizontal edge gesture with link swipe (#5189)
See: #5186
5 years ago
Robert 9baf055154 [UX] Add spread/pinch & font increase/decrease to gesture manager (#5188)
* Add spread/pinch gesture to gesture manager
ability to disable: 
https://www.mobileread.com/forums/showthread.php?t=321818
https://github.com/koreader/koreader/pull/4815#issuecomment-478462416

* Add increase/decrease font size action gesture
https://github.com/koreader/koreader/issues/4727#issuecomment-475950484
5 years ago
Frans de Jonge a09e3865c1
Bump base for [fix] MuPDF: backport fix for upstream 698877 (#5187)
https://github.com/koreader/koreader-base/pull/943

Fixes <https://github.com/koreader/koreader/issues/5182>.
5 years ago
lucarota ac7b6aaab5 Fix: Zsync -> Subscribe to book share crashes (#5184)
Patch similar to PR #3086.
Same problem #2638 when tap Subscribe to book share.
"Zsync" -> "Subscribe to book share" crashes koreader if not connected to wifi

After this fix when koreader is offline after "Zsync" -> "Subscribe to book share" we are asked to enable wifi.
5 years ago
lucarota bcb662c863 minor: translate some menu text and error message (#5185) 5 years ago
Robert aec112fa6b [UX] Add double finger up and down swipe gesture (#5183)
* Add double finger up and down swipe gesture
* Cleaning ReaderFrontLight
5 years ago
Robert dac2458427 [UX] Extend edge zones (#5181)
See: https://github.com/koreader/koreader/pull/5179#discussion_r310676845
5 years ago
poire-z 30f39979f6
bump crengine: small fixes after Enhanced Block Rendering (#5180)
Includes:
- Fix HR centering in enhanced rendering mode
- Fix black glyph in empty lines when floating punctuation enabled
- Fix highlights in obsolete erm_list_item nodes not shown
5 years ago
Frans de Jonge ec6e34cb1e
Change default zoom mode & add warning message for fit page + scroll (#5170)
* [UX] Change default zoom mode to page width

Fixes #5166.

* Warning popup for weird scroll mode combinations
5 years ago
Robert 5245bc88ff [UX] Add horizontal edge gestures (#5179) 5 years ago
Jason Cooke cc932b873a docs: fix typo (#5134) 5 years ago
poire-z 2a707cacf0 bump crengine: CSS attribute selectors and pseudoclasses fixes (#5178)
Includes https://github.com/koreader/crengine/pull/303:
- Force a re-render when :last-child & other pseudoclasses are met
- CSS: attribute selectors: don't check when there is no such attribute
- CSS: attribute selectors: fix parsing of case insensitive flag
5 years ago
poire-z a82d7832b9 Dict lookups: have them always interruptible
They should be now interruptible when fuzzy search is disabled
and on Android.
5 years ago
poire-z 8749a3c5b6 Wikipedia download: increase timeout 5 years ago
Robert a10fc83a4a Fix: hold bottom left corner doesn't work properly (#5177) 5 years ago
Frans de Jonge 2dd29f6ab1
Bump base for [fix] Add libSDL2-2.0.so.0 to SDL2 ffiLoadCandidates (#5176)
Contains https://github.com/koreader/koreader-base/pull/940

Fixes https://github.com/koreader/koreader/issues/5122
5 years ago
Robert 1743c0ca23 [UX] Extend the touch zone for up button in touch menu (#5175)
See: #5155
Close: #5155
5 years ago