Giter Club home page Giter Club logo

fdtorenpy's Introduction

FDtoRenpy

Convert dialogue from Final Draft screenplay to Renpy format.

What is it?

The aim is to quickly convert dialogue written in Final Draft to a format suitable for importing to Renpy.

  • Actions are converted to narrator dialogue, so "[ACTION]"
  • Character and Dialogue are converted to the format [CHARACTER] "[DIALOGUE]"
  • Final Draft General type is converted to Renpy Label. Spaces are converted to underscores. So a General of This is a label would become label This_is_a_label:
  • Transition type is converted to scene. So a transition that reads bg office would become scene bg office (automatically converted to lower case)
  • Parenthetical is converted to a comment. So a parenthetical that reads (Remember to do xyz here) becomes # Remember to do xyz here
  • Single and double curly quotes are changed to straight quotes in the dialogue and action text only.
  • Everything else in the screenplay is ignored

Output is to a text file with indents.

To use:

python FDtoRenpy.py YourFinalDraftScript.fdx YourOutputFile.txt

Ensure there are no spaces in filenames and that the FD script is not open in Final Draft.

Potential gotchas:

Final Draft sometimes adds a wiggly line underneath a word it doesn't know. That formatting appears in the XML too and will affect the conversion, so it's best to get rid of it first. You can usually do that by either confirming the spelling of the word, or just highlighting the whole block and reapplying the style (e.g. transition, dialogue).

Disclaimers:

I am not a Python dev! There are probably much better ways to do this, but this way was quick and it does the job :)

Also, please be aware that I have only done very limited testing on this and I am using Final Draft 10.


Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

fdtorenpy's People

Contributors

runawayhaggis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.