multiple word tag for a post

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

multiple word tag for a post

Mariano Martinez Peck
Hi!   Suppose I have a tag that has more than a word, for example: garbage collector. If I put this in tags, this is interpreted like 2 different tags. Is there a way of scaping this so that it can be considered as one tag ? what about using , or other thing instead of a blank ?

Thanks in advance,

Mariano

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: multiple word tag for a post

Lukas Renggli
> Hi!   Suppose I have a tag that has more than a word, for example: garbage
> collector. If I put this in tags, this is interpreted like 2 different tags.
> Is there a way of scaping this so that it can be considered as one tag ?
> what about using , or other thing instead of a blank ?

The separators of the tags are defined in MATokenDescription. The
default tokens recognized are

    ' ,;' , String crlf , String tab

The first one of this list is the default one used to separate the
tokens when printing.

To allow space separated tokens in Pier simply add the following
method as a class extension to PRStructure:

descriptionTagsChangeSeparator: aDescription
        ^ aDescription separators: ',;' , String crlf , String tab  " no
space there, default is $, "

Lukas

>
> Thanks in advance,
>
> Mariano
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: multiple word tag for a post

Mariano Martinez Peck


On Wed, May 6, 2009 at 5:31 AM, Lukas Renggli <[hidden email]> wrote:
> Hi!   Suppose I have a tag that has more than a word, for example: garbage
> collector. If I put this in tags, this is interpreted like 2 different tags.
> Is there a way of scaping this so that it can be considered as one tag ?
> what about using , or other thing instead of a blank ?

The separators of the tags are defined in MATokenDescription. The
default tokens recognized are

   ' ,;' , String crlf , String tab

The first one of this list is the default one used to separate the
tokens when printing.

To allow space separated tokens in Pier simply add the following
method as a class extension to PRStructure:

descriptionTagsChangeSeparator: aDescription
       ^ aDescription separators: ',;' , String crlf , String tab  " no
space there, default is $, "

Perfect!!! I works nice now.

Thank you so much.

Mariano
 

Lukas

>
> Thanks in advance,
>
> Mariano
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki