Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > contrib-release-src > by-pkgid > 8a6b9b8e72075240ae5981c7ac7fb97a

perl-Text-Tags-0.04-1mdv2007.0.src.rpm

Description:

Parses "folksonomies", which are
simple space-or-comma-separated-but-optionally-quoted tag lists.

Specifically, tags can be any string, as long as they don't contain both a
single and a double quote. Hopefully, this is a pretty obscure restriction.
In addition, all whitespace inside tags is normalized to a single space
(with no leading or trailing whitespace).

In a tag list string, tags can optionally be quoted with either single or
double quotes. There is no escaping of either kind of quote, although you
can include one type of quote inside a string quoted with the other. Quotes
can also just be included inside tags, as long as they aren't at the
beginning; thus a tag like joe's can just be entered without any extra quoting.
Tags are separated by whitespace and/or commas, though quoted tags can run into
each other without whitespace. Empty tags (put in explicitly with "" or '') are
ignored. (Note that commas are not normalized with whitespace, and can be
included in a tag if you quote them.)

Why did the previous paragraph need to be so detailed? Because
Text::Tags::Parser always successfully parses every line. That is, every single
tags line converts into a list of tags, without any error conditions. For
general use, you can just understand the rules as being separate tags with
spaces or commas, and put either kind of quotes around tags that need to have
spaces.

Generated packages:

Other version of this rpm: