Just allows for typing a command line and seeing the output.
bedstead-complement.pdf: bedstead-complement.ps bedstead.otf Fontmap
ps2pdf -P $< $@
+%.js: %.c
+ emcc -sMODULARIZE -sEXPORT_ES6 -sEXIT_RUNTIME=1 -sSTRICT -o $@ $<
+
.PHONY: clean
clean:
rm -f bedstead *.ttx *.otf *.bdf *.bdf.ps *.png *.pdf \
--- /dev/null
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB">
+ <head>
+ <!-- SPDX-License-Identifier: CC0-1.0 -->
+ <title>Bedstead editor test</title>
+ <script type="module">
+ import Bedstead from './bedstead.js';
+ document.getElementById("run").onclick = function(){
+ Bedstead({
+ arguments: document.getElementById("input").value.split(" "),
+ });
+ };
+ </script>
+ </head>
+ <body>
+ <form>
+ <label for="input">Input</label>
+ <input type="text" id="input"/>
+ <input type="button" id="run" value="Run!"/>
+ </form>
+ </body>
+</html>