View Single Post
Old 06-28-2012, 06:17 PM   #28
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,324
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Follow up...

OK, try again...
  1. Create the TXT file with XPDF's pdftotext.exe program
    Code:
    pdftotext -layout screenplay_in.pdf screenplay_out.txt
  2. Open the output TXT file in a text editor. Make sure the text visually resembles the PDF layout (leading spaces etc)
  3. Add this html code before the first line of the screenplay text
    Code:
    <html>
    <head>
        <title>Screenplay title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    <pre>
  4. Add this html code after the last line of the screenplay text
    Code:
    </pre>
    </body>
    </html>
  5. Save the file as screenplay.html
  6. Import screenplay.html into calibre (which will turn it into a ZIP file)
  7. Convert zip --> epub. No special conversion options required. The <pre> tags should make sure the epub displays in your monospace font.
  8. Send epub to PRST1 and display in landscape orientation for best results.

P.S. This is one way of doing it and should not be considered as the 'One True Way'

Last edited by jackie_w; 06-28-2012 at 06:27 PM. Reason: more detail)
jackie_w is offline   Reply With Quote