[Zim-wiki] dokuwiki
Hello, is there an easy way to import all my zim directory into dokuwiki? i'm trying to do that but it doesnt works thanks for your help -- Pascal ___ 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] about todo list
Hello, is there a way to add alarm notification for the todo list and is it possible to modify the Check Boxes state once the task is done ? thanks -- Pascal ___ 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] undefined folder
Hello i've got a question about zim wiki. since a while, i've got in the zim directory an "undefined" folder and a "sgz" file inside it ? this folder doesnt apper in zim wiki. could you tell me what is this folder ? thanks -- This message was sent from Launchpad by Pascal (https://launchpad.net/~pascal-legrand) using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ 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] some questions
hello, i'm a new happy zim user and i've got some questions : i'm actually using the 0.48 version is there a way to customize the way that web server give html page (css, template )? i've got some problem to use hot keys i've got to hit "ctrl + shift + 1" to get title 1 instead of "ctrl +1" do you know wich version of zim will be included in debian squeeze thanks -- This message was sent from Launchpad by Pascal (https://launchpad.net/~pascal-legrand) using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ 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] import softnotes data to zim
Hello, i'm using for a long time an application named softnotes, i would like very much use zim now, but i dont know how to do that. I'm not a programmer and dont see how to import data from softnotes to zim. The best would be a script wich make conversion but i dont know how to do that. I made a screen capture of softnotes and the xml file associated http://plegrand1.free.fr/softnote.png http://plegrand1.free.fr/softnote.xml I think the first step is to convert each rtf note in a zim format, and after to import all the notes in zim with the same arborescence. Does somebody could help me to give some indication to realise this conversion script ? Thanks for your answers -- This message was sent from Launchpad by Pascal (https://launchpad.net/~pascal-legrand) using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ 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] A plugin to reuse text snippets (first release)
Hi, I don't know if this is the correct place to announce and post a new plugin... but here is mine. The "Insert snippet" plugin adds a new menu entry "Insert/Text from page..." which shows a dialog box where you can enter some page path. Then, its content is added to the current edited page. Current options are : - remove title (from inserted text) - increase header level (h1 goes h2, etc) - insert backlink to source (above and/or under the inserted text) - show full namespace (by default, only the basename will be shown) - add some prefix before backlink (something like "**source : **") It has been tested on zim 0.49 (Ubuntu) I hope this can be useful. PS : - I can provide french gettext messages for translation - you're welcome to fix incorrect english words in the plugin... Best regards, Pascal Le 03/01/2011 18:44, Jaap Karssenberg a écrit : On Mon, Jan 3, 2011 at 6:01 PM, Pascollin wrote: I would like a plugin to reuse text snippets from some other pages. Example : I create a page "my text templates" and set this as snippets root in the plugin preferences. I tried to create such a plugin, but I didn't find how to add zim formatted text to the current insert point (textview/textbuffer). Could you give me some advice ? To insert formatted text you need to parse the text first in order to get a "parse tree", then you can use the "insert_parsetree_at_cursor" method. You can get a parsetree for a page with "get_parsetree" or use the parser for the specific format (default wiki format most likely). To parse a piece of text and insert it in the current page the plugin would need to do the following ("self" being the plugin object and "text" the snippet): import zim.formats format = zim.formats.get_format('wiki') parser = format.Parser() parsetree = parser.parse(text) buffer = self.ui.mainwindow.pageview.view.get_buffer() buffer.insert_parsetree_at_cursor(parsetree) <<<<< Hope this helps, Jaap # -*- coding: utf-8 -*- # Copyright 2010 Pascal Collin import gtk import logging from zim.plugins import PluginClass from zim.gui.widgets import Dialog, ErrorDialog, Button, PageEntry from zim.config import config_file from zim.notebook import Path from zim.formats.wiki import Parser logger = logging.getLogger('zim.plugins.insertsnippet') ui_xml = ''' ''' ui_actions = ( # name, stock id, label, accelerator, tooltip, readonly ('insert_snippet', None, _('Text From _Page...'), None, '', False), # T: menu item ) class SnippetPlugin(PluginClass): plugin_info = { 'name': _('Insert Snippet'), # T: plugin name 'description': _('''This plugin adds the 'Insert text from page' dialog and allows reusing text from some other page.'''), # T: plugin description 'author': 'Pascal Collin', 'help': 'Plugins:Insert Snippet', } plugin_preferences = ( ('remove_title', 'bool', _('Remove title'), False), ('increase header', 'bool', _('increase header levels'), False), ('prelink_source', 'bool', _('insert source link before text'), False), ('postlink_source', 'bool', _('append source link after text'), False), ('show_namespace','bool',_('links show namespace'),False), ('link_prefix','string',_('link prefix'), '** source ** :'), ) def initialize_ui(self, ui): if self.ui.ui_type == 'gtk': self.ui.add_actions(ui_actions, self) self.ui.add_ui(ui_xml, self) def finalize_ui(self, ui): if self.ui.ui_type == 'gtk': self.pageview = self.ui.mainwindow.pageview def disconnect(self): if self.ui.ui_type == 'gtk': self.pageview.view.disconnect(self._signal_id) PluginClass.disconnect(self) def insert_snippet(self): InsertSnippetDialog(self.ui, self.preferences).run() class InsertSnippetDialog(Dialog): def __init__(self, ui, preferences): Dialog.__init__(self, ui, _('Insert Text From Page')) self.buffer = self.ui.mainwindow.pageview.view.get_buffer() hbox = gtk.HBox(spacing = 4) hbox.pack_start(gtk.Label(str = '%s :' % (_('Page'),)), False) self.entry = PageEntry(ui.notebook, path_context = ui.get_path_context()) self.entry.set_activates_default(True) hbox.pack_start(self.entry, True) self.vbox.pack_start(hbox, False) self.preferences = preferences def do_response_ok(self): def insert_link(breakline=0): self.buffer.insert_at_cursor('\r\n') if breakline == -1 else None self.buffer.insert_parsetree_at_cursor(Parser().parse(self.preferences[
Re: [Zim-wiki] A plugin to reuse text snippets
I will try this way. Many thanks ! Pascal Le 03/01/2011 18:44, Jaap Karssenberg a écrit : On Mon, Jan 3, 2011 at 6:01 PM, Pascollin wrote: I would like a plugin to reuse text snippets from some other pages. Example : I create a page "my text templates" and set this as snippets root in the plugin preferences. I tried to create such a plugin, but I didn't find how to add zim formatted text to the current insert point (textview/textbuffer). Could you give me some advice ? To insert formatted text you need to parse the text first in order to get a "parse tree", then you can use the "insert_parsetree_at_cursor" method. You can get a parsetree for a page with "get_parsetree" or use the parser for the specific format (default wiki format most likely). To parse a piece of text and insert it in the current page the plugin would need to do the following ("self" being the plugin object and "text" the snippet): import zim.formats format = zim.formats.get_format('wiki') parser = format.Parser() parsetree = parser.parse(text) buffer = self.ui.mainwindow.pageview.view.get_buffer() buffer.insert_parsetree_at_cursor(parsetree) <<<<< Hope this helps, 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] softnote2005 to zim
> Your best bet is to go over the page and look for errors after pasting > it. If you have the skills, you could try your hand at writing a filter > to convert SoftNote2005's data file format to Zim's. Hello could you explain how see the error after pasting some rich text ? i cant see on zim where to see that thanks -- --- Pascal --- ___ 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] softnote2005 to zim
hello, i'd like to import data from a windows soft called "softnote2005" (http://softchris.free.fr/ZenAlbum/index.php?view=articles&rubriquearticle=1&article=6) to zim. The only way i found is to copy paste each note from softnote2005 to zim. My problem is that some characters are bold or underligned. Is there a way to keep bold and underligned during copy / paste ? sorry for my poor english and thanks for your answer -- --- Pascal --- ___ 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