Keystroke Loxensis Light
Keystroke Loxensis is also available as a template - Keystroke Loxensis Light that allows you to recreate the visualisations offered by Keystroke Loxensis for your own writing processes using GitHub Pages.
How to visualise your own keystroke-logged writing processes with Keystroke Loxensis Light
To make use of this template, you should have your own keystroke-logged writing processes — logged with a keystroke logger, such as Inputlog or GGXLog — encoded in TEI-XML. The XML should be well-formed and must conform to the rules outlined in the Encoding Manual for Keystroke Logging Data. Make sure to use this XML template as the start file for your encoding, this will ensure the metadata (names, session duration etc.) is shown in the visualisations.
Quick Setup
- Use this template to create a new repository.
- In your new repository, go to
Settings -> Actions -> General -> Workflow permissionsand giveRead and write permissionsto GitHub Actions. - Go to
Settings -> Pages -> Build and Deploymentand selectGitHub Actionsas source. - Replace the existing directories (
authorLastname) in thexmlfolder with your own. Each directory inxmlrepresents a collection of writing sessions of one particular writer/author. The folders should be given the lastname of the authors in your collection (e.g.Smith). This folder contains all the TEI-XML files, with the following file naming: (authorLastname_version#_session#.xml, e.g.Smith_01_s01.xml) - Commit and push your changes.
If you follow these steps correctly and in the right order, you will kickstart the deployment workflow and your edition will shortly be deployed to https://[your-username].github.io/[your-repo-name].
Local Development Server Setup
- Use this template to create a new repository.
- Clone your repository to your local system.
- Replace the existing directories (
authorLastname) in thexmlfolder with your own. Each directory inxmlrepresents a collection of writing sessions of one particular writer/author. The folders should be given the lastname of the authors in your collection (e.g.Smith). This folder contains all the TEI-XML files, with the following file naming: (authorLastname_version#_session#.xml, e.g.Smith_01_s01.xml) - Run the Python script
build_authors_json.pyfrom the root folder of the repository. This will update theauthors.jsonfile which is necessary for the program to work. - Start a local server (eg. the VCS live server or a simple Python HTTP server) and open
index.htmlon a browser.