#78 Export MindMap to DOT

open
5
2015-04-13
2007-08-31
Anonymous
No

DOT is used within graphviz to generate charts and diagrams (from an ascii dot file).

Graphviz is often used inside wikis e.g. Trac as a plugin, so I tried to generate a Dot from a MM.

(the result is the first draft, but seems to work)

Known Problems:
- Nodes SHOULD have short Text
('cause long text will rip up the graphviz image)
- Colors (currenlty only very few used)
- Edge width, only thin = dashed, regular=solid, width>1, bold
- Arrowlinks are dotted lines

Hav phun with it.

PS: Could someone create a think like ExportWithXSLT, for IMPORTING? Then I can easy add xsl file to accessories and a xml to Plugins to generate new Imports.
(like now I did with export)
--
dh1jc Jochen (Joschi)

PS2: I've added a german and english xml. Anyone knows how to use "own" properties inside those xml (without adding them to the freemind props)

Discussion

  • Nobody/Anonymous

    MindMap2Dot Exporter

     
  • Nobody/Anonymous

    Logged In: NO

    Also node Links can be used. (I currenlty can't change the file..., and lost my login somewhere...)

    *** accessories/mm2dot.xsl Fri Aug 31 11:00:34 2007
    --- mm2dot.xsl Fri Aug 31 10:06:24 2007
    ***************
    *** 25,33 ****
    <xsl:call-template name="getcolor">
    <xsl:with-param name="col" select="@COLOR"/>
    </xsl:call-template>
    - <xsl:if test="string-length(@LINK)&gt;0">
    - <xsl:text>,URL=&quot;</xsl:text><xsl:value-of select="@LINK"/><xsl:text>&quot;</xsl:text>
    - </xsl:if>
    <xsl:text>];
    </xsl:text>
    <xsl:for-each select="node">
    --- 25,30 ----

    --
    Jochen

     
  • Eric L.

    Eric L. - 2007-11-21
    • assigned_to: nobody --> christianfoltin
     
  • Yury V. Zaytsev

    Yury V. Zaytsev - 2010-03-17

    Unfortunately this plugin does not pick up "long" nodes text which is stored within the <richcontent TYPE="NODE"> tags, only the TEXT attribute of the nodes. Could you please fix this issue? I am extensively using long nodes and what I get on export is just a bunch of empty bubbles.

     
  • Joschi

    Joschi - 2010-03-17

    Sure... uhm where can I drop the new xsl - file?
    As far as I know I can't add anoher file to a ticket...

    Short note: uhm long texts in the dot files often look.... uhm - different. (or not?)

     
  • Yury V. Zaytsev

    Yury V. Zaytsev - 2010-03-17

    Unfortunately it seems that the owners of the tracker do not allow users to attach the files, but what I can suggest is to upload it to any of these free file dumps around and I can then re-host it on my server and post a link here, so that it becomes permanent.

    You are right, long dot nodes will look completely different, but still, it's much better to have at least something than just loose the text completely and get empty bubbles.

     
  • Daniel Polansky

    Daniel Polansky - 2010-03-18

    dh1jc, if you have a new version of this XSLT to post, why don't you just create a new patch (new ticket) in this tracker for patches? --Dan

     
  • Yury V. Zaytsev

    Yury V. Zaytsev - 2010-03-18

    Don't you think it's a waste to create a new ticket for every single change in the patch? Then I will have to check for the new dot-related tickets manually and monitoring will become useless.

     
  • Daniel Polansky

    Daniel Polansky - 2010-03-19

    Zaytsev, if you know how to change the settings of a SourceForge project to allow people to post to attachments to tracket items that they have not created themselves, please let me know. Otherwise, I think we have to live with it. People can post new versions of this XSLT to another patch. --Dan

     
  • Marand

    Marand - 2012-03-07

    Hello. I just noticed a bug on the XSLT export: when a freemind node contains text wrapped in double quotes, the matching graphviz node has a label wrapped in double-double quotes, which is incorrect: double quotes ought to be escaped in the export process to avoid generating invalid labels.

    And a suggestion: add overlap=false to the digraph attributes. This will typcally make graphs usable with neato, not just with dot, and other formatters ignore this attribute anywa.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks