Sorry for the late response, I have been offline for a while. All the interaction of the editor widget is in zim/gui/pageview.py. That's a big chunk of code and I'm busy refactoring it, so don't look to close at it.
However if you look for "find-highlight" and "highlight-tag" you can see it is rather straight forward to create a gtkTextTag for the highlighting and than apply it to some region in the editor. Might be useful to have a look at the documentation for the gtk widget to understand how the texttag and the textbuffer fit together. Regards, Jaap On Thu, Apr 10, 2014 at 11:54 AM, Sylvain Viart <launch...@ledragon.net>wrote: > Thank you, > > Le 09/04/2014 08:49, Jaap Karssenberg a écrit : > > Well, you would have to implement the detection algorithm itself. > Probably not too hard as long as you look for literal matches. > > > I'll also look at LanguageTool > Development<https://languagetool.org/development/> > > Could it be interesting to implement it as a web-service? > I didn't find open-source repetition detector snippet for now, if someone > have seen one? > Or I will write some… > > I'm using Zim to write a novel, it's really a great tool for that, in fact! > > French doesn't support repetition well. It's a common exercise to remove > them. ;-) > > Would it be easy to highlight repetitive words? > > http://www.repetition-detector.com/?p=online > > > I would suggest with first implementing the algorithm and make it report > matches based on a text file, wrapping in a zim plugin and do the > highlighting is then step two. > > > Could you give me what filename is involved in this highlighting process? > Or a keyword to grep. > > Regards, > Sylvain. > > > _______________________________________________ > Mailing list: https://launchpad.net/~zim-wiki > Post to : firstname.lastname@example.org > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~zim-wiki Post to : email@example.com Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp