Re: [Zim-wiki] Startup- and shutdown-code

2015-02-03 Thread Udo Weik

Hello Jaap,


Sorry, but I don't understand the question. Maybe you can be more specific what 
you want to do ?


mmh, what else can I write?
I want to add some custom code during
- the start of ZIM, e. g. localization settings for the templates (language for 
date, date/time format)
- before ZIM is quit, e. g. for a backup of the notebooks (copy from server to 
the local PC)


Many thanks and greetings
Udo



On Wed, Jan 21, 2015 at 8:03 PM, Udo Weik weikeng...@aol.com 
mailto:weikeng...@aol.com wrote:

Hello,

where/how can I use startup- and shutdown-code. After Zim is started, I want
to change some localization settings (as startup-code) and before exiting 
Zim
I want to save my notebooks (shutdown-code).


Many thanks and greetings
Udo


___
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] Zim for Android

2015-02-03 Thread Karl C. Goedel
Hi Didier,

Sorry for the late reply, I was travelling.

Here some quick installation guidelines:

1) Install Sl4A on your Android device
(http://android-scripting.googlecode.com/files/sl4a_r6.apk). Note, you
need to allow unknown sources first (Setting** - Security)

2) Add the python interpreter within Sl4A (also see
http://www.pythoncentral.io/python-for-android-the-scripting-layer-sl4a/)

3) Optional: If you want a synced notebook via Dropbox, install the free
app Dropsync
(play.google.com/store/apps/details?id=com.ttxapps.dropsync) and choose
to sync the folder where your Notebook is located. In my case, I synced
this folder to /sdcard/sl4a/Dropbox/, but feel free to choose whatever
you like as a path (this is the fullpath variable in Zim4Astarter.py).

4) Copy all the Zim4A files (github.com/kcg/Zim4A) to the same folder
(e.g. /sdcard/sl4a/Dropbox)

5) Copy the starter script Zim4Astarter.py to the script directory of
Sl4A (/sdcard/sl4a/scripts).

6) Change the variable 'fullpath' to the synced folder and change the
variable 'notebook' to the name of your Zim wiki. In my case that's
simply Notes (The notebook folder should be in the fullpath folder,
i.e. /sdcard/sl4a/Dropbox/Notes in my case).

7) Start the script and see if everything works.

8) Optional: Create a script shortcut on your homescreen for easy
accessibility.
(groups.google.com/forum/#!topic/android-scripting/MVkn3aVXYrI)

Good luck and let me know if you run into problems!

Best wishes
Karl



On 30/01/15 19:50, Didier Bretin wrote:
 Hello Karl,

 Le 29/01 11:20, Karl C. Goedel a écrit :
 It was a quick and dirty job and I am not the best programmer, so the
 code looks probably horrible in your eyes.
 But perhaps it is useful for somebody anyway.

 github.com/kcg/Zim4A

 Great job, I would like to see it working on my smartphone.

 Can you give us some hints on how to install it ?

 Regards.

___
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] Is there a way of changing the tag symbol?

2015-02-03 Thread Paul Gouin
Thanks Mariano and JaKub for your answers.
I ended just using the Verbatim option, which does prevent unwanted
linking.
Best,
Paul

2015-01-29 16:07 GMT+01:00 Mariano Draghi mdra...@gmail.com:

 Paul,

 Have you tried to apply the verbatim or literal format to the block of
 text?

 Whenever you need to paste text that shouldn't be parsed by Zim,
 select the text block and press Ctrl-T (or from the menú, Format -
 Verbatim).

 More info here:  http://zim-wiki.org/manual/Help/Wiki_Syntax.html
 (look for the Markup section, and then the notes about the verbatim or
 literal text blocks).

 Hope that helps!


 --
 Mariano


 2015-01-29 8:50 GMT-03:00 Paul Gouin paul.goui...@gmail.com:
  Thanks to all who responded.
 
  Turns out my description of the issue was inaccurate: it is not tags that
  Zim creates automatically but links to new pages.
 
  Below is an example of the kind of text I routinely paste into Zim.
 (These
  are phonemic transcriptions of recordings made for the purpose of
 creating
  text-to-speech synthetic voices; the 1st phrase transcribes and
 guarantees
  of due processes ; the @ signs designates the so-called schwa or
  undifferentiated vowel)
 
  If you're patient enough to try and paste this text for yourselves, maybe
  you'll notice some kind of pattern that escapes me. Links are created on
  most lines but not all; links may extend across whole lines or not.
 
  Disabling the option to Automatically turn file paths into links does
 not
  alter Zim's behavior in this respect.
 
  
  Sample text:
 
  phn/phrase01418.phn:#_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t_-@_|_b_*ei_s_.@_z_|_s_*au_th_|_*uh_v_|_s_*ou_l_#
 
 
  On Tue, Jan 27, 2015 at 10:45 AM,  hans...@gmail.com wrote:
   Yes Twitter will come and go (good riddance) but I hope Zim will be
   around
   for generations.
  
   On Tue, Jan 27, 2015 at 9:01 AM, Marco Cevoli marco.cev...@gmail.com
 
   wrote:
  
   I see. It makes lot of sense.
  
   Marco Cevoli
  
  
   On Tue, Jan 27, 2015 at 2:23 PM, Jaap Karssenberg
   jaap.karssenb...@gmail.com wrote:
Main logic is that # is also used for anchors in HTML links. So
reserved
# for links and decided on @ since this is used for tags in
applications
predating twitter.
   
Regards,
   
Jaap
   
   
On Tue, Jan 27, 2015 at 1:28 PM, Marco Cevoli
marco.cev...@gmail.com
wrote:
   
I know this has been discussed before, but why don't we follow
twitter's standard? All words with @ are for people/users and #
 for
actual tags. I don't know if this unnecessary complicates things,
but
it might be useful to many users. The developer(s) can only change
the
actual @ with # , and this user/contact management (using @) can
be
created as an external plugin, ie, not forcing everyone to use it,
since Zim is designed as a personal organizer.
   
Just brainstorming.
   
Marco Cevoli
Technical translator. Graphic designer. Joiner-of-dots.
   
   
On Tue, Jan 27, 2015 at 11:32 AM, Jaap Karssenberg
jaap.karssenb...@gmail.com wrote:
 On Tue, Jan 27, 2015 at 11:23 AM, Güven, Ugur Murat
 murat.gue...@ts.fujitsu.com wrote:

 Hi,

 Colin:[… ]Ugur Murat wants it and has done coding in related
  areas
  so
  I've been hoping they might do it someday. […]

 I was thinking of having the @ sign for general tags, and the #
 sign
 for
 people tags, as I’m using tags heavily, also
 for tasks to assign to people.

 What I could imagine is to have the tags symbol to be a setting
 in
 preferences, but changing the tag symbol is not that
 easy, as far as I can see.


 This is a bad idea design wise. The wiki syntax parsing should
 not
 depend on
 preferences. Data format should be stable.

 Paul:Each time I paste into Zim a string containing @, it
  handles
 

Re: [Zim-wiki] Zim for Android

2015-02-03 Thread Karl C. Goedel
Hi Jaap,

you are definitely right. That is the way to go.
I don't think there are technical reasons for not using the zim source.
The constraints were more on the programmer's side. ;-)
However, I'll have a look at the zim backend and try to replace the QD
parser.
Thanks.

Best wishes
Karl


On 03/02/15 13:01, Jaap Karssenberg wrote:
 Hi Karl,

 Just wondering, if you use python, why do you implement the parser
 from scratch rather than just copying the library from the zim source?

 To me that would be the quickest way forward, use the existing zim
 code for the backend and wrap with an android specific frontend.

 If there are technical reasons why this is difficult, please let me
 know so I can help to make the backend usuable on android as well.

 Regards,

 Jaap


 On Tue, Feb 3, 2015 at 12:36 PM, Karl C. Goedel m...@karl-goedel.de
 mailto:m...@karl-goedel.de wrote:

 Hi Didier,

 Sorry for the late reply, I was travelling.

 Here some quick installation guidelines:

 1) Install Sl4A on your Android device
 (http://android-scripting.googlecode.com/files/sl4a_r6.apk). Note,
 you need to allow unknown sources first (Setting** - Security)

 2) Add the python interpreter within Sl4A (also see
 http://www.pythoncentral.io/python-for-android-the-scripting-layer-sl4a/)

 3) Optional: If you want a synced notebook via Dropbox, install
 the free app Dropsync
 (play.google.com/store/apps/details?id=com.ttxapps.dropsync
 http://play.google.com/store/apps/details?id=com.ttxapps.dropsync)
 and choose to sync the folder where your Notebook is located. In
 my case, I synced this folder to /sdcard/sl4a/Dropbox/, but feel
 free to choose whatever you like as a path (this is the fullpath
 variable in Zim4Astarter.py).

 4) Copy all the Zim4A files (github.com/kcg/Zim4A
 http://github.com/kcg/Zim4A) to the same folder (e.g.
 /sdcard/sl4a/Dropbox)

 5) Copy the starter script Zim4Astarter.py to the script directory
 of Sl4A (/sdcard/sl4a/scripts).

 6) Change the variable 'fullpath' to the synced folder and change
 the variable 'notebook' to the name of your Zim wiki. In my case
 that's simply Notes (The notebook folder should be in the
 fullpath folder, i.e. /sdcard/sl4a/Dropbox/Notes in my case).

 7) Start the script and see if everything works.

 8) Optional: Create a script shortcut on your homescreen for easy
 accessibility.
 (groups.google.com/forum/#!topic/android-scripting/MVkn3aVXYrI
 http://groups.google.com/forum/#%21topic/android-scripting/MVkn3aVXYrI)

 Good luck and let me know if you run into problems!

 Best wishes
 Karl



 On 30/01/15 19:50, Didier Bretin wrote:
 Hello Karl,

 Le 29/01 11:20, Karl C. Goedel a écrit :
 It was a quick and dirty job and I am not the best programmer,
 so the
 code looks probably horrible in your eyes.
 But perhaps it is useful for somebody anyway.

 github.com/kcg/Zim4A http://github.com/kcg/Zim4A

 Great job, I would like to see it working on my smartphone.

 Can you give us some hints on how to install it ?

 Regards.


 ___
 Mailing list: https://launchpad.net/~zim-wiki
 https://launchpad.net/%7Ezim-wiki
 Post to : zim-wiki@lists.launchpad.net
 mailto:zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 https://launchpad.net/%7Ezim-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] Different background colour for different notebooks?

2015-02-03 Thread Jaap Karssenberg
Ringo,

You are correct, you can not set the background color in the config files.
What you could do is e.g. change the text color of the page headings, or
set a different font (comic sans for personal notes sure would get noticed).

You can not make a setting per notebook, but you can make a setting per
profile. Then you assign the notebooks to these profiles using the
properties dialog.

Hope this helps,

Jaap



On Sun, Feb 1, 2015 at 12:45 PM, Ringo P ringo@erratica.solutions wrote:

 Right. It appears what I'm looking for is a property for TextView in
 style.conf that doesn't exist, or at least is not a 'known property'
 according to this page on the Zim mailing list...

 http://zim-wiki.org/manual/Help/Config_Files.html

 I tried on the off-chance specifying colour here using both 'background'
 and 'bgcolor' tags without any luck. Alternately, it would be possible to
 change background colour in all Zim notebooks using the GTK style options,
 but that isn't much use to me.

 The search continues. Is it worth filing a feature request at this point?


 On 01/02/15 11:13, Ringo P wrote:

 Okay. Second problem solved first with an embarrassingly easy solution,
 the 'profile' spec of a notebook's 'properties' allows me to use a separate
 style.conf for each notebook. Still figuring out background colour. If
 anyone's around to take pity on me that would be appreciated.

 On 01/02/15 10:53, Ringo P wrote:

 Most of what I want to ask is in the subject line. Is it possible to
 change the background colour of a notebook, and is it possible to apply
 different style options to different notebooks on the same profile?

 In (slightly) more depth, my situation is that after five years using a
 single private Zim notebook I've started also using Zim to build a personal
 public website using a separate notebook. I'm spending a fair amount of
 time with both notebooks open, switching between public notes and private
 notes. It would make my life easier if I could set the background of the
 public notebook to (say) a light green and the private notebook to (say) a
 light red.

 As far as I can tell at the moment it seems like it may be possible to
 change the background colour if only I could figure out how. I've noticed
 the distraction free plugin specifies a different background colour with
 the tag bgcolor= and tried using a similar tag under the main page view
 section of preferences.conf but that doesn't work.

 Using a different set of preferences for each notebook seems more
 difficult. Is this currently possible, and if so how? If not, is it
 plausible that it might be implemented in the future and would it be worth
 filing a bug report/feature request?

 Many thanks in advance to anyone who can help point me in the right
 direction, and many thanks in any case to the developers for an awesome
 piece of software.






 --
 RINGO


 ___
 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] Index tree with lines between nodes (Windows 7)

2015-02-03 Thread Jaap Karssenberg
Yes it is, but that is in the gtk theme, not application specific. So you
may want to install another theme to get the rendering you want.

-- Jaap

On Wed, Jan 21, 2015 at 7:56 PM, Udo Weik weikeng...@aol.com wrote:

 Hello,

 is it in any way possible to show a line between the nodes in the index
 tree,
 so that the tree really looks like a tree?


 Many thanks and greetings
 Udo

 ___
 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] Open Notebook different order each time

2015-02-03 Thread Jaap Karssenberg
Sounds like a bug to me - definitely not the intended behavior - could you
report it in the bug tracker ?

Thanks,

Jaap

On Wed, Jan 21, 2015 at 3:37 PM, and...@andis59.se and...@andis59.se
wrote:

 Hello,

 I'm running Zim 0.61 on Windows 7 (32-bit) and every time I use Open
 Notebook the notebooks are in a different order!

 Which often means that I open the wrong one, since I know the one I want
 is the first one. This behavior is hard to break...

 Is there some configuration I have missed or is it a bug/feature?

 // Anders
 --
 English isn't my first language.
 So any error or strangeness is due to the translation.
 Please correct my English so that I may become better.

 ___
 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