- Notifications
You must be signed in to change notification settings - Fork0
Script to create TiddlyWiki 5 Tiddlers out of FreeMind .mm files.
License
michaeljmcd/mm2tiddlywikitext
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a simple script to create importable TiddlyWiki 5 tiddlers out ofFreeMind XML. The current version generates a tiddler JSON file with each mapconverted to TiddlyWiki 5's wikitext, using a simple outline style.
It is also possible, of course, to export mind maps as SVGs or PNGs andincorporate these directly into a tiddlywiki. Nothing here is of use if youwant to do that - just export the map as the image format of your choice thendrag and drop it onto the running wiki.
The current version offers just an XSLT.
The easiest option is to use it directly from within FreeMind. Go toFile > Export > Using XSLT...
.In the dialog that pops up, provide the path tostylesheet.xslt
and an output location.This will create a TiddlyWiki 5 JSON file that can be imported into TiddlyWiki.
You also can apply it directly with XML Starlet (http://xmlstar.sourceforge.net/) like so:
xmlstarlet tr ./stylesheet.xslt /path/to/map.mm > my.json
I will hopefully be adding a wrapper script soon to simplify matters.
Currently, just the map structure is parsed. Icons, edges and font settings are ignored.
Also, general<richcontent>
HTML nodes are not handled.
Validating JSON before committing is a good idea. Here is a shell statement example:
xmlstarlet tr ./stylesheet.xslt test/JSONCharacters.mm | python -m json.tool
- Add some basic hyperlink support.
- Look at Unicode / emoji stand-ins for icons.
- Develop a wrapper script of some sort to make this more convenient to call.
About
Script to create TiddlyWiki 5 Tiddlers out of FreeMind .mm files.