Re: Adding "soft-hyphen"
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Adding "soft-hyphen"

From: Andy Hassall <andy@andyh.co.uk>
Date: Mon Sep 12 2005 - 16:27:26 CEST

On Mon, 12 Sep 2005 08:03:21 -0400, Mark <Mark.Fenbers@noaa.gov> wrote:

>My PHP script builds a table that is too wide to fit on the paper. Two
>of the columns contain strings that are more lengthy than data in the
>other columns.
>
>I can get the table to fit by letting the browser break the lengthy
>strings across two or more lines, thus allowing the column to get
>skinnier. I do this by inserting spaces in various places in the
>string. But this is not a desirable solution as it would mislead the
>user into thinking the string contains spaces when it doesn't.
>
>Is there an invisible character code I can insert into the string that
>tells the browser that it is allowed to line-wrap the string at this
>place, if needed? Popular word processors have a feature like this
>called "soft hyphens" or "soft breaks", etc.

 Have a look at http://www.cs.tut.fi/~jkorpela/shy.html for a fairly involved
discussion of the HTML equivalent.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Tue Oct 18 02:22:24 2005