art is salvation

Benedikt Eickhoff

  • Timeline
  • The Polyxsupershow
  • Categories
  • Art & Health Interventions
  • My Facebook
Home / Essays / 2023 / November / Converting MIT Shakespeare "full.html" to .fountain
Share
17/11/2023

Converting MIT Shakespeare "full.html" to .fountain


Borachio 1The image showcases two separate drawings side by side, each on a white canvas. Both artworks feature intricate, abstract figures. On the left canvas: The figure appears to be a fusion of an octopus and a humanoid entity. It has a central body with long tentacle-like appendages emanating from it. The creature's body contains intricate patterns, and it has a singular, prominent eye. Behind the creature are abstract shapes that could be interpreted as wings or distorted forms. On the right canvas: This figure bears some resemblance to the one on the left, but with distinct differences. It has a pronounced central torso and limbs that seem to be a mix of tentacles and humanoid legs. The head of the figure is elongated with elongated features. Like the left figure, it is surrounded by abstract shapes that might represent wings or energy radiating from it. Both figures seem to be captured in dynamic poses, giving a sense of movement and energy. The intricate details and abstract nature of the figures give them a surreal, almost alien appearance.

Scene Headings Conversion:
- Acts are identified and preceded with a single hash (#) for proper nesting.
- Scene headings are enclosed in <h3> tags in the HTML. These are converted to .fountain format by placing ## before the heading and converting the text to uppercase.
Character Names Conversion:
- Character names in the HTML are enclosed within <b> tags and associated with a speech identifier (<A NAME=speech\d+>).
- In the conversion, these names are extracted, converted to uppercase, and placed on separate lines above their dialogue.
Dialogue Conversion:
- Dialogue in HTML is typically found within <blockquote> tags.
- The conversion strips these tags, maintaining the plain text of the dialogue. Each line of dialogue is placed immediately after the character's name.
Stage Directions Conversion:
- Stage directions are often italicized in the HTML (<i> tags).
- These are converted into the .fountain format by placing them in parentheses and ensuring they are on separate lines for clarity.
Formatting and Cleanup:
- All other HTML tags are removed to leave only the plain text required for the .fountain format.
- Multiple consecutive newlines are collapsed into two newlines to maintain proper spacing between script elements.
- The script is stripped of leading and trailing whitespace for a clean start and end.
Special Handling for Empty Lines in Dialogue:
- In cases where dialogue does not immediately follow the character name (indicated by empty lines in the HTML), adjustments are made to ensure that dialogue lines correctly follow the character names without unnecessary breaks.
This algorithm provides a structured approach to converting HTML-formatted plays into the .fountain format, focusing on preserving the core elements of screenplay writing (scene headings, character names, dialogue, and stage directions) while stripping out the HTML-specific formatting.
For converting the entire canon of Shakespeare's plays, you can apply this algorithm to each play's HTML file. The process automates most of the formatting, but a manual review is recommended for each conversion to ensure accuracy and to make any necessary adjustments for unique elements in certain plays.

Schlünz - Nachdenken über Zustand und Fort… About Illumination
View all essays by month
View all essays by category
  1. 2

    Personal Loss & Grief

  2. 2

    Sexuality & Identity Exploration

  3. 1

    External Changes & Circumstances

  4. 1

    Internal Struggles & Choices

  5. 1

    Journey of Acceptance

  6. 1

    Coping Mechanisms

  7. 1

    Mysticism & Spirituality

  8. 1

    Supernatural & Unknown Forces

  9. 1

    Self-Discovery & Realization

Links
  • Outline "Good Old Hide&Seek"
  • An Ovid Adapter
  • A Shakespeare Adapter
  • Fountain.js
  • Project Bard's Beacon
  • Contexter on Github
Tweet
  • Home
  • Albums
  • Content
  • Essays
  • Facebook
  • Terms of Service
  • Privacy Policy
  • Essays RSS
  • Timeline RSS
© Benedikt Eickhoff | Wühlischstraße 8 | 10245 Berlin - M 01606500215 - mail@benedikt-eickhoff.de