120 Commits

Author SHA1 Message Date
Newbyte
5bc6790603 Add StartupNotify to desktop file (#936)
GTK apps have built-in support for this, and it allows shells like
Phosh to show a splash screen while Foliate is starting.

Reference: https://developer-old.gnome.org/integration-guide/stable/startup-notification.html.en
2022-09-09 10:36:08 +00:00
John Factotum
c16a24c14a Release 2.6.4
Fixes #847
2022-01-13 20:23:26 +08:00
David Heidelberg
3bf0d63d13 AppData: rename appdata to metainfo (#571)
Appstream nowadays prefers `.metainfo.xml`:
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location

Signed-off-by: David Heidelberg <david@ixit.cz>
2021-05-18 03:02:06 +00:00
John Factotum
9dffbec14a Release 2.6.3 2021-04-01 16:47:06 +08:00
John Factotum
26884e84fa Release 2.6.2 2021-03-25 00:49:55 +08:00
John Factotum
6b65728ac2 Release 2.6.1 2021-03-24 14:30:21 +08:00
John Factotum
c20a78201f Release 2.6.0 2021-03-24 11:26:25 +08:00
John Factotum
58d5e506a3 Remove support for more than two columns
It's just too buggy. Some of the time it works great, but it doesn't
seem to be sizing the page correctly in some cases.

Removing it for now.

Breaks #257
2021-03-24 10:44:25 +08:00
John Factotum
dce8721f5f Improve layout
* Consistent inner and outer margins (#225)
* `margin` is now set in pixels, not percentage (which won't work
   well with a flexible number of columns)
* Support for odd number of columns for the automatic layout (when
  not using skeuomorphism)
* Don't show any margin when viewing fixed-layout (pre-paginated)
  books

See also:
* #257
* dcedc8b419
2021-03-07 20:36:32 +08:00
John Factotum
49aed8904f Add support for showing only up to 2 columns
Fixes #538
Fixes #682

NOTE: previously, we use Epub.js by taking the pre-built `epub.js`
from upstream CDN and patching it; now `epub.js` is built from the
source from the code in my forked Epub.js repo at
https://github.com/johnfactotum/epub.js
2021-03-06 23:00:32 +08:00
Gianluca Boiano
6c52391a32 Update Italian translation and fix typos (#651) 2021-01-10 03:15:59 +00:00
John Factotum
e613330db2 Remove plain text support from .desktop file
Fixes #646
2020-12-24 21:08:09 +08:00
John Factotum
098cbc6a02 Add support for opening HTML and XHTML files
Fixes #641
2020-12-16 20:56:27 +08:00
Adrien Plazas
fb38799e00 AppData: list compatible form-factors (#621)
This will allow the app to be available in Phosh and PureOS Store.
2020-11-05 23:07:28 +00:00
John Factotum
c570ba1b03 Fix typo 2020-10-15 08:52:44 +08:00
John Factotum
98f03ea6b9 Bump version to 2.5.0 2020-10-15 08:48:14 +08:00
John Factotum
622eb29602 Fix typo 2020-07-12 18:52:27 +08:00
John Factotum
7091ac3ab7 Bump version to 2.4.2 2020-07-06 15:34:31 +08:00
John Factotum
e4c3860fca Bump version to 2.4.1 2020-07-06 13:01:15 +08:00
John Factotum
1677240907 Bump version to 2.4.0 2020-07-02 14:01:03 +08:00
John Factotum
a541bff333 Update README 2020-06-30 01:02:06 +08:00
John Factotum
733e5c3ad8 OPDS: add option to open or download file to custom destination 2020-06-29 18:58:58 +08:00
John Factotum
c2c67dd20a Bump version to 2.3.0 2020-06-19 01:42:22 +08:00
John Factotum
5c7287cc57 Library: remember last view ("library" or "catalog") 2020-06-18 23:05:36 +08:00
John Factotum
9aeb74671c Bump version to 2.2.1 2020-06-07 18:58:39 +08:00
John Factotum
dc2cc7e8f8 Add (hidden) option for image size for covers cache
Also don't scale up when saving covers
2020-06-02 16:10:47 +08:00
John Factotum
2cc4f83789 Bump version to 2.2.0 2020-05-29 14:53:03 +08:00
John Factotum
25b4df2cc5 Remove option to allow external content
- Run internal JavaScript files from gresource
  (except for libarchivejs, which uses ES6 modules and WebAssembly)
- Disable JavaScript markup and also set `script-src` to `'none'` when
  "allow unsafe content" is disabled,
  (except for comic book archives; see above)
- Even with "allow unsafe content", it will no longer load any external
  content

There's no reason for a book to rely on external resources, unlike JS,
which at least has some legitimate use cases. Without this change, it's
really insecure to enable JS.

Also addded `sandbox` in CSP, which prevents alerts and other things
2020-05-28 19:57:23 +08:00
John Factotum
2ff2dd36df Add option to disable URI store
URI store is unnecessary if you use Tracker, or if you don't even use
the library window at all
2020-05-20 18:16:16 +08:00
John Factotum
d218099355 Add command line options, in particular one to open the library window
And an option to print the version number

Also, when activating (not opening), it will open the library window
instead of presenting the already opened window
2020-05-20 13:26:46 +08:00
John Factotum
a9228a5184 Option to disable Tracker, location cache, and cover cache
Fixes #361
2020-05-19 12:03:57 +08:00
John Factotum
758a0a3352 Update translations 2020-05-16 11:33:15 +08:00
John Factotum
590afd1b90 Library/OPDS: remember window state 2020-05-10 18:08:33 +08:00
John Factotum
9a81503a92 Update desktop file
Add mimetypes for comic book archive and plain text
2020-05-06 21:55:38 +08:00
yasharjit
13934a26d4 AppData: fix release date (#331) 2020-05-05 13:58:24 +00:00
John Factotum
ef92032657 OPDS: support "opds:" URI scheme; show OPDS feed in a separate window 2020-04-29 18:54:37 +08:00
John Factotum
5dfcd5877e Add option to open image on double, middle, right click, or disable it
Fixes #315
2020-04-25 15:27:52 +08:00
John Factotum
3c518498d9 Update schema description 2020-04-25 15:04:31 +08:00
John Factotum
c512cd8a57 More FB2 improvements; support zipped FB2
See #128
2020-04-23 16:44:58 +08:00
John Factotum
49e3285759 Initial support for FB2
Missing a lot, but it's a start.

See #128
2020-04-23 01:51:41 +08:00
Lorem
24f1974625 Fix errors reported by appstream-util in appdata file (#313) 2020-04-22 06:18:29 +00:00
John Factotum
8139d9e780 Update desktop file
- Add mimetype for Kindle books
- Support opening URIs
2020-04-21 19:10:49 +08:00
John Factotum
97bf4a4eba Add max-width option
Fixes #192
2020-04-18 19:17:28 +08:00
John Factotum
efc507231f Fix GSettings schemas not localized 2020-04-09 12:43:52 +08:00
John Factotum
681c7dfe1f Update AppData 2020-04-09 10:53:13 +08:00
John Factotum
4dffed274f Release 2.1.0 2020-04-08 22:17:31 +08:00
Tobias Bernard
d97a0091ed Icon: new book shape with more realistic spine (#279) 2020-04-08 13:02:14 +00:00
John Factotum
7dfdbf2a84 Add option to disable turn page on tap
Fixes #270
2020-04-07 10:46:52 +08:00
Merlijn Sebrechts
582bb0ad2b Fix typo in AppData (#261) 2020-04-05 13:19:31 +00:00
John Factotum
83cb23456c Update AppData 2020-04-05 15:16:54 +08:00