<div dir="ltr"><div style>New Racket user, first list question.</div><div style><br></div><div style>I&#39;m using scribble/text as a preprocessor language for a system mostly written in Python.</div><div style><br></div><div style>
What&#39;s the best way to process an arbitrary chunk of scribble/text data, using Racket, from within a Python script?</div><div style><br></div><div style>Right now I&#39;m making a temp file that begins &quot;#lang scribble/text&quot; and using os.popen to feed the temp file to racket. Works, but seems like the wrong idiom.</div>
<div style><br></div><div style>However, I&#39;ve not been able to figure out how to pipe the same scribble input through racket. I know about racket -e, but that throws an error on the &quot;#lang scribble/text&quot; line (specifically, &quot;#f::0: read: #lang not enabled in the current context&quot;)</div>
<div><br></div><div style>Matthew Butterick<br></div><div style><a href="mailto:mb.list.acct@gmail.com">mb.list.acct@gmail.com</a></div><div style><br></div></div>