Alas I only get to play on the weekends, and this full write up isn’t going to
be done for at least a month, so figured I’d post the pre-bits to all y’all,
as most of you are programmer enough to read dev notes and understand them
well enough...
As Kate said, “Zim, I like it so far.” It does output almost clean HTML code,
but it’s definitely not a complete solution for writing a local web page and
being able to ‘rip the body guts out’ and paste it into a CMS Body box for
publishing. That said, it’s the best I’ve ever seen, so I’m using it.
## Random Notes
Zim is really cool. The set of Plugins available is extensive. Do go though
the whole list with the help file open in a separate window. Make sure to
configure the ones that can be config’ed!
Templates: HTML export templates exist that can be customized
Crashes a lot, auto saves every 10 seconds by default.
Copy/Paste of links doesn’t always work.
Link creator is lacking and does stuff you didn’t ask it to.
Spellchecker right click menu is in Spanish(?). Spell checker isn’t great,
but works well enough.
Has an insanely cool Table of Contents plugin, but it does not HTML export the
ToC! Q@$%#$%!!!
# # #
Work flow I’ve found that seems to work.
- Write your HTML page in Zim
- Export HTML to see final product in browser(s) [1]
- Once finished with HTML use Notetab Pro, or your equivalent post processor,
to run though your ToC generation*, cleanup, and fix-it scripts.
- Use Quanta Plus, Kate, whatever, to get CSS to your liking.
* If anyone asks I’ll post what I end up with that creates a ToC from H
attributes.
Best,
Michael
[1] Script to help with Exporting to HTML.
michael@local [~/bin]# cat zimexport.sh
#!/bin/bash
#
# Zim export to HTML the default 'Notes' Notebook.
# Change paths as needed to customize.
#
# Add to Zim Custom tools for one click icon in the Zim toolbar:
# Zim -> Tools -> Custom tools
# Click 'green plus' icon
# Name: Export Notes
# Description: Export to HTML the default Notes
# Command: ~/bin/zimexport.sh
# Icon:
# /usr/share/icons/Humanity/actions/48/document-export.svg
# /usr/share/icons/oxygen/48x48/actions/document-export.png
# Show in toolbar: Checked.
#
# Notes:
# 'Command:' needs the full path.
# HTML templates are in /usr/share/zim/templates/html/
# Icons are in: /usr/share/icons
#
# One off script, possibly has bugs, use at your own risk.
#
# You will need {nothing}:
# yum install {nothing}
# apt-get install {nothing}
# (whatever you use to install it)
#
# Script=zimexport.sh
# Author=Michael
# Email=staff_scripts at the commercial domain inet-design
#
Website=http://www.inet-design.com/
# License=GPL
# Script
repository=http://inet-design.com/tags/scripts
# # # #
zimNotebook="~/Notebooks/Notes"
HTMLOutput="~/Notebooks/html"
if [ ! -d "$HTMLOutput" ] ; then
mkdir -p "$HTMLOutput"
fi
zim --export --overwrite --output="$HTMLOutput" --format=html
--template="Default.html" "$zimNotebook"