473,406 Members | 2,620 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,406 software developers and data experts.

words per line OT?

It seems that there can be too many words on a line. This is a problem
with pages that are not fixed width.

There seems to be a few problems.

1) Finding where the next line starts after finishing a long line.

2) The pages just look too wordy and it is tiring to read.

I would think that there are already "formulas" for word count, lineheight
and column width and font size.

Illumination?

Jeff


Jul 20 '05 #1
4 2942
Jeff Thies wrote:
It seems that there can be too many words on a line. This is a problem
with pages that are not fixed width

There seems to be a few problems.
The short answer is that the css spec will be useful reading.

xposted to ciwa-stylesheets, f'ups set (please set followups when
xposting)
I would think that there are already "formulas" for word count,
No, but there is the css max-width property, e.g.,

p {max-width: 35em;} /* set to taste, but always use em */

http://www.w3.org/TR/CSS21/visudet.h...pdef-max-width
lineheight
http://www.w3.org/TR/CSS21/visudet.h...ef-line-height
and column width
http://www.w3.org/TR/CSS21/visudet.html#propdef-width

http://www.w3.org/TR/CSS21/tables.html#q4
and font size.


http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size
HTH.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #2
Jeff Thies schrieb:

It seems that there can be too many words on a line. This is a problem
with pages that are not fixed width.
It's really a problem of the ideal relationship of font size/family and
viewport width. Since most 'windowing' systems allow the user to adjust
the viewport width, it's no problem at all.

I would think that there are already "formulas" for word count, lineheight
and column width and font size.


Yes, and they're all available through google :-). But there's more to
it than simple formulas; the subject matter and nature of your
publication matters, too. For example, books and newspapers have
different line length, and both line lengths are ideal for their
purpose. One size doesn't fit all.
Matthias
Jul 20 '05 #3
On Sat, 24 Jan 2004 21:06:22 GMT, "Jeff Thies" <no****@nospam.net>
wrote:
It seems that there can be too many words on a line. This is a problem
with pages that are not fixed width.
Not really, when you consider what the fundamental concepts of a
windowing user interface are:
1. the user being able to see the interface to more than one program at
the same time;
2. the user being able to adjust the window to the size he/she wants.

If the user just applies 2, then the problem goes away.

As has already been mentioned, the CSS 'max-width' property may also
help.
There seems to be a few problems.

1) Finding where the next line starts after finishing a long line.

2) The pages just look too wordy and it is tiring to read.
If one leaves the lines very long, yes.
I would think that there are already "formulas" for word count, lineheight
and column width and font size.


Well, up to a point. When I spent some time on this a year or so back, I
discovered recommended line lengths, based on research, that differed by
30% or so. Personal preference plays a role - I don't think you can pin
down the "ideal" line length very accurately.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #4
Tim
On Sat, 24 Jan 2004 21:06:22 GMT,
"Jeff Thies" <no****@nospam.net> wrote:
It seems that there can be too many words on a line. This is a problem
with pages that are not fixed width.

There seems to be a few problems.

1) Finding where the next line starts after finishing a long line.

2) The pages just look too wordy and it is tiring to read.

I would think that there are already "formulas" for word count, lineheight
and column width and font size.


The first one depends on the distance traversed by the eye, the second
is aesthetics.

For the average A4 piece of paper, about 60 characters across was the
usual way to type; because it looked okay and was easy to read. The
auto-cues used by television airheads typically use about 30 to 35
characters across, because it's easy to read quickly without too much
eye movement (which makes them look shifty, or nervous; especially in
close-up shots).

So there you have two suggested values with a 2:1 difference. Then
there's others: Usenet always suggested around 70 characters, as that'd
fit into the text mode screen displays, and isn't too hard to read.
Magazine columns tend to be somewhere around 40 characters across.

You'll have to think about all of that (that's there's no one good
answer) and consider what problems you might cause by setting any
particular value, as well as how it might help. Remember just about all
browsers are resizeable. I'll resize mine if it helps to read the page,
so long as it's not annoying.

Messing with line height can cause some weird browser behaviour. I find
most browsers have the lines too close together for fast reading, but
making style sheets to increase the spacing causes other problems
(generally, spacing between different elements, and different text line
spacing within different elements), and I had to set up a lot of
interrelated rules. Just adjusting paragraphs ignored text in other
elements, fiddling with everything made lots of things looked bad.
Trying to think of all the elements that might have text (e.g. li, td,
p, div, etc.), meant a lot of rules, and new problems to be discovered.
Some don't use a text in a fashion that looks good if you change the
line height.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #5

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

Similar topics

4
by: qwweeeit | last post by:
The standard split() can use only one delimiter. To split a text file into words you need multiple delimiters like blank, punctuation, math signs (+-*/), parenteses and so on. I didn't...
2
by: CV | last post by:
How can I match 'n' number of neighbouring words of a pattern using regular expressions? For example, suppose I am looking for the pattern "length xyz cm" in some text. where xyz is a number -...
12
by: teoryn | last post by:
I've been spending today learning python and as an exercise I've ported a program I wrote in java that unscrambles a word. Before describing the problem, here's the code: *--beginning of file--*...
3
by: gregpinero | last post by:
I'm trying to write a little script that will have a list of word pairs which will loop through that list and replace all instances of each word with the other word. I'm very new to javascript...
8
by: DrNoose | last post by:
Hi! I'm writing a program that is supposed to read a line of input, count the words and the number of occurrences of each letter. Then it should prints the number of occurrences of each letter...
6
by: Gary Wessle | last post by:
hi I have a data file with equal number of columns for each row. I need to get the number of rows and columns to allocate a matrix in gsl. getline (in, line) and parse the line for the number of...
0
by: Slowjam | last post by:
How do I correct the program below to search all the anagrams in a given file. First, for each word, build another word (its key) with all its letters sorted. For instance, build "dorw" for...
20
by: dmurray14 | last post by:
Hey guys, I'm a C++ newbie here - I've messed with VB, but I mostly stick to web languages, so I find C++ to be very confusing at times. Basically, I am trying to import a text file, but I want...
11
by: elrondrules | last post by:
Hi Am pretty new to python and hence this question.. I have file with an output of a process. I need to search this file one line at a time and my pattern is that I am looking for the lines...
2
by: alwaali | last post by:
Hi I need help please This is my project and i need a help to solve it with you A page of text is to be read and analyzed to determine number of occurrences and locations of different words. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.