![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
Doesn't the Css Zen Garden <http://www.csszengarden.com> do that to extreme? |
#32
| |||
| |||
|
|
wolfgangwildeblood (AT) yahoo (DOT) com.au (Wolfgang Wildeblood) wrote: 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. But 1em is still the height of the font, not the width of a character. Try it for yourself. div style="width: 10em; font-family: monospace; padding: 0; border: 1px solid red;">1234567890</div See how much wider the div is than the text? |
|
Just send your grovelling retraction on good quality paper suitable for framing, okay? I'm sure Neal looks forward to receiving that from you. |
#33
| |||
| |||
|
|
*BenOne©* <nosp@m.thanks.mate>: Neal wrote: If only 1em = 1 character! I learned that the hard way. It's a pity there isn't a standard measurement for a character. Well, Mozilla uses the proprietary 'ch', but for what it's worth, 'ex' comes much closer to the average character width than 'em', even if it's implemented in its simplest form ("0.5em"). |
#34
| |||
| |||
|
|
On Sun, 20 Jun 2004 22:51:41 -0700, Wolfgang Wildeblood wrote: Damn right, all those IDs should be classes. This won't bother the CSS, but it's very broken HTML. I know I'm exibiting my ignorance here, but in replacing those <div id= tags I simply use; .dialog{ /* . instead of # */ margin:0pt 110pt 0pt 85pt: /* actual pixel to point conversion to be worked out */ } and in the html p class="dialog">Words words words</p That simple ? |
#35
| |||
| |||
|
|
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. -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much could be shared between "screen" & "print") Not much. You go about it (screen and print formatting) two different ways. Take MyNovel.txt, for example. To print this as a "manuscript" to send to a publisher you'd want a specific format:- - A monospaced font giving exactly: - 60 characters per line, - 25 lines per page, - 1500 characters (250 words) per page. 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; <-- spot the mistake? 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: 36em !important; /* 36em = 60 characters */ margin: auto; } } |
#36
| |||
| |||
|
|
On Mon, 21 Jun 2004 20:34:51 +0930, Tim wrote: Tim wrote: You can't mimic the page count on screen, as you don't have pages on the screen. You have something analagous to a continuous roll of paper. Yet it should be possible to represent pages, one after another (as in http://s92415866.onlinehome.us/files...playCSSv2.html) and if layout and size were !important and imposed, break-before and break-after rules could do a reasonable job, couldn't they ? |
|
Any clues how to use @page, break rules and numbering ? You'll have to wait for browsers to be improved. Few have any decent sort of support for those things. It's generally only the experimental ones (e.g. Mozilla) that have any support for page media effects. Well then, for this application (and I can't believe I'm saying this) perhaps a "best viewed with Mozilla" flag is in order. |
#37
| |||
| |||
|
|
On Mon, 21 Jun 2004 16:57:49 +0100, Chris Morris wrote: Possibly what I'd suggest is: Stylesheet 1: Media="screen" Alternate Stylesheet 2: Media="screen" Stylesheet 3: Media="print" yeah, /that's/ what I meant ! What I don't know (yet) is the mechanism to call that Alternate Sheet. |
|
The alternate stylesheet implementation fails on page changes in every browser I've seen that does it at all. But my impression of this is that you intend it to be a single long file anyway, where that isn't a problem. Your impression is correct. Perhaps Stylesheet2 is invoked from a CSSmenu in Stylesheet1. |
|
Can the all 3 styles, including the alternate, be within the same stylesheet ? (I will set up 3 externals, but I can see a case for internal.) |
#38
| ||||||
| ||||||
|
|
On Sun, 20 Jun 2004 22:51:41 -0700, Wolfgang Wildeblood wrote: 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. The cardinal rule of screenplay output is Courier 12pt. Knowing this, would the page not be best defined in points ? |
|
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. ..or whatever each element definition calls for.. which is most often described in inches from a margin. |
|
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; } } And if I wanted to have TWO screen layouts (one rigid and one readable) could I add @media screen rigid { * {font size: 12/1 !important; } |
|
Do you agree that the @page spec (and associated break & number rules) are too unsupported to use ? |
|
thanks Wolfgang, |
#39
| |||
| |||
|
|
Just tried it - attempting to open an FD-generated html file gives a "Unexpected file error" ![]() |
#40
| |||
| |||
|
|
On Tue, 22 Jun 2004 13:59:06 +0100, PeterMcC wrote: Just tried it - attempting to open an FD-generated html file gives a "Unexpected file error" ![]() Did you enter any action, sluglines, dialog, characters ? etc ? could you ? I was hoping to see if there was an html formatting that FD would eat, and if so, it might be worth conforming to that. If not, ta hell wit' 'em !.. ;-) Could you try it again ? thanks djp |

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