View Single Post
Old 01-20-2012, 10:47 AM   #8
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
using my rule, as an example of what I don't understand (please remember that I am not a programmer, and this stuff is very new to me)

([{title} {series:|(| }{series_index:0>2s||)}] -> title)

The whole rule is included in opening and closing parens (but why isn't the second rule I cited enclosed in parens?)

I have the title of the book {title} in the metadata. If there is a series name, it goes next in a paren (do the pipes indicate a literal paren rather than the paren being used as part of the syntax?). that's the {series:|()} part.

next comes the series number. That's the {series_index:0>2s||)} part.

what does the 0>2s mean? I assume that it's saying that the series index has to be greater than 0, but I don't understand the 2s part.

and if I'm right that the pipes indicate a literal paren, shouldn't it be |)| rather than ||)?

and I'm not sure what the -> title part means, since the title of the book is included in the first statement.

Thanks!
BeccaPrice is offline   Reply With Quote