[Pharo-project] [COTDC] 86 - TextURL
Continuing in Collections... Today: TextURL Comment Of The Day Contest - One Day One Comment Rules: #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s). #2: If you cannot comment it, deprecate it. Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest -- View this message in context: http://forum.world.st/COTDC-86-TextURL-tp4119838p4119838.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Poor little TextURL, no one cares about you :( -- View this message in context: http://forum.world.st/COTDC-86-TextURL-tp4119838p4124600.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
I'm a text attribute used to encode an URL. On Nov 30, 2011, at 9:10 PM, Sean P. DeNigris wrote:
Poor little TextURL, no one cares about you :(
-- View this message in context: http://forum.world.st/COTDC-86-TextURL-tp4119838p4124600.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
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. 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.
Hi Sean, On Wed, Nov 30, 2011 at 8:10 PM, Sean P. DeNigris <sean@clipperadams.com>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
Eliot Miranda-2 wrote
I use them to write my blog posts...IMO this is more than worth keeping.
Thanks Eliot. It definitely seems cool!. My question was more about if it belongs loaded by default, and with our cleaning/non-backward-compatible mandate, I lean toward removing things. My current fix surgically removed it, but I could clean it and make it reloadable. What is your saving/exporting process? Do you use the TextEditor stuff (e.g. #copyHiddenInfo)? RemoteString? RunArray? Would you use this in Pharo, or do you only use it in Squeak? -- View this message in context: http://forum.world.st/COTDC-86-TextURL-tp4119838p4147505.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (3)
-
Eliot Miranda -
Sean P. DeNigris -
Stéphane Ducasse