On Ven 3 ao� 2001, [EMAIL PROTECTED] <metacard-
[EMAIL PROTECTED]> wrote:

>From: "Geoff Canyon" <[EMAIL PROTECTED]>
>Subject: More brutal text wrapping?
>Date: Fri, 3 Aug 2001 11:50:29 -0700
>MIME-Version: 1.0
>Content-Type: text/plain; 
> charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Is there a way to get MetaCard to wrap text without regard to word
delimiters?
>
>As an example, MC might wrap some text like this:
>
>This is a test  |
>MetaCard will   |
>wrap these words|
>but keep them   |
>whole           |
>
>I'm looking for:
>
>This is a test M|
>etaCard will wra|
>p these words wi|
>thout regard to |
>the word delimit|
>ers             |
>
>
>Regards,
>
>Geoff
>

I tried this little game
Insertion of "invisible" space chars to force wrap after each char...
fld 1 is text sample, fld 2 is the textSize of inserted space chars

Funny thing: with textSize 5, no wrapping, with textSize 1, wrapping etc..
Did'nt lock screen to see what happens, have a look it's funny....  :-)

on mouseUp
  put the length of cd fld 1 into L
  if space & space is in cd fld 1 then
    repeat with x=L down to 1
      if textSize of char x of cd fld 1 is cd fld 2
      then delete char x of cd fld 1
    end repeat
  else
    repeat with x=L down to 2
      put space before char x of cd fld 1
      set textSize of char x of cd fld 1 to cd fld 2
    end repeat
  end if
end mouseUp

Not sure this will help, but...

Pascal Bau

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to