[ZPT] Truncating strings

Tino Wildenhain tino at wildenhain.de
Thu Oct 23 03:53:35 EDT 2003


Hi Fred,

Fred L. Drake, Jr. wrote:
> Tino Wildenhain writes:
>  > You can even do truncating in CSS :-)
> 
> Is this something new?  I'd love to see an example that specifies the
> point at which to truncate as the number of characters, and what to
> substitute at the point of truncation.  ;-)

You can only truncate at CSS measures, as there are points, pixels,
cm, em's. This can be in the middle of a char of course.
I did not say its elegant, but at least there is the posibility :-)

Dont know why CSS does not implement some more useful formatting,
when it comes to actual line length, it depends on the fonts and
metrics you never know from app side.

Regards
Tino Wildenhain




More information about the ZPT mailing list