Thanks to Allen I've managed to add HTML export to my screenwriting bundle. So now you can export your screenplays in proper Studio Format! However, thanks to Safari's (and all other browsers) lack of support for paged-media styles the resulting document does not print ideally. That being said, it's a very nice result for outputting to HTML. In fact, it's much better than Final Draft 7! (they don't declare doctypes... bad final draft). It would be nice to see actual support of CSS2 paged-media styles... one can only hope.
When exporting a PDF from Safari it adds header information and footer stuff, as well as a nice .25in margin on every side. I'd like to change that, if you know how let me know.
I've looked into using HTMLDoc and Prince to export the resulting HTML document to a pdf by way of bypassing the build-in PDF services but both of those cost money, something I'd like to avoid. If you have any tips, let me know.
I've also added support for printing and non-printing comments, as well as general code clean-up.
Aside from minor changes in regexp rules to account for people's writing habits, I cannot foresee to many more changes in the bundle (aside from a better PDF option). So, thanks to all of you who helped and especially to Allen. You can now say that TextMate has a (somewhat) full-featured Screenplay-writing bundle that imports resulting documents *perfectly* into Final Draft. Objective accomplished.
On Jan 27, 2006, at 16:19, Oliver Taylor wrote:
When exporting a PDF from Safari it adds header information and footer stuff, as well as a nice .25in margin on every side. I'd like to change that, if you know how let me know.
I expected to find the header/footer control in Safari 2's File... Page Setup..., but eventually caught on to the fact that it is in File... Print. Select "Safari" in the third selector and disable "Print webpage information in headers and footers".
On 27/1/2006, at 8:19, Oliver Taylor wrote:
[...] lack of support for paged-media styles the resulting document does not print ideally.
Not sure what support you seek, but it is possible to give some page- break hints with CSS. For example for the TextMate manuals print style sheet I force a page break [1] after each chapter.
When exporting a PDF from Safari it adds header information and footer stuff, as well as a nice .25in margin on every side. I'd like to change that, if you know how let me know.
For me it only prints headers/footers if I ask it to in the Safari pane of the Print dialog sheet:
As for the margin, I have not tried it, but maybe one can set it with CSS on either HTML or Body.
I've looked into using HTMLDoc and Prince to export the resulting HTML document to a pdf by way of bypassing the build-in PDF services but both of those cost money, something I'd like to avoid. If you have any tips, let me know.
For the records, htmldoc is F/OSS and gratis.
[1] http://www.w3.org/TR/CSS2/page.html#propdef-page-break-after
On 27/01/06, Oliver Taylor oliver@ollieman.net wrote:
However, thanks to Safari's (and all other browsers) lack of support for paged-media styles the resulting document does not print ideally.
Opera has been supporting paged-media for quite some time now (since Opera 3.5 I believe), including the "avoid" value.
Bye, Martin