Skip to content

Fountain integration #1

Description

@Mapaor

You know what would be nice? A function (inside the package) that transforms Fountain markup language to your Typst screenplay language. See Better Fountain or AfterWrite for inspiration.

In a sense a fountain renderer using typst would be really nice.

Activity

  1. danielFHcode commented on Mar 29, 2026

    @danielFHcode
    Owner

    That does sound cool

    It definitely is outside the scope of this project however

    You could implement this as a separate package that uses components from this package

    From their github I see the fountain parser is written in objective-c so you could bring it in using wasm

    Sounds like an interesting endeavor but I don't really have the time for it at the moment

  2. Mapaor commented on Mar 29, 2026

    @Mapaor
    Author

    Compiling that code to wasm seems a pain in the ass because it uses NSString and NSRegularExpression.

    It seems the most effective way may be rewritting the parser in Rust and then compiling it to WASM, and then creating a fountain typst package that uses the wasm as a plugin for the parsing and your package for the rendering. However your Typst code does not seem to contain all the Fountain specs either.

    Anyways, I'll attempt it one of these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions