From: umbraticus@prosimetrum.com
To: 9front@9front.org
Subject: page epub support
Date: Mon, 16 Nov 2020 21:31:41 +1300 [thread overview]
Message-ID: <0A56B70EFBA44C61E499C76EAFEBD15F@prosimetrum.com> (raw)
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
next reply other threads:[~2020-11-16 8:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 8:31 umbraticus [this message]
2020-11-16 17:27 ` [9front] " ori
2020-11-17 12:21 ` qwx
2020-11-20 7:11 ` Anthony Martin
2020-11-20 8:28 ` umbraticus
2020-11-20 23:29 ` qwx
2020-11-20 15:43 ` ori
2020-11-17 2:42 ` sl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0A56B70EFBA44C61E499C76EAFEBD15F@prosimetrum.com \
--to=umbraticus@prosimetrum.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).