Re: [Zim-wiki] New Plugin: Text2Tag

2015-08-09 Thread Murat G

Hi,

just released the plugin. You can find it here:
https://github.com/jaap-karssenberg/zim-wiki/wiki/Text2Tags-plugin

Direct link:
https://bugs.launchpad.net/zim/+bug/1482984/+attachment/4441718/+files/Text2Tags.py

Regards,
Murat



__


Dear all,



I’m about to release a new plugin which helps formatting text to tags.



The idea to this plugin was born out of the need that whenever I have a 
meeting with a large number


of participants, it was quite an effort to add all participants as tags 
(people tag) into my meeting notes,


even by using my auto completion plugin ;)



Usually, I open the MS Outlook invitation, switch to scheduling 
assistant and then copy the list of all attendees into the zim page.




Then I get such a list:

Güven, Ugur Murat;Doe, John;Doe, Jane; and many more;



As my people tags have this pattern @LastnameFirstname I was able to do 
a quick hack by using the linesorting plugin


(thanks to Norfcran for the plugin), which worked quite ok.



As you can see, even my full name does not fit into that pattern, as I 
have a middle name ;). In addition, some entries had additional 
information


in brackets next to the name -> Doe, John (Whatever).



Then I thought: ‘What if others have other data, where the delimiter is 
not semicolon?’




Long story short:



· You are able to select the delimiter

· Set the source and the destination pattern

· Set filters to remove anything from the tags

· compare the data with existing tags and select similar 
instead




The current implementation allows this:



Source pattern: %Ln%, %Fn%, %Mn%  (-> free to use any 
delimiter, free to use any text in between %%, pattern needs to reflect 
the source data’s pattern)


Target pattern: %Ln%%Fn%  (-> free 
to use order, free to use any delimiter which Zim allows, text used 
between %% needs to be the same as in source pattern)




As I’m in the final stage, I’d like to know what the pattern of your 
tags look like?


Will this implementation fit to your pattern of tags?



Regards,

Murat










___
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] New Plugin: Text2Tag

2015-08-09 Thread Tomasz Muras
Hi Murat,

Thanks for sharing, I think it will be useful for me for the very same
thing. I've linked to your plugin from
https://github.com/jaap-karssenberg/zim-wiki/wiki/Plugins .

cheers,
Tomek

On 9 August 2015 at 13:39, Murat G  wrote:

> Hi,
>
> just released the plugin. You can find it here:
> https://github.com/jaap-karssenberg/zim-wiki/wiki/Text2Tags-plugin
>
> Direct link:
>
> https://bugs.launchpad.net/zim/+bug/1482984/+attachment/4441718/+files/Text2Tags.py
>
> Regards,
> Murat
>
>
>
> __
>
>
> Dear all,
>
>
>
> I’m about to release a new plugin which helps formatting text to tags.
>
>
>
> The idea to this plugin was born out of the need that whenever I have a
> meeting with a large number
>
> of participants, it was quite an effort to add all participants as tags
> (people tag) into my meeting notes,
>
> even by using my auto completion plugin ;)
>
>
>
> Usually, I open the MS Outlook invitation, switch to scheduling assistant
> and then copy the list of all attendees into the zim page.
>
>
>
> Then I get such a list:
>
> Güven, Ugur Murat;Doe, John;Doe, Jane; and many more;
>
>
>
> As my people tags have this pattern @LastnameFirstname I was able to do a
> quick hack by using the linesorting plugin
>
> (thanks to Norfcran for the plugin), which worked quite ok.
>
>
>
> As you can see, even my full name does not fit into that pattern, as I
> have a middle name ;). In addition, some entries had additional information
>
> in brackets next to the name -> Doe, John (Whatever).
>
>
>
> Then I thought: ‘What if others have other data, where the delimiter is
> not semicolon?’
>
>
>
> Long story short:
>
>
>
> · You are able to select the delimiter
>
> · Set the source and the destination pattern
>
> · Set filters to remove anything from the tags
>
> · compare the data with existing tags and select similar instead
>
>
>
> The current implementation allows this:
>
>
>
> Source pattern: %Ln%, %Fn%, %Mn%  (-> free to use any
> delimiter, free to use any text in between %%, pattern needs to reflect the
> source data’s pattern)
>
> Target pattern: %Ln%%Fn%  (-> free to
> use order, free to use any delimiter which Zim allows, text used between %%
> needs to be the same as in source pattern)
>
>
>
> As I’m in the final stage, I’d like to know what the pattern of your tags
> look like?
>
> Will this implementation fit to your pattern of tags?
>
>
>
> Regards,
>
> Murat
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> 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


[Zim-wiki] Where I install ditaa plugin ?

2015-08-09 Thread Mario Daniel Carugno
Hi there

I'm running Zim on Windows, and want to try the ditaa plugin.
I've downloaded ditaa, which is just a jar file
But I don't know where to copy it in order to be recognized by Zim
First I've put it in the same directory where the book is.
Then I've copied it in a directory in the path variable
Nothing worked.
So, where is the right location for plugins ?

Thanks
___
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


[Zim-wiki] Source View plugin locks up page view frame on Linux Mint 17.1 XFCE

2015-08-09 Thread snarf
Source View plugin isn't working for me. I'm using Linux Mint 17.1 XFCE
with Zim 0.63.

To reproduce the problem I enabled the Source View plugin and created an
empty notebook in ~/Temp/zim-test . I placed this on the home page (not
indented):

{{{code: lang="c" linenumbers="True"
/* This is a C code block */
}}}

Navigating to a new page and back or Edit -> Reload just crashes the
page view so that I can't move the cursor and edit the page, and it
looks like this:

http://i.imgur.com/N7HoHV2.png

When I start Zim with '--debug', I get this:

zim --standalone --debug `readlink -f notebook.zim` 2>~/Temp/zim.log
result: http://dpaste.com/1GJPEXP

I'm not sure if this is relevant, but one of the lines in the log file
is

DEBUG: Insert object(, )
/usr/lib/pymodules/python2.7/zim/gui/widgets.py:188: GtkWarning:
gtk_scrolled_window_add(): cannot add non scrollable widget use
gtk_scrolled_window_add_with_viewport() instead window.add(widget)

Have I found a bug, or is there something I can do to fix this?

The example above is the simplest procedure for me to reproduce the
problem. In fact it happens just the same in a full notebook if I paste
in something non-trivial in a "Code Block" using the Source View plugin.

I can't reproduce this problem in Windows.

Brendan Kidwell

___
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