This repository includes a scripts
directory with some scripts you can load run from the sbt console.
The root directory of this repository has a build file that resolves HMT project code libraries with their dependencies, so from the root directory of the repository, you can:
sbt console
:load scripts/scholia.sc
(note the colon preceding the load
command!)Necessary imports:
import edu.holycross.shot.dse._
import edu.holycross.shot.ohco2._
import edu.holycross.shot.citerelation._
Display scholia for an Iliad line: from the sbt console,
:load scripts/scholia.sc
scholia("urn:cts:greekLit:tlg0012.tlg001:1.1")
Create a facsimile for a codex: from the sbt console,
:load scripts/facsimile.sc
facsimile("urn:cite2:hmt:msA:")
facsimile("urn:cite2:hmt:msA:", 4) // formats display in 4 columns
To load the preview, open the markdown file in Atom and then toggle Mardown Preview from the packages menu
The scripts are just plain text files written in Scala. If you want to learn more about how they work, see this brief guide to the included scripts