You should have a look at an mozilla extension, bugmail. Would it be possible to integrate that in your buggy robot
Regards, Vikram 2009/11/25 Raphaël Pinson <[email protected]>: > Hi guys, > > > Some news about Annoty. > > Annoty now supports static sets of rules, instead of just a few. These > rules can be turned on and off in a Wave with <annoty addset > 'SetName'> and <annoty delset 'SetName'> > > The current sets are: > * buggy: puts links to bugtrackers > * emoticony: emulates the Emoticony bot > * hyperlinky: emulates the HyperLinky bot > * skimmy: emulates the Skimmy bot > > > If you have nice ideas of sets to add, feel free to suggest/contribute them > :-) > > > Raphaël > > > > > 2009/11/23 Raphaël Pinson <[email protected]>: >> Hi guys, >> >> 2009/11/23 Raphaël Pinson <[email protected]>: >>> Hi Beldar, >>> >>> >>> Thank you for your feedback. >>> >>> 2009/11/23 Beldar <[email protected]>: >>>> I tested Annoty and it works both on the sandbox and preview server, >>>> there's a little delay though. >>>> >>> >>> Yes, it's sometimes slow. I'll be working on that. I'm planning to do >>> a few changes in the way Annoty works. It currently does the >>> following: >>> >>> OnDocumentChanged: >>> placeAnnotations >>> >>> OnBlipSubmitted: >>> placeTags >>> placeReplacements >>> placeImages >>> placeGadgets >>> placeAnnotations >>> >>> >>> For each of these steps, it tries to match the blip text against all >>> the regexps for each group, which brings two issues: >>> * it's slow >>> * it doesn't allow to have several rules for one match, which would >>> allow to fully emulate bots like HyperLinky >>> >>> >>> For these reasons, I'm planning to switch to a different mode, where >>> I'd call only one function OnBlipSubmitted, which would: >>> 1) make a big regex to match all occurences in order >>> 2) for each match >>> 2a) get the actions to take in order of priority (replacements then >>> annotations) >>> 2b) apply the actions in order >> >> >> This is now implemented. >> >>> >>> This should allow to say things like (NOT implemented yet) >>> <annoty add 'g_"([^"]+)"' 'replace' '%s' AND 'link/manual' >>> 'http://google.com/search?q=%s'> >> >> >> This syntax is not implemented yet, so you still need to add the rules >> one by one, for the exact same regex. >> >> For example, the 2 following rules together will emulate HyperLinky >> for the g_ trigger: >> >> <annoty add 'g_"([^"]+)"' 'replace' '%s'> >> <annoty add 'g_"([^"]+)"' 'link/manual' 'http://google.com/search?q=%s'> >> >> >> >> The full set of rules to get HyperLinky functionalities is then: >> >> >> <annoty add 'd_"([^\"]+)"' 'link/manual' >> 'http://dictionary.reference.com/browse/%s'> >> <annoty add 'gf_"([^\"]+)"' 'link/manual' >> 'http://www.google.com/products?q=%s'> >> <annoty add 'g_"([^\"]+)"' 'link/manual' 'http://www.google.com/#hl=en&q=%s'> >> <annoty add 'i_"([^\"]+)"' 'link/manual' >> 'http://www.imdb.com/find?s=tt&q=%s'> >> <annoty add 'lmgtfy_"([^\"]+)"' 'link/manual' 'http://lmgtfy.com/?q=%s'> >> <annoty add 't_"([^\"]+)"' 'link/manual' >> 'http://thesaurus.reference.com/browse/%s'> >> <annoty add 'w_"([^\"]+)"' 'link/manual' 'http://en.wikipedia.org/wiki/%s'> >> <annoty add 'a_"([^\"]+)"' 'link/manual' >> 'http://www.amazon.com/s/ref=nb_ss?url=search-alias&field-keywords=%s'> >> <annoty add 'email_"([^\"]+)"' 'link/manual' 'mailto:%s'> >> <annoty add 'f_"([^\"]+)"' 'link/manual' >> 'http://www.flickr.com/search/?q=%s'> >> <annoty add 'gi_"([^\"]+)"' 'link/manual' >> 'http://images.google.com/images?gbv=2&hl=en&q=%s'> >> <annoty add 'gl_"([^\"]+)"' 'link/manual' >> 'http://www.google.com/search?hl=en&sourceid=navclient&btnI&q=%s'> >> <annoty add 'ts_"([^\"]+)"' 'link/manual' 'http://twitter.com/#search?q=%s'> >> <annoty add 'tu_"([^\"]+)"' 'link/manual' 'http://twitter.com/%s'> >> <annoty add 'd_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'gf_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'g_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'i_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'lmgtfy_"([^\"]+)"' 'replace' '%s'> >> <annoty add 't_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'w_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'a_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'email_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'f_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'gi_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'gl_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'ts_"([^\"]+)"' 'replace' '%s'> >> <annoty add 'tu_"([^\"]+)"' 'replace' '%s'> >> >> >> >> Raphaël >> >> >> >> >>> >>>> I think it would be cleaner if it removes the tag (i.e. <annoty add >>>> 'italic' 'style/fontStyle' 'italic'>) and leaves only the italic word >>>> in italic. >>>> >>>> Cya! >>>> >>>> On Nov 23, 9:52 am, Raphaël Pinson <[email protected]> wrote: >>>>> Hi guys, >>>>> >>>>> Thank you for your feedback. I just added gadget functionalities to >>>>> Annoty this morning, so now you can make rules such as : >>>>> <annoty add 'turtles' 'gadget' >>>>> 'http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/tur...> >>>>> >>>>> which replaces any occurence of 'turtles' with the turtles gadget :-) >>>>> >>>>> I'm also wondering if it would be interesting to apply >>>>> urllib.quote_plus to all matched argument in the regex when they are >>>>> to be added to a URL. Any thoughts on this ? >>>>> >>>>> Raphaël >>>>> >>>>> On Sun, Nov 22, 2009 at 11:33 PM, Vikram Dhillon <[email protected]> >>>>> wrote: >>>>> > Worth looking into, this is great thanks for your work >>>>> >>>>> > -- >>>>> > Regards, >>>>> > Vikram Dhillon >>>>> >>>>> > On Saturday 21 November 2009 04:20:48 pm Raphaël Pinson wrote: >>>>> >> Hi guys, >>>>> >>>>> >> This is to announce a new bot: Annoty, the annotation (and >>>>> >> replacement) generic bot. >>>>> >>>>> >> There are more and more bots for Google Wave. Each of them has their >>>>> >> specialty: some place emoticons, some graphs, some fix your spelling >>>>> >> or translate for you. >>>>> >>>>> >> But sometimes, you might want a bot that puts styles on your own >>>>> >> rules, replaces your own expressions, or puts the images you want, and >>>>> >> you don't want to create a new bot for that. This is what Annoty is >>>>> >> made for. >>>>> >>>>> >> Annoty is a bot which replaces regex with annotations as you type, and >>>>> >> takes commands on blip submission. >>>>> >>>>> >> It allows you to make your own annotation or replacement rules for >>>>> >> your Wave. It currently has 2 static rules that serve as examples. >>>>> >>>>> >> You can find annoty at [email protected] >>>>> >>>>> >> Feedback, questions, bug reports and wishes are welcome :-) >>>>> >>>>> >> Raphaël >>>>> >>>>> >> -- >>>>> >>>>> >> You received this message because you are subscribed to the Google >>>>> >> Groups >>>>> >> "Google Wave API" group. To post to this group, send email to >>>>> >> [email protected]. To unsubscribe from this group, send >>>>> >> email to [email protected]. For more >>>>> >> options, >>>>> >> visit this group athttp://groups.google.com/group/google-wave-api?hl=. >>>>> >>>>> > -- >>>>> >>>>> > You received this message because you are subscribed to the Google >>>>> > Groups "Google Wave API" group. >>>>> > To post to this group, send email to [email protected]. >>>>> > To unsubscribe from this group, send email to >>>>> > [email protected]. >>>>> > For more options, visit this group >>>>> > athttp://groups.google.com/group/google-wave-api?hl=. >>> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
