Commit Graph

8767 Commits

Author SHA1 Message Date
Alberto
6ebcfd9e79 [fix, desktop] Use XDG_DATA_HOME to search for fonts (#8521)
Same as <https://github.com/koreader/koreader/pull/8507>.
2021-12-07 12:17:45 +01:00
Frans de Jonge
19a607b548 [i18n] Add context to "Update" (#8519)
In response to the comment by @ilyats on Weblate:

> Text appears in code twice, as menu item and as dialog button label. Ideally, translations should be different.
2021-12-06 13:07:06 +01:00
zwim
4fd4861d09 Fix unused variable (#8518) 2021-12-05 22:14:00 +01:00
hius07
13d80739b6 docsettings fix no name file (#8517)
When trying to open/delete a supported document with empty name (eg .txt) got an error

./luajit: frontend/docsettings.lua:118: attempt to concatenate a nil value
2021-12-05 22:08:20 +01:00
zwim
e1f62e6098 [autowarmth, plugin] fix CI (#8513) 2021-12-05 21:27:46 +01:00
Alberto
f82ead2b39 Fix koreader not using XDG_CONFIG_HOME on linux (#8507) 2021-12-05 21:16:22 +01:00
zwim
c676aa6f0d [autowarmth, plugin] use date time widget, optimize (#8502) 2021-12-05 09:52:02 +01:00
Frans de Jonge
1c8ab19f83 [fix] gettext: don't replace backslash characters (#8511)
Everything in string.gsub() is replaced, not only the matching group. By using two groups, we can correctly return the full matched string when none of the special conditions apply.

Fixes <https://github.com/koreader/koreader/issues/8486>.
2021-12-04 19:01:12 +01:00
hius07
785eb5f3ef Bookmark search (#8504)
From bookmark list, main menu and with a gesture.
2021-12-04 19:37:00 +02:00
Frans de Jonge
91c4aeb2e5 [i18n] Add context to CSS style vs highlight style (#8510)
Cf. <https://github.com/koreader/koreader/pull/8489#issuecomment-985319434>.
2021-12-04 12:51:38 +01:00
Frans de Jonge
d9730cf0fc [chore, CI] Remove empty whitespace (#8506) 2021-12-03 07:48:40 +01:00
hius07
eda8379e8c SpinWidget, DoubleSpinWidget: enable/disable OK button (#8495)
OK/Apply button is enabled only after changing the input value.
2021-12-01 19:58:48 +02:00
hius07
791bb380ab ConfigDialog: fix set as default (#8498)
Fix "Set as default" action with SpinWidget and DoubleSpinWidget.
Correct name of the setting to be saved as default.
2021-12-01 17:41:30 +02:00
hius07
ad09411c3f DoubleSpinWidget buttons move (#8490)
Move Default and extra buttons above Cancel/OK.
Default values shown in the default button.
Precisions can be set for both values separately.
Minor geometry fix for consistence with SpinWidget.
2021-12-01 12:42:54 +01:00
zwim
ef4d88ccd6 Battery stats plugin: tidy up, single page (#8491)
KeyValuePage: add a 'single_page' option to force
showing all items on a single page.
2021-12-01 12:39:48 +01:00
zwim
6a01abb52c [doc] add documentation to a few widgets (#8425) 2021-12-01 12:37:18 +01:00
hius07
c7a3c17ce0 Gesture intervals spinwidgets - do not show default value in info-text (#8488)
Default values are now shown in SpinWidget default button.
Optimized SpinWidget calls.
2021-11-29 05:56:21 +02:00
Dylan Garrett
7495ea29ef InputDialog: add 'use_available_height' option (#8467)
Use it with bookmark edit, to allow entering longer notes.
2021-11-28 23:30:15 +01:00
tjader
c8c55423a7 Cervantes: include hostname in DHCP request (#8481) 2021-11-28 23:24:37 +01:00
Frans de Jonge
10305789dc [i18n] Add context to various none/auto/small/medium/large (#8489)
Needed for Greek and possibly other languages.

Closes #8478.
2021-11-28 22:49:22 +01:00
zwim
b029a6a1ff [autosuspend, plugin] Switch to datetimewidget and provide default values (#8480) 2021-11-28 22:18:44 +01:00
hius07
372dd9e36b SpinWidget buttons move (#8485)
SpinWidget "Default value" and extra buttons move up.
Cancel/OK buttons row is in the bottom now.
Default value is shown in the Default button.
2021-11-27 19:10:54 +02:00
poire-z
56d54d2c1a Style tweaks: have "Justify most/all text" work on txt documents 2021-11-27 18:09:50 +01:00
poire-z
9ac3738c29 bump crengine and button-listen.c for reMarkable
- bump crengine: adds CSS "-cr-only-if: txt-document"
- Update button-listen for reMarkable firmware update
2021-11-27 18:09:50 +01:00
Martín Fernández
3427c207b0 android: bump test activity (#8483)
Now users can test light drivers too. See https://github.com/koreader/android-luajit-launcher/pull/339#issuecomment-977822717
2021-11-25 22:04:09 +01:00
hius07
e66b26865b Highlights backup fix (#8479)
Fixes opening book with old highlights, when (after deleting the last highlight on a page) empty table of highlights for this page was not deleted.
2021-11-24 19:14:13 +02:00
zwim
e9ba854ff0 DeviceMenu: Colons and more information (#8435)
Add information to device menu entries
2021-11-23 21:17:07 +01:00
yparitcher
1b2b4da9e5 Multiswipe menu: return to item page when going up from submenu (#8474) 2021-11-23 18:52:40 +01:00
hius07
3a7cba38c2 Customize page turns tap zones (#8475)
Settings for page turn tap zones position (vertical or horizontal) and width.
2021-11-23 19:16:10 +02:00
yparitcher
66f97c25f6 Kindle: remove zsync plugin iptables rules (#8471)
zsync is not shipped anymore.
2021-11-23 01:13:36 +01:00
yparitcher
5dbeddd2a1 Wifi: toggle when connected even if offline (#8468) 2021-11-23 01:12:39 +01:00
hius07
1c9e21389d Backup and restore bookmarks/highlights: fix logic (#8473) 2021-11-23 01:11:07 +01:00
poire-z
a2d95f5a3f bump cURL, libjpeg-turbo, crengine (#8463)
- (Update to HarfBuzz 3.1.1, but reverted)
- Update to cURL 7.80.0
- Update to libjpeg-turbo 2.1.2
- bump crengine: allows to open files from rclone mounts
  on Linux
2021-11-22 16:11:12 +01:00
Frans de Jonge
dcd34d409e [chore] Change "filebrowser" to "file browser" (#8466) 2021-11-21 22:44:28 +01:00
Frans de Jonge
dc88fdc66d [chore] Fix "Compact items" capitalization (#8465)
Follow-up to <https://github.com/koreader/koreader/pull/8424>.
2021-11-21 22:44:13 +01:00
Frans de Jonge
59d09f54f8 [bug] Don't translate empty strings (#8464)
Introduced in https://github.com/koreader/koreader/pull/8419

Unfortunately it's not just useless, but it causes some edge case issue.
2021-11-21 21:00:19 +01:00
yparitcher
8207bdc3e3 BookShortcuts plugin: folder support (#8449)
Allow setting a folder as a book shortcut, with 2 options:
- open file browser: opens the FM in that folder
- last book: opens the most recently read book (via
  ReadHistory) in that folder
2021-11-21 20:51:42 +01:00
hius07
0eeb8bd2b7 Backup and restore bookmarks/highlights when switching engines (#8455)
Bookmark/highlight formats in crengine and mupdf are incompatible.
This backups and restores bookmarks and highlights when opening the
document with an incompatible engine, instead of deleting them.
2021-11-21 20:41:58 +01:00
poire-z
6f2fdd96f8 [chore] Fix a few luacheck errors (#8461) 2021-11-21 19:33:09 +01:00
Aleksa Sarai
3461f8af31 Dictionary: disable fuzzy search when CJK words (#8458)
Fuzzy searching doesn't work with CJK text: with Japanese,
we get large numbers of useless results because sdcv
decides to strip off the wrong part of the word.
It seems unlikely that sdcv correctly handles Korean
or Chinese, so just disable fuzzy searching on all
CJK-containing word lookups.
2021-11-21 19:13:29 +01:00
zwim
8ef426d79f ReaderMenu/FileManagerMenu: deduplicate Exit menu code (#8459) 2021-11-21 19:01:43 +01:00
zwim
1d92ee19fb Navigation menu: cleanup, use colons in menu (#8442) 2021-11-21 18:47:00 +01:00
zwim
e56aae263a AltStatusBar: cleanup, use colons in menu (#8436) 2021-11-21 18:45:59 +01:00
Frans de Jonge
c11ea4f389 [chore] Fix a few luacheck errors (#8460)
Inadvertently introduced in <https://github.com/koreader/koreader/pull/8432> and <https://github.com/koreader/koreader/pull/8445>.
2021-11-21 18:41:07 +01:00
hius07
217937a5bc ReaderPaging/Rolling: deduplicate inverse_reading_order code (#8445) 2021-11-21 18:33:51 +01:00
hius07
c7229d90bc ReaderHighlight: allow for 2-steps text selection (#8432)
Add a "Select" button in the highlight dialog to initiate
text selection; on the next text selection, the text between
these 2 points will be selected.
Limited to a single page with non-CRE documents.
Also move "Search" button at end, so it's the one that
will be wide in case of an odd number of buttons.
2021-11-21 18:31:10 +01:00
Frans de Jonge
0824886fde Update translations for 2021.11 (#8452) v2021.11 2021-11-20 05:27:55 +01:00
hius07
58c4db694e readersearch: do not show regexp checkbutton in pdf (#8450)
Minor optimization.
2021-11-18 16:54:07 +01:00
poire-z
1004081098 DocSettings: fix settings not saved when book on read-only FS (#8448)
Witnessed on Android with books on the external SD card.
2021-11-16 19:02:42 +01:00
Aleksa Sarai
6d40c7c7ea koreader-base: update to include sdcv update (#8446)
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2021-11-15 16:00:10 +01:00