Skip to content

DigitalHistory/poem-json-project

Repository files navigation

Poetry project for students on DHU235

Repo contains both student and instructor files for Assignment 1 of DHU235.

For Instructors

  • Run npm install to install dependencies
  • replace poem.txt with whatever poem you want to tokenize
  • run tokenizer.js to generate a js file with a single global variable poem which contains an array of hierarchical elements to be tranformed into html nodes

For Students

  • modify poem.js to add classes and metadata to individual nodes
  • modify poem.css to change display of the poem