From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from asquith.prosimetrum.com ([125.236.209.157]) by ewsd; Mon Nov 16 03:35:34 -0500 2020 Message-ID: <0A56B70EFBA44C61E499C76EAFEBD15F@prosimetrum.com> Subject: page epub support Date: Mon, 16 Nov 2020 21:31:41 +1300 From: umbraticus@prosimetrum.com To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: content-addressed advanced metadata-aware CMS HTTP replication strategy diff -r c6e94385ea0f sys/src/cmd/page.c --- a/sys/src/cmd/page.c Sun Nov 15 22:47:45 2020 +0100 +++ b/sys/src/cmd/page.c Mon Nov 16 20:55:22 2020 +1300 @@ -439,1 +439,1 @@ - "print item[ref]; fflush}}'"); + "print item[ref]}}'"); This patch makes this work for me: ; hget https://www.gutenberg.org/ebooks/5200.epub.noimages | page With the flush, I only get the first (blank) page. I think I understand why the flush is there (to get each item as a separate read in the while(read){addpage} that follows), so I don't really understand why removing it makes things work... Do other epubs work for other people? I haven't found one yet, umbraticus