<div dir="ltr"><div style>New Racket user, first list question.</div><div style><br></div><div style>I'm using scribble/text as a preprocessor language for a system mostly written in Python.</div><div style><br></div><div style>
What'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'm making a temp file that begins "#lang scribble/text" 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'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 "#lang scribble/text" line (specifically, "#f::0: read: #lang not enabled in the current context")</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>