Hi Sean,

On Wed, Nov 30, 2011 at 8:10 PM, Sean P. DeNigris <[email protected]>wrote:

> This is a subclass of TextAction which is a subclass of TextAttribute
>
> Hierarchy:
> TextAttribute
>  TextAction
>    PluggableTextAttribute
>    TextDoIt
>      TextPrintIt
>    TextLink
>    TextURL
>
> Is anyone using any of this? I've never heard it mentioned and vote to
> remove TextAction and all of its subclasses from the image unless someone
> speaks up for them.
>

I use them to write my blog posts.  I've also augmented the hierarchy with
TextLiteralHTML.  In Squeak there are also TextPlusJumpStart &
TextPlusJumpEnd.  This hierarchy is really useful and easily extensible.
 It provides quite a rich facility.  I write my blog posts in a workspace,
using binary storage to save it, and then export it in a format that
wordpress consumes (HTML with implicit line breaks at new lines, i.e.
<BR>'s replaced by new lines).

IMO this is more than worth keeping.


> Additional info:
> They are referenced by TextEditor comments; and RemoteString, PseudoClass,
> and RunArray, which all seems to be about filing them in and out.
>
> They appear to be the beginnings of a markup syntax.
>
> The comment from TextAttribute is:
>
>
> > Tells a piece of text to be a certain way.
> >
> > Select text, press Command-6, choose a attribute.  If selected text is of
> > the form
> >       Hi There<Smalltalk beep>
> > the part in angle brackets is saved for action, and the Hi There appears
> > in the paragraph.  If selection has no angle brackets, use the whole
> thing
> > as both the text and the action.
> >
> > TextDoIt  --  eval as a Smalltalk expression (the part in angle brackets)
> >
> > TextLink -- Show a method, class comment, class hierarchy, or class
> > defintion.
> >       <Point extent:>, <Point Comment>, <Point Hierarchy>, or <Point
> Defintion>
> > are what you type.
> >
> > TextURL -- Show the web page. <www.disney.com>
> >
> > These attributes of text need to be stored on the disk in a regular
> > file-out.  It is done in this form:   Hi There
> >       in the text, and a Run containing   dSmalltalk beep;;
> >       Click here to see the extent:
> >       in the text, and a Run containing   method LPoint extent:;
> > See RunArray class scanFrom: where decoding is done.
> >
>
> --
> View this message in context:
> http://forum.world.st/COTDC-86-TextURL-tp4119838p4126875.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
>


-- 
best,
Eliot

Reply via email to