Re: [Zim-wiki] Call for translators

2015-10-12 Thread Jigho

  
  
Hello,
  
  I proposed some translations into french. I have same trouble as
  Vlastimil to understand what is expected from lines 452 and
  640
  
  [french=on] Vous pouvez jeter un oeil et corriger ;o) [french=off]
  
  Jigho
  
  
  Le 10/10/2015 16:10, Jaap Karssenberg a écrit :


  

  

  Dear all,

  
  I'm planning to wrap a new release of zim in about 2 weeks
  time.
  

If you want to update translations for your language before
the release please go to: https://translations.launchpad.net/zim

  
  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



  


___
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] Apply the same tag to a selection of tasks

2014-04-13 Thread Jigho

Agus,

you can use the following syntax

TODO: @tag
() task1
() task2

More tips here : http://zim-wiki.org/manual/Plugins/Task_List.html

J.

Le 12/04/2014 19:38, Agustin Lobo a écrit :

Hi!

Is it possible to select a set of tasks and apply the same task (i.e.
shopping) to
all of them so that that tag is shown in the tasks lists?

Thanks

Agus




___
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] task list with no tags

2012-03-23 Thread Jigho

  
  
Hello
all,

in the task list, is there a way to display (filter) tasks which
are not linked to any tag ?

thanks a lot

--
Jigho
  
  


___
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] task list with no tags

2012-03-23 Thread Jigho

Le 23/03/2012 09:51, Jaap Karssenberg a écrit :

On Fri, Mar 23, 2012 at 8:09 AM, Jighoji...@free.fr  wrote:

in the task list, is there a way to display (filter) tasks which are not
linked to any tag ?

Not really, but as a hack try filtering on not @ -- should work
unless you have email addresses in there.

-- Jaap



Seems fair... and works fine !
thanks a lot

--
Jigho

___
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] NoteCase converter

2011-08-28 Thread Jigho

Hi all,

I wrote a converter for NoteCase files (http://www.virtual-sky.com/). 
Not all features are supported but that seems to work with basic 
features, which are those I use.


The Python script is my first one and mainly for my own needs (yes, I'm 
joining the Zim fans !) but other may think it's usefull.


Script is enclosed in this e-mail, along with a sample NoteCase file 
(.ncd).
I could post it to the Wiki 
(http://zim-wiki.org/wiki/doku.php?id=tips_and_tricks) if needed.


Jigho


notecase.ncd
Description: application/notecase-plain
#!/usr/bin/python

# Simple script to convert NoteCase Document to a Zim notebook folder
#
# NoteCase reference: 
#http://notecase.sourceforge.net/  (Free version, discontinued)
#http://www.virtual-sky.com/   (Pro version)
#
# Based on BeautifulSoup (you need to install it before running notecase2zim): 
#http://www.crummy.com/software/BeautifulSoup/
#
# Adapted to my use of NoteCase and Zim = other may want to adapt it
# For instance:
#   Color red in NoteCase = I use italic in Zim
#   Background Color grey in NoteCase = Title 3 in Zim
#
# Usage :
# ---
# 1. Save NoteCase document to .ncd format (plain text, no compression)
# 2. This script assumes the name is notecase.ncd. This can be changed below
# 3. Run: python notecase2zim.py
# 4. Get a Folder named notecase.zim with the main file notebook.zim inside
#
# v1.1
# Jigho 2011
# Contact: https://launchpad.net/~jigho
#

import os
import shutil
import sys
import re
import datetime
sys.path.append('./BeautifulSoup')

from BeautifulSoup import BeautifulSoup

notecasefile = 'notecase.ncd'

def create_file_zim():
# You may change the name and endofline mode here
fileZim = open('notebook.zim', 'w')
fileZim.write('[Notebook]\nname=Notes\nversion=0.4\nendofline=dos')
fileZim.close()

def process_title(titre, date):
# Some titles are plain, but some have information that we do not use in Zim
if (titre.span):
m = titre.span.contents
titre2 = str(m[1])
elif (titre.string):
titre2 = titre.string
else:
m = titre.contents
titre2 = str(m[1])

# Delete white space, / and  in the filename
output1 = str(titre2 + '.txt').replace(' ', '_')
output2 = output1.replace('/', '')
output3 = output2.replace('\', '')
output = unicode(output3, 'utf-8', errors='ignore')

# Some verbose, usefull on large contents
# to be aware that the program is still processing...
print 'Creating file: ', output

fileOut = open(output, 'w')

# Standard information at the start of any Zim file
fileOut.write('Content-Type: text/x-zim-wiki\n')
fileOut.write('Wiki-Format: zim 0.4\n')
fileOut.write('Creation-Date: ' + str(date) + '\n')

fileOut.write('\n== ' + titre2 + ' ==\n')
fileOut.write('\n')

return fileOut

def create_subdir(repertoire):
rep = repertoire.name.replace('.txt', '')
os.mkdir(rep)
os.chdir(rep)

def process_format(c, fichier, formatString):
# for basic formatting tags (underline, bold, italic,...)
# do the core job

newLine = False

# Open Wiki format
fichier.write(formatString)

# Another trick in case of formatted content ends with a newline
# I then prefer to close the formatting tag and then write the
# new line without formatting
if (len(c.contents)  1):
if (c.contents[-2].__class__.__name__ == 'Tag'):
if (c.contents[-2].name == 'br'):
c.contents[-2].extract()
c.contents[-1].extract()
newLine = True

# Process content (recursively !)
process_content(c, fichier, formatString)

# Close Wiki format
fichier.write(formatString)

# End of the trick for content finishing with a newline
if newLine:
fichier.write('\n')

def process_content(contenu, fichier, currentFormat):
# currentFormat is a trick to close the Wiki format at end of each line
# even if the format is applied to multi-lines
# Nota: this trick would need to be be enhanced
#   when multiple formats are nested

for c in contenu:
if (c.__class__.__name__ == 'Tag'):
# dl tag stands for new note, ie new Zim file
if c.name == 'dl':
create_subdir(fichier)
process_page(c)
os.chdir('..')

# br tag stands for new line
# use the currentFormat trick to properly close format tag
# and then reopen it on the the new line
elif c.name == 'br':
fichier.write(currentFormat)
fichier.write('\n')
fichier.write(currentFormat)

# u tag stands for underline
elif c.name == 'u':
process_format(c, fichier, '__')

# b tag stands for bold
elif c.name == 'b':
process_format(c, fichier, '**')

# i tag