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

no break hyphen

Tim
hi all,

I have searched for this, yet with no joy.

I have the word e-commerce in an html sentence.
The hyphen allows the commerce part to wrap to a new line.
Yuck.

Is there a no break hyphen, in the same way as a no break space?

TIA

TIM

Jun 6 '06 #1
10 13582
Tim wrote:
hi all,

I have searched for this, yet with no joy.

I have the word e-commerce in an html sentence.
The hyphen allows the commerce part to wrap to a new line.
Yuck.

Is there a no break hyphen, in the same way as a no break space?

TIA

TIM


Yep. Unicode character U+2011 (HTML entity ‑)

Jeremy
Jun 6 '06 #2
Tim <Ci************@gmail.com> scripsit:
I have searched for this, yet with no joy.
Really? We very recently discussed the topic of line breaks after hyphens,
in the thread "Breaking hyphen in Mozilla and an IE display problem".
Is there a no break hyphen, in the same way as a no break space?


The correct answer to your question is "Yes", but this is not the answer you
need. Please check the previous discussion. For your convenience, here's
what _I_ regard as the practical answer, as I wrote previously:

In a more general case, to prevent an undesired line break in, say, -a,
there are several options, but the practical approaches are the nonstandard
markup
<nobr>-a</nobr>
and the use of CSS, e.g. using markup
<span class="nobr">-a</span>
with CSS code
..nobr { white-space: nowrap; }

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Jun 7 '06 #3
Tim
cheers guys,

jeremy, your method works fine.

jukka, thanks - nice idea but a bit longwinded.
Tim

Jun 7 '06 #4
Tim <Ci************@gmail.com> scripsit:
cheers guys,
On Usenet, there are two common ways to express that you have not
understood, or even read comprehensively, what others have written:
1) by quoting it in its entirety
2) by not quoting or paraphrasing at all what you are commenting on.
jeremy, your method works fine.
For some values of "works".

Check http://www.fileformat.info/info/unic...ontsupport.htm and
note that although the list of fonts is longish, it does not contain most of
the fonts used to view Web pages, including the most common browser default.
jukka, thanks - nice idea but a bit longwinded.


You apparently didn't get a clue. I referred to previous discussions, which
would have lead you to several ideas, including U+2011 (Jeremy's response),
as well as reasons why some ideas that are good, or just perfect, in theory
do not work reliably in present-day HTML authoring for the WWW.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Jun 8 '06 #5
Tim
I love this place!

you managed to write 4 lines on my single comment "cheers guys".

;-)


Jukka K. Korpela wrote:
Tim <Ci************@gmail.com> scripsit:
cheers guys,


On Usenet, there are two common ways to express that you have not
understood, or even read comprehensively, what others have written:
1) by quoting it in its entirety
2) by not quoting or paraphrasing at all what you are commenting on.
jeremy, your method works fine.


For some values of "works".

Check http://www.fileformat.info/info/unic...ontsupport.htm and
note that although the list of fonts is longish, it does not contain most of
the fonts used to view Web pages, including the most common browser default.
jukka, thanks - nice idea but a bit longwinded.


You apparently didn't get a clue. I referred to previous discussions, which
would have lead you to several ideas, including U+2011 (Jeremy's response),
as well as reasons why some ideas that are good, or just perfect, in theory
do not work reliably in present-day HTML authoring for the WWW.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


Jun 8 '06 #6
Tim wrote:
I love this place!

you managed to write 4 lines on my single comment "cheers guys".

;-)


Tim,
Welcome to usenet! ;-)

I'm not sure why some people feel so inconvenienced by the presence of a
question that they feel it necessary to berate the person who asked.

Jeremy
Jun 9 '06 #7
Tim <Ci************@gmail.com> scripsit:
I love this place!

You apparently wish to babble pointlessly. That's your privilege, as it is
my privilege to ignore you in future and leave you alone with any bogus (or,
by accident, correct) advice as you might get from people who tolerate your
continued misbehavior.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 9 '06 #8
Jeremy <je*****@uci.edu> scripsit:
I'm not sure why some people feel so inconvenienced by the presence
of a question that they feel it necessary to berate the person who
asked.


If you are referring to me, I did _not_ berate a) any person, b) any
question - just a reaction that was unconstructive and violated the
netiquette in several ways. Actually, I gave the practically useful answer
in this thread.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 9 '06 #9
Tim
jukka, chill out man.

my first response to your assistance started with the phrase...

"jukka, thanks - nice idea"

This is not rude, or "babbling pointlessly", or even a request to be
left alone. I'm not really sure where you are coming from. I guess it's
because I called your stylesheet method "long winded". It makes you
look very over-sensitive.

If you really feel the need to block my posts in future, that is fine.

Tim
Jukka K. Korpela wrote:
Tim <Ci************@gmail.com> scripsit:
I love this place!

You apparently wish to babble pointlessly. That's your privilege, as it is
my privilege to ignore you in future and leave you alone with any bogus (or,
by accident, correct) advice as you might get from people who tolerate your
continued misbehavior.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Jun 10 '06 #10
In message <11**********************@f6g2000cwb.googlegroups. com>, Tim
<Ci************@gmail.comwrites
>This is not rude
Top-posting is.
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Jul 8 '06 #11

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

Similar topics

18
by: Gustaf Liljegren | last post by:
IE does, and I can't remember this used to be a problem in Netscape. I guess someone in the Mozilla team just came up with a Smart Idea about the True Semantics of the Hyphen Minus character. :-(...
27
by: The Bicycling Guitarist | last post by:
Hi. I found the following when trying to learn if there is such a thing as a non-breaking hyphen. Apparently Unicode has a ‑ but that is not well-supported, especially in older browsers. Somebody...
8
by: Danny | last post by:
I've read the recent post about not breaking at hyphens in HTML documents. I *want* breaking to occur at hyphens. (for 'hyphen' read 'minus sign') IE6 and Opera7.54 both break phrases such as...
13
by: Matt | last post by:
I would like to set the "list-style-type" to be a hyphen (-). How can I accomplish this in a style sheet. I tried list-style-type: hyphen; and list-style-type: dash; but neither worked. I also...
22
by: stevenkobes | last post by:
If a word has a hyphen in it, IE will permit a line break at the hyphen, but Firefox/Mozilla won't. Apparently the Firefox behavior is standards-compliant, but it is not what I want. Is there a...
6
by: Kc-Mass | last post by:
In a standard Ascii table a dash or hyphen is decimal 45. A period or dot is decimal 46. If I sort a table or recordset of mixed character string ascending in Access, those strings beginning with...
13
by: Auddog | last post by:
I would like to know how I can break apart a variable. I'm currently passing the variable $id-hours and I would like to break it down. I would like to break down to something similar to: $eid...
17
by: kevgibbo | last post by:
Hi, I'm currently having a problem where a long URL or a line of text with no spaces will break the design of a webpage, http:// blog.seoptimise.com/2007/01/how-to-add-delicious-and-digg-blog-...
3
by: Joe Stateson | last post by:
I have a template field that contains filenames that are (or can be) on a unix system. The hypen (and others) is a valid filename character in unix. When I display the name of the file I get an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
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
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...

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.