Re: breaking hyphen?
- From: Dr John Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 12:04:22 +0100
JRS: In article <1130315748.654045.14080@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
dated Wed, 26 Oct 2005 01:35:48, seen in news:comp.infosystems.www.autho
ring.html, Alan Wood <alan.wood@xxxxxxxxxx> posted :
>
>One possible improvement would be to add a condition that a break
>should not be allowed if it would leave a string of 3 or fewer
>characters at tne end or start of a line.
ISTR that 3 should be acceptable; breaking "hot-dog" seems OK,
especially if there are not many characters per line.
> Another possible improvement
>would be not to allow a break between a hyphen and a number, so that
>negative numbers are not broken.
Latter is not so good if the text happens to contain Part
#Q235-987-577-875-755-G
Maybe allow break before hyphen-minus if it has digits on both sides?
I presume hyphen-minus is \u002D, hyphen and minus are above \u007F,
hyphen always allows break and minus never does.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.
- References:
- breaking hyphen?
- From: stevenkobes
- Re: breaking hyphen?
- From: Alan Wood
- Re: breaking hyphen?
- From: Jukka K. Korpela
- Re: breaking hyphen?
- From: Alan Wood
- breaking hyphen?
- Prev by Date: Re: Transparent GIF/PNG link not passing clicks to element behind it
- Next by Date: Re: Translating foreign text into html code - help
- Previous by thread: Re: breaking hyphen?
- Next by thread: Re: breaking hyphen?
- Index(es):
Relevant Pages
|