Adding highlights

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding highlights

Rick Hedin
Hello all.  I'd like to add highlights in certain patches in the text I see in a FileBrowser.  I have drilled down from the ComposedText some, past TextLines to DisplayScanner and its XxxxStopConditions.  I suppose I would define some new stop conditions, and get control when the stop conditions are hit, in some way.  Those of you who know this library better, is this a fruitful approach?
 
 
           Regards, Rick

--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Adding highlights

Dave Stevenson-3
Rick,

I would use the *emphasis* methods in Text while generating the info, not try to scan the runs after the fact:
    addEmphasis:removeEmphasis:allowDuplicates:from:to:
    emphasizeFrom:to:with:
    etc.

Alternatively, you could look at TextStream:
    emphasis:
    etc.
 
Dave Stevenson
[hidden email]



From: Rick Hedin <[hidden email]>
To: vwnc NC <[hidden email]>
Sent: Thu, April 21, 2011 3:49:36 PM
Subject: [vwnc] Adding highlights

Hello all.  I'd like to add highlights in certain patches in the text I see in a FileBrowser.  I have drilled down from the ComposedText some, past TextLines to DisplayScanner and its XxxxStopConditions.  I suppose I would define some new stop conditions, and get control when the stop conditions are hit, in some way.  Those of you who know this library better, is this a fruitful approach?
 
 
           Regards, Rick

--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Adding highlights

Rick Hedin
Thanks, Dave.
 
The Text class has a very good comment, that helps a lot. 
 
I don't yet see how to implement an emphasis like #highlight instead of one like #bold, but maybe I will see as I explore further.
 
 
           Regards,
 
           Rick

On Thu, Apr 21, 2011 at 4:29 PM, Dave Stevenson <[hidden email]> wrote:
Rick,

I would use the *emphasis* methods in Text while generating the info, not try to scan the runs after the fact:
    addEmphasis:removeEmphasis:allowDuplicates:from:to:
    emphasizeFrom:to:with:
    etc.

Alternatively, you could look at TextStream:
    emphasis:
    etc.
 
Dave Stevenson
[hidden email]



From: Rick Hedin <[hidden email]>
To: vwnc NC <[hidden email]>
Sent: Thu, April 21, 2011 3:49:36 PM
Subject: [vwnc] Adding highlights

Hello all.  I'd like to add highlights in certain patches in the text I see in a FileBrowser.  I have drilled down from the ComposedText some, past TextLines to DisplayScanner and its XxxxStopConditions.  I suppose I would define some new stop conditions, and get control when the stop conditions are hit, in some way.  Those of you who know this library better, is this a fruitful approach?
 
 
           Regards, Rick

--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc




--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc