9front - general discussion about 9front
 help / color / mirror / Atom feed
* page epub support
@ 2020-11-16  8:31 umbraticus
  2020-11-16 17:27 ` [9front] " ori
  2020-11-17  2:42 ` sl
  0 siblings, 2 replies; 8+ messages in thread
From: umbraticus @ 2020-11-16  8:31 UTC (permalink / raw)
  To: 9front

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-11-20 23:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16  8:31 page epub support umbraticus
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

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).