Re: [Zim-wiki] detection of repetitions highlighter?

2014-04-29 Thread Jaap Karssenberg
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.netwrote:

  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 
 Developmenthttps://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 : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] way slow on Ubuntu

2014-04-29 Thread Jaap Karssenberg
On Thu, Apr 17, 2014 at 11:37 PM, hans...@gmail.com wrote:

 OK, didn't reboot but shutdown Zim, killed Python processes still
 running, then launched from console
 zim --debug

 Here's the output: http://gist.github.com/anonymous/11012787

 Note my .config under ~/ as well as the Zim/python installs are on a
 normal ext3 filesystem, but looking at this reminded me my data folder
 is encrypted with encfs and (once decrypted) sync'd via Dropbox.

 I have tested after killing the Dropbox process, no change.

 Next step - if you guys don't see anything in the gist - will be to
 move the data folder and test again.

 If that is the problem, then suggestions for an alternative
 user-transparent encryption solution that doesn't slow things down
 would be greatly appreciated.

 PS thanks so much to the developer(s) and other contributors for this
 excellent software, finally weaned myself away from Evernote after
 nearly a decade's addiction.


The debug log looks entirely normal, no hints to be found there.

One thing that might be happening is that the index update that is running
after starting zim is having to do a lot of maintenance. When you start
zim, wait a bit until you see a debug message that the index update is done
before trying other stuff. Or you can force an index update by running zim
--index after closing the gui.

THis stuff of course depends on the number of pages, lenght of pages etc.
But unless those numbers are really ridiculously large it should resolve
itself.

If that does not help I would indeed think about the filesystem speed, or
other things that could interact.

Regards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] insert a comment or an annotation about the content of a page

2014-04-29 Thread Jaap Karssenberg
Have a look at this bug report for a similar request:
https://bugs.launchpad.net/zim/+bug/1108760

Haven't tested the proof of concept plugin attached to the report recently,
but might just work.

Regards,

Jaap



On Tue, Apr 22, 2014 at 8:43 AM, Sylvain Viart launch...@ledragon.netwrote:

  Hi,

 I there a trick to insert a comment or an annotation about the content of
 a page?

 Or a way to make a margin or a column may be.
 It could also be a new tab on the left, but one for each page…

 Regards,
 Sylvain.

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] wiki question

2014-04-29 Thread Jaap Karssenberg
Can you explain a bit more? Are you talking about the size of icons in the
attachment browser or something else?

Regards,

Jaap



On Fri, Apr 25, 2014 at 8:39 PM, Travon Hightower 
travonhightow...@gmail.com wrote:

 is there a way to adjust attachment size?

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] insert a comment or an annotation about the content of a page

2014-04-29 Thread Sylvain Viart

Hi,

Le 29/04/2014 22:34, Jaap Karssenberg a écrit :
Have a look at this bug report for a similar request: 
https://bugs.launchpad.net/zim/+bug/1108760



On Tue, Apr 22, 2014 at 8:43 AM, Sylvain Viart launch...@ledragon.net 
mailto:launch...@ledragon.net wrote:


I there a trick to insert a comment or an annotation about the
content of a page?




Great, I gonna test it. :-)

I may have missed it, but which version of zim is necessary for this 
code to work?


Regards,
Sylvain.
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp