On 8/5/2013 9:21 AM, Edward K. Ream wrote:
On Sun, Aug 4, 2013 at 10:00 PM, <[email protected]
<mailto:[email protected]>> wrote:
I would like to know if there are plans to add support for some
kind of rich text *within* Leo (i.e. not just for export purposes
like Leo-to-RTF).
This is an important question, and an ongoing one.
1. The viewrendered plugin already provides support for rich text
using reStructuredText (rST): http://docutils.sourceforge.net/rst.html
This plugin also supports @image, @html, @movie, @networkx and @svg
nodes. All other nodes are assumed to contain rST markup.
You can see the rendered version with <alt-x>vr. To hide the
viewrendered pane, do <alt-x>vr-hide. The screenshot on Leo's home
page came from an @svg node: the svg code is in the body pane on the
left; the rendered result is in the vr pane on the right. Another node
that would be good to view this way is the docstring for the
viewrendered plugin in leoPlugins.leo, the node @file
viewrendered.py--><< docstring >>
One could imagine supporting other kinds of renderings in the
viewrendered pane, but I don't believe there are any requests for that
at present. Indeed, rST is an excellent markup language: all of Leo's
docs are created with rST. I preview the docs in the vr pane, and
create the docs themselves with the rst3 plugin and Sphinx:
http://sphinx-doc.org/
Additionally, the viewrendered plugin supports markdown processing and
rendering with @md nodes. This requires the 'markdown' module to be
installed.
2. googling qt rich text yields
http://qt-project.org/doc/qt-4.8/demos-textedit.html. This is not
something that I would want to add to Leo directly: it would imply
additions to Leo's body pane, along with associated new commands. It
might make a good plugin, but it would likely be a lot of work for
little gain over rST rendered with the viewrendered plugin.
3. Leo is unlikely ever to support the Microsoft RTF format, unless Qt
does so directly.
HTH.
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.