In the default webinator vortex scripting in the section "showlinks",
the title is truncated to 70 charcters. For example, there's this
among others:
<!-- Truncate the title in case it's really long: -->
<substr $Title 0 70>
This makes sense to me. But what scripting would I need to use to be
sure that this doesn't truncate right in the middle of a character
entity? For example, if characters 68 thru 73 of the title are
"¢", I wouldn't want to cut this down to "&ce". Besides, the
copyright symbol is only one characters and if this is the end of the
title (and this is the only character entity in the title), then there
are only 68 displayed characters in which case the title ought not to
be truncated at all.
Or perhaps the better (and much more direct!) question is: how can I
truncate the title to 70 characters but count each character entity
as one character?
-John Koch - - - __o
Knowledge Systems, Inc. - - - - _ \<,_
<John.ksi@webplus.net> - - (_)/ (_)
(A NET-FRIENDLY SIG. http://www.ncsa.uiuc.edu/Edu/ICG/pt1.ch2.Etiquette.html )