playfair

Playfair Script Formatter
git clone https://git.stjo.hn/playfair
Log | Files | Refs | README

commit 106683d9bb1e041b1e16112a1e7df6c902b05720
parent 6571630b5bbead1fcdfb13452c8eb2a23b1b5ff3
Author: St John Karp <contact@stjo.hn>
Date:   Sun, 21 Jun 2020 10:53:53 -0500

Remove PHP script

This is no longer hosted on my site, so I've removed the PHP script
and any references to it in the readme.

Diffstat:
Mreadme.md | 5++---
Dscript.php | 18------------------
2 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/readme.md b/readme.md @@ -1,7 +1,7 @@ Playfair Script Formatter ========================= -The code for Playfair can be run locally on any machine running [SWI-Prolog](http://www.swi-prolog.org/). Prolog does all the grunt-work of parsing and formatting the play as HTML. You can then use [Prince](http://www.princexml.com/) to convert the HTML output into a PDF file. A functional version of Playfair that outputs PDFs can be found on my website at [Playfair Script Formatter](http://stjohnkarp.net/projects/playfair-script-formatter/). +The code for Playfair can be run locally on any machine running [SWI-Prolog](http://www.swi-prolog.org/). Prolog does all the grunt-work of parsing and formatting the play as HTML. You can then use [Prince](http://www.princexml.com/) to convert the HTML output into a PDF file. What is the Playfair Script Formatter? -------------------------------------- @@ -66,4 +66,4 @@ Each character block starts with the character's name followed by a new line. Th One thing that isn't generally recommended for scripts, but which I find quite handy, is adding emphasis to a word. If you want to add emphasis, enclose the text *between two asterisks*. This format is very human-readable to users who chat online, and the formatter will output the text as underlined. -Finally, at the very end of your script, you write "The End." followed by one newline — and you're done! Save your script as a plain text, UTF-8 file with a .txt extension and upload it to the Playfair Script Formatter. -\ No newline at end of file +Finally, at the very end of your script, you write "The End." followed by one newline — and you're done! Save your script as a plain text, UTF-8 file with a .txt extension and run it through `playfair.pl`. diff --git a/script.php b/script.php @@ -1,18 +0,0 @@ -<?php -if (($_FILES['script']['type'] == 'text/plain') && ($_FILES['script']['size'] < 1000000)) { - if ($_FILES['script']['error'] > 0) { - echo "Return Code: " . $_FILES['script']['error'] . "<br />"; - } - else { - header("Content-Type: application/pdf"); - $script_name = pathinfo($_FILES['script']['name']); - $output_name = $script_name['filename'] . '.pdf'; - header("Content-Disposition:attachment; filename='$output_name'"); - passthru("LANG='en_US.UTF8' swipl -s playfair.pl -g \"play_to_html(".$_POST['type'].",'".$_FILES['script']['tmp_name']."')\" | prince - --javascript --script javascript.js"); - exit(); - } -} -else { - echo "Invalid file"; -} -?>