diff --git a/.gitignore b/.gitignore index 8b36a8a..3d16b12 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ pom.xml.asc .calva/ .idea/ *~ - +list_audio.* .calva/output-window/output.calva-repl diff --git a/project.clj b/project.clj new file mode 100644 index 0000000..ac7598d --- /dev/null +++ b/project.clj @@ -0,0 +1,12 @@ +(defproject muharni "0.1.0-SNAPSHOT" + :description "Format a web page for students of muharni" + :url "https://www.journeyman.cc/muharni/" + :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" + :url "https://www.eclipse.org/legal/epl-2.0/"} + :dependencies [[org.clojure/clojure "1.10.3"] + [clj-http "3.12.3"] + [enlive "1.1.6"] + [hiccup "1.0.5"] + [hickory "0.7.1"] + [com.github.jtidy/jtidy "1.0.2"]] + :repl-options {:init-ns muharni.construct}) diff --git a/src/sh/format-chars.awk b/src/sh/format-chars.awk new file mode 100644 index 0000000..9037b9a --- /dev/null +++ b/src/sh/format-chars.awk @@ -0,0 +1,12 @@ +#!/usr/bin/awk -f + +# Hackery to format the data structure for the entries. + +BEGIN {printf( "[[ "); COL=0;} +{printf( "\"%s\" ", $1); +COL++; +if (COL == 12) { + COL=0; + printf(" ]\n[ "); +}} +END {print( " ]]");} \ No newline at end of file