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 should allow to say things like (NOT implemented yet) <annoty add 'g_"([^"]+)"' 'replace' '%s' AND 'link/manual' 'http://google.com/search?q=%s'> which would be an exact equivalent of what HyperLinky does. I'm also expecting that I might get it to react a bit faster, hopefully. 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=.
