473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

scr2css - paged media

Hello all !
I'm struggling to craft a screenplay system that will allow an author to
write a screenplay using an extremely lightweight markup, in a text editor.
I'm developing a script to transform that markup to html, with css, that
will conform to established "Hollywood" formatting conventions.
So far, the screen output is looking OK, but I'm a bit stumped when it
comes to page break logic. the css for Printout is even more problematic.

I have started a sourceforge project at;
http://sourceforge.net/projects/scr2css/

and the css that im working on is based on;
http://s92415866.onlinehome.us/files...playCSSv2.html

and I'm hoping to find a css expert who thinks this is worth developing.
thanks,
djp
Jul 20 '05 #1
3 2011
*David J Patrick* <da***********@sympatico.ca>:

I'm developing a script to transform that markup to html, with css, that
will conform to established "Hollywood" formatting conventions.
So far, the screen output is looking OK, but I'm a bit stumped when it
comes to page break logic. the css for Printout is even more problematic.
.header {page-break-before: always}

or probably better:

.main {page-break-after: always}
http://s92415866.onlinehome.us/files...playCSSv2.html


You're invalidly using multiple IDs instead of classes and should probably
abbreviate them. I don't understand the 'br' after the page number headers
(use a margin).

<div id="action">Trens (...)<p>Sumbloat (...)</p></div>

may be valid (except the mentioned multiple 'id'), but

<div class="action"><p>Trens (...)</p><p>Sumbloat (...)</p></div>

or

<p class="action">Trens (...)</p><p class="action">Sumbloat (...)</p>

is better style.

As you're trying to rebuild a design, which has very rigid rules, in CSS you
should keep as close as possible to the source's values, i.e. use points
('pt') and inches ('in'), not pixels ('px'). Furthermore this strict
resemblance is IMO only required for media="print"; for "screen" you should
use a readable stylesheet.

Instead of

font: 12pt "Courier 10 Pitch BT", "Courier New"; line-height: 1;

use e.g.

font: 12pt/1 "Courier 10 Pitch BT", "Courier New", Courier, monospace;

This:

letter-spacing: -1pt;

doesn't look like a good idea to me.

--
The Hitchhiker's Guide to the Galaxy:
"He was a dreamer, a thinker, a speculative philosopher,
or, as his wife would have it, an idiot."
Jul 20 '05 #2
On Fri, 18 Jun 2004 22:22:40 +0200, Christoph Paeper wrote:
.header {page-break-before: always}

or probably better:

.main {page-break-after: always}
will these have to be entered manually ?
is that a stupid question ..
I'm struggling with page break concepts..
http://s92415866.onlinehome.us/files...playCSSv2.html
You're invalidly using multiple IDs instead of classes and should probably
abbreviate them. I don't understand the 'br' after the page number headers
(use a margin).


First of all, the original ScreenplayCSS was put out by one David C.
Daniel. Sadly, I know even less than this poor chap, but boy am I learning
fast !

<p class="action">Trens (...)</p><p class="action">Sumbloat (...)</p>

is better style.
That makes sense, so I'll convert to
paragraph class="element"
As you're trying to rebuild a design, which has very rigid rules, in CSS
you should keep as close as possible to the source's values, i.e. use
points ('pt') and inches ('in'), not pixels ('px').
Again, yes !This will work for various screen resolutions too, won't it ?
Furthermore this strict resemblance is IMO only required for
media="print"; for "screen" you should use a readable stylesheet.

I tend to agree with you here, too. OTOH, when a reader says
to the writer "The action on page 47 was stilted" consistent pagination
would be a boon. Perhaps I should make a (psudo media?) screen-rigid, and
one that flows.
Instead of
font: 12pt "Courier 10 Pitch BT", "Courier New"; line-height: 1;

use e.g.
font: 12pt/1 "Courier 10 Pitch BT", "Courier New", Courier, monospace;
Yes !
This:
letter-spacing: -1pt;
doesn't look like a good idea to me.


No ? I can't say that I understand it, D.C.D. noted it's use was to
re-enforce letter or line spacing.. perhaps this is "important" ?

Should I go with internal or external css .. or optional ?

And lastly, do you thing the "screen" page setup should be tottally
reworked ala @page ? Or should I just tweak the units and move on ?

Thanks for the help,
djp
Jul 20 '05 #3
On Fri, 18 Jun 2004 18:47:46 -0400, David J Patrick
<da***********@sympatico.ca> wrote:

I tend to agree with you here, too. OTOH, when a reader says
to the writer "The action on page 47 was stilted" consistent pagination
would be a boon. Perhaps I should make a (psudo media?) screen-rigid, and
one that flows.


In this case, it would be a good idea to retain an exact image of what
the printed page looked like. You can do this by "printing" to PDF
using the same settings as your hard-copy, or even better printing to
a postscript document and using that same postscript document both for
printing and optionally conversion to PDF for storage.

Trying to recreate the printed document as a continuous on-screen
document will be very hard and also very fragile.

-Claire
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Laurens | last post by:
Hi, Which browser has the best CSS paged media support? I'm about to write a business plan, which needs to be printed on paper to be presented to the bank. Now I cringe at doing this in...
1
by: Garmt de Vries | last post by:
For a long time, I've used CSS to style my webpages, but only for media "screen" and "print". Now I've started looking into styling them for other media like "projection" and "handheld". I'd be...
1
by: Yangtsi River | last post by:
Hi, I am retrive record from an Access database and want them displayed page by page, I used oledbdatareader to retrive and assigned the datasource of datagrid control to this reader. but the...
0
by: Johan | last post by:
Hi How do I preform a paged search using the Directory searcher in VB.NET? I'm getting the first 1000 entries in the AD when I'm doing a normal search using the Directory searcher, and then...
11
by: noleander | last post by:
Ive got a time-critical application that runs on Windows XP and Unix. I've got some timing issues that Ive traced to virtual memory getting paged in and out. I think I can solve the problem if...
4
by: subeen | last post by:
Hi, I am trying to parse a rss similar to the one found here (in example) http://www.feedforall.com/mediarss.htm <!-- Snipped for Brevity --> <item> <title>FeedForAll's Show Tunes and...
0
by: Konrad | last post by:
Hi everyone. I've got problem with converting xml file to xsd schema. The Xml file looks like: <?xml version="1.0" encoding="iso-8859-2"?> <rss version="2.0"...
0
by: kplazinski | last post by:
Hi everyone. I've got problem with converting xml file to xsd schema. The Xml file looks like: <?xml version="1.0" encoding="iso-8859-2"?> <rss version="2.0"...
0
by: kplazinski | last post by:
Hi everyone. I've got problem with converting xml file to xsd schema. The Xml file looks like: <?xml version="1.0" encoding="iso-8859-2"?> <rss version="2.0"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.