tools for dealing with tomboy/gnote notes, either via dbus or directly on the XML (*.note) files
to export all notes to a set of web pages:
- create a new directory and cd to it
- run notewiki.py -m export -s note-html.xsl. it will connect to your tomboy or gnote notes via dbus and save them all as XML files in the current directory, named according to their titles and including a reference to the note-html.xsl XSLT stylesheet.
- put the note-html.xsl file in the same directory.
- now open either the folder or one of the XML files (perhaps your 'Start Here' note or the generated exportIndex.xml file) in a web browser.
in gnote 0.8.3 i have trouble with note titles which contain spaces and start with the name of another note - the automatic links get messed up.
also gnote sometimes convinces itself that a link is broken when it isn't.
also text in old notes doesn't automatically link to new notes.
to fix all these things:
- run notewiki.py -m overwrite.
- the note metadata could use some love - see comments in XSLT
- notebooks
- indents and tabs
- plugins - things like bugzilla links and 'what links here'
- check this works on Windows.
- turn this "to do" list into github "Issues" ;-)
- alternative CSS styles?
there's a note-to-html stylesheet in the Tomboy source but it doesn't appear to work in a browser. i think it's a namespaces issue. might be worth just adding namespaces to it - perhaps we can make a version which works here AND in the app.
Tomboy appears to have a "--addin:html-export-all-quit [path]" option but that seems to be missing in gnote. I think i prefer the XSL reference approach but could be persuaded.
notewiki.py uses the etreeEditor class from pycontent.