473,386 Members | 1,803 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,386 software developers and data experts.

Non-breaking space for word couples

I would like to know what others do to prevent line-breaks, using  

For example, the guidelines for the company have certain words (like
"Model XY", where "Model" and "XY" shouldn't be separated. Fair enough,
I use the non-breaking space for that.

How about things like:

- 10 to 100 KM/H
- 7 to 8 years

and so on?
Or maybe this is a question for an English-usage newsgroup...
Jul 20 '05 #1
7 4074
Philipp Lenssen wrote:
...the guidelines for the company have certain words (like
"Model XY", where "Model" and "XY" shouldn't be separated. Fair
enough, I use the non-breaking space for that.

How about things like:

- 10 to 100 KM/H
- 7 to 8 years

and so on?
css: {white-space:nowrap}
Or maybe this is a question for an English-usage newsgroup...


if you want to know what, when, where or why, but a web group is probably
more suitable if you want to know how

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #2
On Tue, 19 Aug 2003, Philipp Lenssen wrote:
- 10 to 100 KM/H


What should this mean? If you mean "100 kilometres per hour"
then write "100 km/h".

Jul 20 '05 #3
On Tue, Aug 19, Andreas Prilop inscribed on the eternal scroll:
On Tue, 19 Aug 2003, Philipp Lenssen wrote:
- 10 to 100 KM/H


What should this mean?


Could be a typo for Mega Kelvins per Henry. :-}
Jul 20 '05 #4
Philipp Lenssen <ph*************@bb-k.com> wrote:
For example, the guidelines for the company have certain words
(like "Model XY", where "Model" and "XY" shouldn't be separated.
Fair enough, I use the non-breaking space for that.
Yep. But for longer expressions, we may need to consider the pros and
cons of preventing line breaks.
How about things like:

- 10 to 100 KM/H
- 7 to 8 years

and so on?
Personally I don't care much, except for headings and emphasized texts
where the appearance is important. For the latter,
"7&amp;to&amp;8 years" is probably sufficient - trying to prevent line
breaks where they would really disturb.
Or maybe this is a question for an English-usage newsgroup...


Well, similar questions arise for other languages, and notations like
"100 km/h" are really not English but belong to a special system of
notations, denotation of quantities, where the SI rules should be
applied. The document "Guide for the Use of the International System of
Units (SI)", http://physics.nist.gov/Pubs/SP811/contents.html
can be useful reading, though it's somewhat anglocentric (e.g., in
strongly recommending the word "to" instead of a range dash) and
somewhat over-theoretical, especially when it frowns upon a notation
like "70 to 100 km/h", telling us to write "70 km/h to 100 km/h"
or "(70 to 100) km/h".

Anyway, a line break between a number and an SI unit is clearly
undesirable, because they belong tightly together (and people often
omit the space between them for this reason), so I would replace at
last the last space in "70 to 100 km/h" by a no-break space.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #5
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
Philipp Lenssen <ph*************@bb-k.com> wrote:
- 7 to 8 years

Personally I don't care much, except for headings and emphasized texts
where the appearance is important. For the latter,
"7&amp;to&amp;8 years" is probably sufficient - trying to prevent line


Just to nitpick (and be a pain in the ass), but I assume you meant
"7&nbsp;to&nbsp;8 years".

;-)

Jonathan
Jul 20 '05 #6
In article <bh************@ID-139074.news.uni-berlin.de>, ng*@tbdata.com
says...
Philipp Lenssen wrote:
...the guidelines for the company have certain words (like
"Model XY", where "Model" and "XY" shouldn't be separated. Fair
enough, I use the non-breaking space for that.

How about things like:

- 10 to 100 KM/H
- 7 to 8 years

and so on?


css: {white-space:nowrap}


Thanks for the CSS reminder. The client uses Netscape 4. I don't even
want to try "advanced" CSS. Of course, if anyone now screams out "this
works in Netscape 4", there would still be the original question where
to put the non-breakers:

- 7 to 8 years
- 7 to 8&nbsp;years
- 7&nbsp;to&nbsp;8 years

.... and so on.
Jul 20 '05 #7
In article <Xn*****************************@193.229.0.31>,
jk******@cs.tut.fi says...
(...)
Anyway, a line break between a number and an SI unit is clearly
undesirable, because they belong tightly together (and people often
omit the space between them for this reason), so I would replace at
last the last space in "70 to 100 km/h" by a no-break space.


Yes, that's what I did so far.

And to the others, yes, I meant km/h not KM/H.
Jul 20 '05 #8

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

Similar topics

5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
11
by: ypjofficial | last post by:
Hello All, So far I have been reading that in case of a polymorphic class ( having at least one virtual function in it), the virtual function call get resolved at run time and during that the...
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.