Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
Thanks a lot, that's a cool data structure and I was thinking about
something similar. (Actually, I was thinking about the "chart" in "chart
parser" and was about to look up how these are usually implemented.)

I'm reluctant to do it on the side, though, because experience has told
me that these kind of approaches can be error-prone. But I'll give
it a try.

If there will ever be a future change to text%, please consider this a
feature request. The feature is very useful  in list-box%.

Best,

Erich

 On Fri, 5 Jan 2018 10:55:32 -0600
Robby Findler  wrote:

> The arrows, docs information, etc that Check Syntax draws use a
> data/interval-map to manage that kind of information on the side.
> 
> https://docs.racket-lang.org/data/interval-map.html
> 
> hth,
> Robby
> 
> On Fri, Jan 5, 2018 at 8:58 AM, Erich Rast  wrote:
> > Hi all,
> >
> > Is there a way to associate custom payload data to individual
> > characters and image snips in a text% instance? Maybe some package
> > or framework class that already exists?
> >
> > I'd like to add custom data that is independent of styles but
> > behaves like them. Basically, I need to keep track of arbitrary
> > *types of text and other snips* such as "Heading1", "Heading2",
> > "URL", "Calculation", "emphasized", "Internal Link", and the like,
> > in an editable text% instance.
> >
> > Possible?
> >
> > Best,
> >
> > Erich
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Racket Users" group. To unsubscribe from this group and
> > stop receiving emails from it, send an email to
> > racket-users+unsubscr...@googlegroups.com. For more options, visit
> > https://groups.google.com/d/optout.  
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Robby Findler
The arrows, docs information, etc that Check Syntax draws use a
data/interval-map to manage that kind of information on the side.

https://docs.racket-lang.org/data/interval-map.html

hth,
Robby

On Fri, Jan 5, 2018 at 8:58 AM, Erich Rast  wrote:
> Hi all,
>
> Is there a way to associate custom payload data to individual
> characters and image snips in a text% instance? Maybe some package or
> framework class that already exists?
>
> I'd like to add custom data that is independent of styles but behaves
> like them. Basically, I need to keep track of arbitrary *types of text
> and other snips* such as "Heading1", "Heading2", "URL", "Calculation",
> "emphasized", "Internal Link", and the like, in an editable text%
> instance.
>
> Possible?
>
> Best,
>
> Erich
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
Hi all,

Is there a way to associate custom payload data to individual
characters and image snips in a text% instance? Maybe some package or
framework class that already exists?

I'd like to add custom data that is independent of styles but behaves
like them. Basically, I need to keep track of arbitrary *types of text
and other snips* such as "Heading1", "Heading2", "URL", "Calculation",
"emphasized", "Internal Link", and the like, in an editable text%
instance. 

Possible?

Best,

Erich

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.