Commit graph

1472 commits

Author SHA1 Message Date
Alex Cabal
9204262bab Minor style tweaks 2022-11-28 14:23:12 -06:00
Brandon
88e7f63486 Revert "Fix margin collapse issue" and adjust whitespace to compensate
This reverts commit a806fc41a8.
2022-11-28 14:18:27 -06:00
Brandon
13f15e34a1 Fix margin collapse issue 2022-11-28 14:18:27 -06:00
Brandon
5f2339a690 Add footer to document flow 2022-11-28 14:18:27 -06:00
Brandon
537e14122f Wrap book contents in a <main> tag 2022-11-28 14:18:27 -06:00
Brandon
55e7a717f3 Italicize instead of em 2022-11-28 14:18:27 -06:00
Brandon
04cf6bce03 Add chapter navigation footer 2022-11-28 14:18:27 -06:00
Brandon
f87f6290a4 Fix readme instructions 2022-11-28 14:18:27 -06:00
Alex Cabal
52f47c828b Serve <div> instead of <aside> to Kindle browser to avoid it rendering as an undismissable popup 2022-11-28 13:43:47 -06:00
Alex Cabal
2eba3974b7 Update payment process script for new FA quirk 2022-11-27 22:42:32 -06:00
Alex Cabal
bd44b39c28 Update wanted ebooks list 2022-11-22 14:06:24 -06:00
Alex Cabal
217f11880f Update wanted ebooks list 2022-11-19 13:14:40 -06:00
Alex Cabal
62698944dc Update wanted ebooks list 2022-11-15 13:15:17 -06:00
Vince
74d84161f1 Update wanted ebooks list 2022-11-15 10:37:34 -06:00
Alex Cabal
7c2de0ed5c Fix bug where More Details section was not apearing in ebook detail page when there is no Wikipedia URL 2022-11-15 10:36:32 -06:00
David Grigg
d0faf4da6d Added 'airplane' to se vocab 2022-11-04 11:57:04 -05:00
Alex Cabal
590db9e256 Update SE vocabulary 2022-11-01 13:32:55 -05:00
Alex Cabal
875aeded60 Update wanted ebooks list 2022-11-01 13:32:51 -05:00
Alex Cabal
1a42de9a21 Update wanted ebooks list 2022-10-26 16:21:00 -05:00
Alex Cabal
460a8c4b7b Update wanted ebooks list 2022-10-18 09:27:21 -05:00
Alex Cabal
58abfc50d7 Tweak wording in author feeds button 2022-10-17 15:32:31 -05:00
Alex Cabal
1cefb7a2a1 Tweak wording on login page 2022-10-17 12:10:46 -05:00
Emma Sweeney
3d9660eabf
Add works to wanted ebooks list 2022-10-12 03:34:38 -04:00
Alex Cabal
456cf09516 Update wanted ebooks list 2022-10-11 16:39:56 -05:00
Alex Cabal
05a1121c84 Update wanted ebooks list 2022-10-11 10:50:42 -05:00
Anthony J. Bentley
8294e4be4a Update wanted ebooks list: Zuñi Folk Tales by Frank Hamilton Cushing 2022-10-10 09:53:59 -05:00
Alex Cabal
f8fabfb7d5 Update wanted ebooks list 2022-10-08 18:31:13 -05:00
Alex Cabal
a847681436 Update wanted ebooks list 2022-10-04 12:42:53 -05:00
Alex Cabal
308dd294b3 Allow italics in poll items 2022-10-01 16:58:43 -05:00
Alex Cabal
5e9dee2e75 Update wanted ebooks list 2022-10-01 16:46:42 -05:00
Alex Cabal
578a4f9b34 Tweak poll wording 2022-10-01 16:46:39 -05:00
Robin Whittleton
8499cfeaad Make sure that headers scrolled in view on mobile
Currently, when clicking on a ToC link in a single page web version, the title for that section is hidden under the fixed banner. We can use `scroll-margin-top` to add a little additional scroll amount to scroll the header into view. `3em` matches the current top margin of `3em` on headings and hgroups.
2022-10-01 12:34:22 -05:00
Alex Cabal
262ad7cfc3 Tweak donate page wording 2022-09-27 13:54:40 -05:00
Alex Cabal
e787715fbf Update wanted ebooks list 2022-09-27 10:02:42 -05:00
Alex Cabal
733b52c581 Don't serve Safari XHTML because of a bug in <picture> elements causing multiple images to be downloaded 2022-09-26 20:18:04 -05:00
Alex Cabal
f1352ec215 Don't output OG header data for 404 pages 2022-09-23 13:57:52 -05:00
Alex Cabal
1be895212c Update wanted ebooks list 2022-09-23 09:59:52 -05:00
Alex Cabal
7c9ee022ec Update wanted ebooks list 2022-09-21 17:13:57 -05:00
Joshua Lund
f2d5783596 Fix a small typo in step 14 of the step-by-step guide. 2022-09-21 17:13:42 -05:00
Alex Cabal
6b5c4d8975 Add --quiet option when calling cavif 2022-09-19 10:39:33 -05:00
Alex Cabal
ca4d86c3e7 Update cavif binary to one linked to Ubuntu 18.04 libs 2022-09-19 10:39:20 -05:00
Robin Whittleton
6b3863ff18 Add cavif LICENSE file as required 2022-09-18 22:08:19 +02:00
Robin Whittleton
71b675331a Fix AVIF images in iOS16 (and 8+ times speedup of AVIF generation)
iOS16 upholds AVIF standards more strictly than other renderers, which means that the current AVIF images on SE are broken. A fix for generation bug has been added to go-avif (https://github.com/Kagami/go-avif/pull/17) but we can do better.

This PR switches out the AVIF generation to cavif (https://github.com/kornelski/cavif-rs) which not only doesn’t suffer from the iOS16 but drops generation time by more than 8 times. For example, here’s a set of three timed runs in both go-avif and cavif on the title card of https://standardebooks.org/ebooks/jonathan-dymond/an-inquiry-into-the-accordancy-of-war-with-the-principles-of-christianity:

```
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-1.avif" --best

real	0m31.191s
user	1m39.113s
sys	0m1.662s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-2.avif" --best

real	0m33.097s
user	1m49.846s
sys	0m0.831s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-3.avif" --best

real	0m36.963s
user	2m4.235s
sys	0m0.711s

root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-1.avif"
illustration-cavif-1.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.017s
user	0m11.600s
sys	0m0.051s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-2.avif"
illustration-cavif-2.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.083s
user	0m11.857s
sys	0m0.091s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-3.avif"
illustration-cavif-3.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.237s
user	0m12.339s
sys	0m0.093s
```

The executable has been generated via cargo, and has the following qualities:

```
root@f58fb0beac90:/standardebooks.org/web/scripts# file cavif
cavif: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f972071996c58b7a855d04e4c5804f4a3d94f575, for GNU/Linux 3.2.0, with debug_info, not stripped
```

I’m not sure how cavif’s quality 50 matches go-avif’s best flag, but they produce similar file sizes and similar visual quality.

There is a slight different in apparent colour space. If this is an issue there are tweaks, but according to the documentation it makes files larger so should be avoided. Given that the titlecards will matches the covers I see no reason to go down that path.
2022-09-18 22:01:26 +02:00
Alex Cabal
5309b939ea Update wanted ebooks list 2022-09-10 11:07:17 -05:00
Alex Cabal
ecaa3f0699 Add Weijia Cheng to masthead 2022-09-08 16:31:43 -05:00
Alex Cabal
048949f21f Update wanted ebooks list 2022-09-08 16:24:18 -05:00
Alex Cabal
e3889f2824 Update wanted ebooks list 2022-09-06 15:55:40 -05:00
Alex Cabal
19b5aaab27 Update wanted ebooks list 2022-09-06 09:51:52 -05:00
Alex Cabal
e61d267e49 Update wanted ebooks list 2022-09-04 20:14:37 -05:00
Alex Cabal
1336420678 Add link to Decline and Fall 2022-09-04 19:44:32 -05:00