Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Script to create TiddlyWiki 5 Tiddlers out of FreeMind .mm files.

License

NotificationsYou must be signed in to change notification settings

michaeljmcd/mm2tiddlywikitext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

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.

Usage

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.

Limitations

Currently, just the map structure is parsed. Icons, edges and font settings are ignored.

Also, general<richcontent> HTML nodes are not handled.

Hacking

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

TODO

  • 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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp