Thanks!
pip3 install lxml
. . . did it.
Except:
1) The file selection menu defaults to a .mm.html file extension
rather than .mm . That's a simple tweak. The import is not actually
designed to import an html file exported as such from FreeMind.
2) Not sure it imports very optimally, as I guess it's figuring node
texts should be headlines and body texts will only be filled for nodes
that have notes attached. But there the notes get put into body text
that's nested two levels deep below the node text, first a
"richcontext" headline child, then a "p" headline child under that,
which holds the note text as its body text.
3) Tried exporting as html from Freemind first. Not better: all I get
is headlines that are html codes ("li" headline per each node in the
map).
But at least it gets in there once I select .mm .
I get a lot of really long headlines that I can't easily read because
that's how I use FreeMind.
So something to mull over as a suggestion for possible future
development: some sort of generalized importer that gives the user
various options like shunting node texts to the body text, various
choices about how you want the import to behave. It would be
generalized so people can make importers for different formats that
give a common set of conversion options that all the importers will be
able to support. I don't think this is a priority for the usual use
case for most people here in the Leo community, so I'm not putting in
an official request. :-)
Thanks for the quick response and easy fix! :-)
Seth
On 5/16/19, Edward K. Ream <
edre...@gmail.com> wrote:
> On Thu, May 16, 2019 at 4:29 PM Seth Johnson <
seth.p....@gmail.com>
> wrote:
>
>> The other imports in the File->Import Files menu give me a file
>> selection window, but it appears the menu item for Freemind lacks a
>> command/function call.
>>
>
> This command requires lxml <
https://lxml.de/installation.html>. Try
> installing it. This importer appears to be the only code in Leo that uses
> lxml. Have no idea why, or where the code came from.
>
> Anyone want to convert the code to use xml.etree.ElementTree?
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
leo-editor+...@googlegroups.com.
> To post to this group, send email to
leo-e...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/leo-editor.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0ZL4ZoP9zvk6WhsTbd8LxY7bczL-jMT%3Dg-VMV9uX_xnA%40mail.gmail.com.
> For more options, visit
https://groups.google.com/d/optout.
>