![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags |
|
-doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much could be shared between "screen" & "print") |
#12
| |||
| |||
|
|
But to get the same formatting on screen (i.e. line breaks in the same places), you simply specify directly that you want 60 characters per line. p { width: 60em !important; margin: auto; } |
#13
| |||
| |||
|
|
You go about it (screen and print formatting) two different ways. To achieve this in print you measure the size of the paper, deduct the margins, then divide by 60 to get the font-size that results in 60 characters per line. Then set a line-height that results in 25 lines per page. |
|
But to get the same formatting on screen (i.e. line breaks in the same places), you simply specify directly that you want 60 characters per line. |
|
p { width: 60em !important; margin: auto; } } That's all there is to it; as usual for screen, no mention of font-size at all. So the stylesheet just looks something like: @media print, projection, screen { * { font-family: "Courier New", monospace !important; line-height: 2; } } } @media print { * { font-size: 12pt /* or whatever */ !important; } } @media projection, screen { p { width: 60em !important; margin: auto; } } |
#14
| |||
| |||
|
|
David J Patrick <davidjpatrick (AT) sympatico (DOT) ca> wrote: The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags Damn right, all those IDs should be classes. This won't bother the CSS, but it's very broken HTML. |
#15
| |||
| |||
|
|
On 20 Jun 2004 22:51:41 -0700, Wolfgang Wildeblood wolfgangwildeblood (AT) yahoo (DOT) com.au> wrote: But to get the same formatting on screen (i.e. line breaks in the same places), you simply specify directly that you want 60 characters per line. p { width: 60em !important; margin: auto; } If only 1em = 1 character! |
#16
| |||
| |||
|
|
Neal <neal413 (AT) yahoo (DOT) com> wrote: On 20 Jun 2004 22:51:41 -0700, Wolfgang Wildeblood wolfgangwildeblood (AT) yahoo (DOT) com.au> wrote: But to get the same formatting on screen (i.e. line breaks in the same places), you simply specify directly that you want 60 characters per line. p { width: 60em !important; margin: auto; } If only 1em = 1 character! That's the whole point of using monospaced fonts, Neal. |
|
Just send your grovelling retraction on good quality paper suitable for framing, okay? |
#17
| |||||
| |||||
|
|
Pt should be fine for printing, but not for the screen. |
|
would "in" be the most portable ? that's what the screenplay format is usually describe in, anyhow. You're probably best not to make font specifications in the screen styling... remove all obstacles that make browser reading a pain). It's important to mimic the look, and especially page count, of a script. I see the more rigid screen definition as a colaborative/ preview tool. A reader who can give your project the "green light" will be reading a printout, and it had better adhere to specs. I agree that there should be a style-free mode though. another CSS definition; media="screen-free" ? |
|
-no automatic page breaks (with automatic numbering ?) Any clues how to use @page, break rules and numbering ? |
|
Can you see a better way to define the ScreenplayCSS page ? |
|
That makes sense, I have noticed, however a distinct lack of "html2pdf" avalable for linux. If I can "force" a reliable printout, from html, that would be great. |
#18
| ||||
| ||||
|
|
But to get the same formatting on screen (i.e. line breaks in the same places), you simply specify directly that you want 60 characters per line. p { width: 60em !important; margin: auto; } |
|
If only 1em = 1 character! |
|
That's the whole point of using monospaced fonts, Neal. |
|
But 1em is still the height of the font, not the width of a character. |
#19
| |||
| |||
|
|
The problems stems from 12 point text on paper having a defined meaning |
|
(it'll be the same size, no matter who printed it), but 12 pt text on a screen doesn't have any standard rendering: It'll be different sizes on different screens, and rarely the same size as 12 pt printed on paper. |
#20
| |||
| |||
|
|
Just send your grovelling retraction on good quality paper suitable for framing, okay? |

![]() |
| Thread Tools | |
| Display Modes | |
| |