From d5e6df23d2afe5c9e99f4ab8694fbbcf236bfd04 Mon Sep 17 00:00:00 2001 From: gator Date: Thu, 17 Sep 2026 01:36:33 +0000 Subject: [PATCH] book.html: upload a manuscript and start a writers' room Takes a .docx, a text .pdf or a .txt up to 6MB, or pasted text for anything that will not upload cleanly. The upload itself only stores the file and writes a row - extraction runs afterwards on the server, because ptl_api is synchronous with a five second budget and parsing a novel is not a five second job. The page polls until the book says ready, or says why it could not be read. readFileB64 lives here rather than in app.js: app.js's resizeImage goes through an and a canvas, which is right for a phone photo and fatal for a .docx, and this is the only page that uploads a document. --- book.html | 335 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 335 insertions(+) create mode 100644 book.html diff --git a/book.html b/book.html new file mode 100644 index 0000000..2965f3f --- /dev/null +++ b/book.html @@ -0,0 +1,335 @@ + + + + + +Book trailer — PayToLaugh + + + + + + +
+ +
+

Make a trailer from a book

+

Upload the manuscript and say what you want the trailer to do. Several models each read the whole book and write their own cinematic trailer — script, cast and shot list. You read them side by side, mark up the shots you want changed, and let them critique each other before one gets filmed.

+
+ +
+
+
+ +

1 · The manuscript

+
+ + A .docx, a text .pdf, or a .txt, up to 6MB. A scanned PDF has no text in it and will be refused — upload the original document instead. +
+

Drop the manuscript here

+

or click to choose a file

+
+ +
+ +
+ + For anything that will not upload cleanly — Google Docs, Scrivener, a PDF that is really a scan. + +
+
+ +

No manuscripts yet.

+
+
+ + + +
+ + + + +