Re: [Zim-wiki] New Plugin: Text2Tag

2015-08-10 Thread Murat G

Hi Tomek,

thank you for your feedback and for linking to the plugin.

I updated the plugin.

# V0.55: Added wildcard into filter, so <*> or (*) can be filtered out 
including text within brackets.

Also something like *@ or @* works.
Regards,
Murat



-- Originalnachricht --
Von: "Tomasz Muras" 
An: "Murat G" 
Cc: "zim-wiki@lists.launchpad.net" 
Gesendet: 09.08.2015 22:38:50
Betreff: Re: [Zim-wiki] New Plugin: Text2Tag


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


Re: [Zim-wiki] Where I install ditaa plugin ?

2015-08-10 Thread Mario Daniel Carugno
Thanks, it worked !

I don't know what you mean by
 I suggest to extract the content of the zipfile rather to c:\tools\ditaa
then into Program Files….

I've just copied ditaa to c:\tools (doing nothing in Program Files), and
followed the remaining steps.
Now ditaa plugin is 'checkable'

Thanks !!!

2015-08-10 8:40 GMT-03:00 Güven, Ugur Murat :

> Hi,
>
>
>
> this is indeed a bit confusing.
>
>
>
> 1.   to get Ditaa to work, you need to download ditaa from here first:
> http://sourceforge.net/projects/ditaa/
> à I suggest to extract the content of the zipfile rather to
> c:\tools\ditaa then into Program Files….
>
> 2.   You need to install Java for Windows (which you probably already
> have)
>
> 3.   As you are using the portable Zim version, Dita seems not be
> activatable in the plugins menu, even if you add c:\tools\ditaa into PATH
>
> You can’t find the ditaaeditor.py file within the portable zim version, as
> it is only available in the source packages.
>
> 4.   I attached the ditaeditor.py file, already changed the dotcmd
> entry pointing to c:\tools\ditaa
>
> 5.   Save this file into %appdata% \zim\data\zim\plugins\
>
> 6.   Activate in plugins within Zim
>
> 7.   Start from Insert menu
>
>
>
> Regards,
>
> Murat
>
>
>
>
>
>
>
>
>
> *From:* Mario Daniel Carugno [mailto:carug...@gmail.com]
> *Sent:* Montag, 10. August 2015 13:06
> *To:* krisztianmu...@mukli.hu
> *Cc:* Güven, Ugur Murat; Zim
> *Subject:* Re: [Zim-wiki] Where I install ditaa plugin ?
>
>
>
> I don't have any 'ditaeditor.py' file ...
>
> I'm using a portable zim desktop, but I think it should be the same, right
> ?
>
>
>
> In some manual page says that plugins should be copied to python's
> site-package folder
>
>
>
> *If a plugin is distributed as a separate python module, it should be
> installed*
>
> *such that zim can find it. For use specific plugins you can install them*
>
> *Python's "per user site-package directory".*
>
>
>
> *For example for python 2.6 this folder is:*
>
> *Unix (including Mac OS X): ''~/.local/lib/python2.6/site-packages''*
>
> *Windows: ''%APPDATA%/Python/Python26/site-packages'*
>
>
>
> So, do I need to have Python installed for running plugins ?
>
> It's confusing so far ...
>
>
>
> 2015-08-10 5:19 GMT-03:00 Mukli Krisztián :
>
> Hi, I use this method:
>
> 1. Copy ditaa somewhere (e.g. *C:\Program Files (x86)\Ditaa) *and add
> that directory to the PATH
>
> 2. Edit *C:\Program Files (x86)\Zim Desktop
> Wiki\zim\plugins\ditaaeditor.py *file in a text-editor (notepad, for
> example)*:*
>
> Find an comment (or delete) next line (somewhere in the top of the file):
>
> dotcmd = ('ditaa')
>
> replace it or add to the next line:
>
> dotcmd = ('java -jar "C:\\Program Files (x86)\\Ditaa\\ditaa0_9.jar"')
>
> 3. That's it, restart Zim and check Ditaa-plugin.
>
>
>
> Best regards
>
> *Mukli Krisztián*
>
> On Mon, 10 Aug 2015 09:57:21 +0200, Güven, Ugur Murat <
> murat.gue...@ts.fujitsu.com> wrote:
>
> Hi,
>
>
>
> %appdata% then \zim\data\zim\plugins
>
>
>
> If the directories do not exist, you need to create them.
>
>
>
> I think, I will build a little plugin which helps importing plugins…
>
>
>
> Regards,
>
> Murat
>
>
>
>
>
> *From:* Zim-wiki [mailto:zim-wiki-bounces+murat.gueven=
> ts.fujitsu@lists.launchpad.net] *On Behalf Of *Mario Daniel Carugno
> *Sent:* Montag, 10. August 2015 01:45
> *To:* Zim
> *Subject:* [Zim-wiki] Where I install ditaa plugin ?
>
>
>
> 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
>
> --
>
> *Mukli Krisztián*
>
> *tel: +3631 313 2094*
> *mail: krisztianmu...@mukli.hu *
> *web: www.mukli.hu *
>
>
>
___
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] Where I install ditaa plugin ?

2015-08-10 Thread Güven , Ugur Murat
Hi,

this is indeed a bit confusing.


1.   to get Ditaa to work, you need to download ditaa from here first:
http://sourceforge.net/projects/ditaa/
--> I suggest to extract the content of the zipfile rather to c:\tools\ditaa 
then into Program Files….

2.   You need to install Java for Windows (which you probably already have)

3.   As you are using the portable Zim version, Dita seems not be 
activatable in the plugins menu, even if you add c:\tools\ditaa into PATH

You can’t find the ditaaeditor.py file within the portable zim version, as it 
is only available in the source packages.

4.   I attached the ditaeditor.py file, already changed the dotcmd entry 
pointing to c:\tools\ditaa

5.   Save this file into %appdata% \zim\data\zim\plugins\

6.   Activate in plugins within Zim

7.   Start from Insert menu

Regards,
Murat




From: Mario Daniel Carugno [mailto:carug...@gmail.com]
Sent: Montag, 10. August 2015 13:06
To: krisztianmu...@mukli.hu
Cc: Güven, Ugur Murat; Zim
Subject: Re: [Zim-wiki] Where I install ditaa plugin ?

I don't have any 'ditaeditor.py' file ...
I'm using a portable zim desktop, but I think it should be the same, right ?

In some manual page says that plugins should be copied to python's site-package 
folder

If a plugin is distributed as a separate python module, it should be installed
such that zim can find it. For use specific plugins you can install them
Python's "per user site-package directory".

For example for python 2.6 this folder is:
Unix (including Mac OS X): ''~/.local/lib/python2.6/site-packages''
Windows: ''%APPDATA%/Python/Python26/site-packages'

So, do I need to have Python installed for running plugins ?
It's confusing so far ...

2015-08-10 5:19 GMT-03:00 Mukli Krisztián 
mailto:krisztianmu...@mukli.hu>>:

Hi, I use this method:

1. Copy ditaa somewhere (e.g. C:\Program Files (x86)\Ditaa) and add that 
directory to the PATH

2. Edit C:\Program Files (x86)\Zim Desktop Wiki\zim\plugins\ditaaeditor.py file 
in a text-editor (notepad, for example):

Find an comment (or delete) next line (somewhere in the top of the file):

dotcmd = ('ditaa')

replace it or add to the next line:

dotcmd = ('java -jar "C:\\Program Files 
(x86)\\Ditaa\\ditaa0_9.jar"')

3. That's it, restart Zim and check Ditaa-plugin.



Best regards

Mukli Krisztián

On Mon, 10 Aug 2015 09:57:21 +0200, Güven, Ugur Murat 
mailto:murat.gue...@ts.fujitsu.com>> wrote:
Hi,

%appdata% then \zim\data\zim\plugins

If the directories do not exist, you need to create them.

I think, I will build a little plugin which helps importing plugins…

Regards,
Murat


From: Zim-wiki 
[mailto:zim-wiki-bounces+murat.gueven=ts.fujitsu@lists.launchpad.net]
 On Behalf Of Mario Daniel Carugno
Sent: Montag, 10. August 2015 01:45
To: Zim
Subject: [Zim-wiki] Where I install ditaa plugin ?

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

Mukli Krisztián

tel: +3631 313 2094
mail: krisztianmu...@mukli.hu
web: www.mukli.hu



ditaaeditor.py
Description: ditaaeditor.py
___
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] Where I install ditaa plugin ?

2015-08-10 Thread Mukli Krisztián


I see, compiled version doesn't contain this file... Maybe it
compiled to binary format. You may use Zim from source, here is a
step-by-step description for previous version (it works for actual
version too): https://lists.launchpad.net/zim-wiki/msg03080.html [1]


On Mon, 10 Aug 2015 08:05:36 -0300, Mario Daniel Carugno  wrote:  
I
don't have any 'ditaeditor.py' file ... 
I'm using a portable zim
desktop, but I think it should be the same, right ? 

In some manual
page says that plugins should be copied to python's site-package folder


IF A PLUGIN IS DISTRIBUTED AS A SEPARATE PYTHON MODULE, IT SHOULD BE
INSTALLED 
SUCH THAT ZIM CAN FIND IT. FOR USE SPECIFIC PLUGINS YOU CAN
INSTALL THEM 
PYTHON'S "PER USER SITE-PACKAGE DIRECTORY". 

FOR EXAMPLE
FOR PYTHON 2.6 THIS FOLDER IS: 
UNIX (INCLUDING MAC OS X):
''~/.LOCAL/LIB/PYTHON2.6/SITE-PACKAGES'' 
WINDOWS:
''%APPDATA%/PYTHON/PYTHON26/SITE-PACKAGES'  

So, do I need to have
Python installed for running plugins ? 
It's confusing so far ... 


2015-08-10 5:19 GMT-03:00 Mukli Krisztián :

Hi, I use this method: 


1. Copy ditaa somewhere (e.g. _C:Program Files (x86)Ditaa) _and add
that directory to the PATH 

2. Edit _C:Program Files (x86)Zim Desktop
Wikizimpluginsditaaeditor.py _file in a text-editor (notepad, for
example)_:_ 

Find an comment (or delete) next line (somewhere in the
top of the file): 

dotcmd = ('ditaa') 

replace it or add to the next
line: 

dotcmd = ('java -jar "C:\Program Files
(x86)\Ditaa\ditaa0_9.jar"') 

3. That's it, restart Zim and check
Ditaa-plugin. 

Best regards 

MUKLI KRISZTIÁN  

On Mon, 10 Aug 2015
09:57:21 +0200, Güven, Ugur Murat  wrote:  

Hi, 

%appdata% then
zimdatazimplugins 

If the directories do not exist, you need to create
them. 

I think, I will build a little plugin which helps importing
plugins… 

Regards, 

Murat 

FROM: Zim-wiki
[mailto:zim-wiki-bounces+murat.gueven
[4]=ts.fujitsu@lists.launchpad.net [5]] ON BEHALF OF Mario Daniel
Carugno
SENT: Montag, 10. August 2015 01:45
TO: Zim
SUBJECT: [Zim-wiki]
Where I install ditaa plugin ? 

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

MUKLI KRISZTIÁN

_tel: +3631 313 2094_
_mail:
krisztianmu...@mukli.hu [6]_
_web: www.mukli.hu [7]_  
-- 

MUKLI
KRISZTIÁN

 _tel: +3631 313 2094_
 _mail: krisztianmu...@mukli.hu [8]_

_web: www.mukli.hu [9]_ 

Links:
--
[1]
https://lists.launchpad.net/zim-wiki/msg03080.html
[2]
mailto:krisztianmu...@mukli.hu
[3]
mailto:murat.gue...@ts.fujitsu.com
[4]
mailto:zim-wiki-bounces%2Bmurat.gueven
[5]
mailto:ts.fujitsu@lists.launchpad.net
[6]
mailto:krisztianmu...@mukli.hu
[7] http://www.mukli.hu
[8]
mailto:krisztianmu...@mukli.hu
[9] http://www.mukli.hu
___
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] Where I install ditaa plugin ?

2015-08-10 Thread Mario Daniel Carugno
I don't have any 'ditaeditor.py' file ...
I'm using a portable zim desktop, but I think it should be the same, right ?

In some manual page says that plugins should be copied to python's
site-package folder

*If a plugin is distributed as a separate python module, it should be
installed*
*such that zim can find it. For use specific plugins you can install them*
*Python's "per user site-package directory".*

*For example for python 2.6 this folder is:*
*Unix (including Mac OS X): ''~/.local/lib/python2.6/site-packages''*
*Windows: ''%APPDATA%/Python/Python26/site-packages'*

So, do I need to have Python installed for running plugins ?
It's confusing so far ...

2015-08-10 5:19 GMT-03:00 Mukli Krisztián :

> Hi, I use this method:
>
> 1. Copy ditaa somewhere (e.g. *C:\Program Files (x86)\Ditaa) *and add
> that directory to the PATH
>
> 2. Edit *C:\Program Files (x86)\Zim Desktop
> Wiki\zim\plugins\ditaaeditor.py *file in a text-editor (notepad, for
> example)*:*
>
> Find an comment (or delete) next line (somewhere in the top of the file):
>
> dotcmd = ('ditaa')
>
> replace it or add to the next line:
>
> dotcmd = ('java -jar "C:\\Program Files (x86)\\Ditaa\\ditaa0_9.jar"')
>
> 3. That's it, restart Zim and check Ditaa-plugin.
>
>
>
> Best regards
>
> *Mukli Krisztián*
>
> On Mon, 10 Aug 2015 09:57:21 +0200, Güven, Ugur Murat <
> murat.gue...@ts.fujitsu.com> wrote:
>
> Hi,
>
>
>
> %appdata% then \zim\data\zim\plugins
>
>
>
> If the directories do not exist, you need to create them.
>
>
>
> I think, I will build a little plugin which helps importing plugins…
>
>
>
> Regards,
>
> Murat
>
>
>
>
>
> *From:* Zim-wiki [mailto:zim-wiki-bounces+murat.gueven=
> ts.fujitsu@lists.launchpad.net] *On Behalf Of *Mario Daniel Carugno
> *Sent:* Montag, 10. August 2015 01:45
> *To:* Zim
> *Subject:* [Zim-wiki] Where I install ditaa plugin ?
>
>
>
> 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
>
> --
>
> *Mukli Krisztián*
>
> *tel: +3631 313 2094*
> *mail: krisztianmu...@mukli.hu *
> *web: www.mukli.hu *
>
___
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] Where I install ditaa plugin ?

2015-08-10 Thread Mukli Krisztián


Hi, I use this method: 

1. Copy ditaa somewhere (e.g. _C:Program
Files (x86)Ditaa) _and add that directory to the PATH 

2. Edit
_C:Program Files (x86)Zim Desktop Wikizimpluginsditaaeditor.py _file in
a text-editor (notepad, for example)_:_ 

Find an comment (or delete)
next line (somewhere in the top of the file): 

dotcmd = ('ditaa')


replace it or add to the next line: 

dotcmd = ('java -jar "C:\Program
Files (x86)\Ditaa\ditaa0_9.jar"') 

3. That's it, restart Zim and check
Ditaa-plugin. 

Best regards 

MUKLI KRISZTIÁN 

On Mon, 10 Aug 2015
09:57:21 +0200, Güven, Ugur Murat  wrote:  

Hi, 

%appdata% then
zimdatazimplugins 

If the directories do not exist, you need to create
them. 

I think, I will build a little plugin which helps importing
plugins… 

Regards, 

Murat 

FROM: Zim-wiki
[mailto:zim-wiki-bounces+murat.gueven=ts.fujitsu@lists.launchpad.net]
ON BEHALF OF Mario Daniel Carugno
SENT: Montag, 10. August 2015
01:45
TO: Zim
SUBJECT: [Zim-wiki] Where I install ditaa plugin ? 

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

MUKLI KRISZTIÁN

 _tel:
+3631 313 2094_
 _mail: krisztianmu...@mukli.hu [1]_
 _web: www.mukli.hu
[2]_ 

Links:
--
[1] mailto:krisztianmu...@mukli.hu
[2]
http://www.mukli.hu
___
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] Where I install ditaa plugin ?

2015-08-10 Thread Güven , Ugur Murat
Hi,

%appdata% then \zim\data\zim\plugins

If the directories do not exist, you need to create them.

I think, I will build a little plugin which helps importing plugins…

Regards,
Murat


From: Zim-wiki 
[mailto:zim-wiki-bounces+murat.gueven=ts.fujitsu@lists.launchpad.net] On 
Behalf Of Mario Daniel Carugno
Sent: Montag, 10. August 2015 01:45
To: Zim
Subject: [Zim-wiki] Where I install ditaa plugin ?

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