rst3 test

42 views
Skip to first unread message

derwisch

unread,
Sep 22, 2014, 4:40:28 AM9/22/14
to leo-e...@googlegroups.com
After some absence from the usage of Leo, I am trying to rekindle my interest.

Currently I am trying to bridge the gap between what Leo produces and what my colleagues use. An export of an HTML document would be about halfway there.

If I open the above file with Leo, enter the headline named "@rst versuch.html" in the outline pane, press Alt-x and enter "rst3" followed by Return in the minibuffer pane, the log pane displays the word "done" in blue. No file is produced in the same directory as the one which contains test.leo. My desire was to see a file named "versuch.html" there. What am I missing?

Using Leo 4.10 final, build 5020, 2012-02-26.


test.leo

lewis

unread,
Sep 22, 2014, 8:43:04 AM9/22/14
to leo-e...@googlegroups.com
I opened your file and followed your alt-x "rst3" steps. It produced a file "versuch.html" in the same directory.
Do you have docutils installed?
It may help if you updated to the latest version of leo - see http://leoeditor.com/download.html

Here is the log pane output from the "rst3" command:

Leo Log Window
Leo 4.11 final, build 20140922060345, Mon Sep 22 06:03:44 CDT 2014
Git repo info: branch = master, commit = c93bd173f05d
Python 3.4.1, PyQt version 4.8.6
Windows 7 AMD64 (build 6.1.7601) SP1
reading: N:\leo\test.leo
stylesheet not found
 N:\leo\default.css

stylesheet not found
 N:\leo\default.css@path: N:\leo

@path: N:\leoopen path: N:\leo

open path: N:\leowrote: N:\leo\versuch.html

wrote: N:\leo\versuch.htmldone

done


Regards
Lewis

derwisch

unread,
Sep 22, 2014, 8:51:35 AM9/22/14
to leo-e...@googlegroups.com


Am Montag, 22. September 2014 14:43:04 UTC+2 schrieb lewis:
I opened your file and followed your alt-x "rst3" steps. It produced a file "versuch.html" in the same directory.
Do you have docutils installed?
 
Didn't say I didn't but that seems to be the problem. Thanks for testing and replying!

Edward K. Ream

unread,
Sep 22, 2014, 9:00:11 AM9/22/14
to leo-editor
On Mon, Sep 22, 2014 at 7:51 AM, derwisch
<johannes...@med.uni-heidelberg.de> wrote:

>> Do you have docutils installed?
>
>
> Didn't say I didn't but that seems to be the problem. Thanks for testing and
> replying!

I've added an item to the to-do list: rst3 command should warn if
docutils is not installed.

Edward

Edward K. Ream

unread,
Sep 22, 2014, 11:14:49 AM9/22/14
to leo-editor
On Mon, Sep 22, 2014 at 8:00 AM, Edward K. Ream <edre...@gmail.com> wrote:

> rst3 command should warn if docutils is not installed.

No. Not really. The rst3 command calls docutils only if:

a) docutils has been installed, and

b) The call_docutils rst option is True.

I suspect that you have call_docutils = False, just like I do, in
which you must call sphinx to create the .html files.

Leo can't warn when call_docutils is False because such a warning
would quickly become annoying for all but newbies...

Edward

Huesing, Johannes

unread,
Sep 22, 2014, 1:40:51 PM9/22/14
to leo-e...@googlegroups.com
My attempt succeeded now after I had docutils installed. Thank you.

However, it only works on the file I had included. Using a different example (again included), the output pane would show:

stylesheet not found
Q:\leo\default.css
@path: Q:\leo
open path: Q:\leo

with no “Done” at the end. The HTML file is not produced. If I change the .html extension to .pdf the log will look the same.

The HTML example produced in the original won't open in MS Word (Office 2010) unless the second line of the document (containing the DTD reference) is removed.

What minimal requirements are there for Leo tree structures so that rst3 will convert them to HTML?

Are there more streamlined approaches to bridge the gap from Leo to the Microsoft Office world?

--
Dr. rer. medic. Johannes Hüsing
Leiter Biometrie
Koordinierungszentrum für Klinische Studien
Universitätsklinikum Heidelberg
Besuchsadresse:
Voßstraße 2/ Gebäude 4410
69115 Heidelberg
Tel: +49-6221-56-34506
Fax: +49-6221-56-33508
E-mail: johannes...@med.uni-heidelberg.de
http://www.kks-hd.de
--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/2lWC83zEwsc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
minimal.leo

Chris George

unread,
Sep 22, 2014, 4:32:10 PM9/22/14
to leo-e...@googlegroups.com
I think your minimal file is too minimal. There is no body content for the command to process. Adding one character to the body of the @rst node and then running the rst3 command produced a file for me.

Chris

Huesing, Johannes

unread,
Sep 23, 2014, 5:52:31 AM9/23/14
to leo-e...@googlegroups.com

Oddly enough, @rst3 produces files for me now with more complicated files.

Reply all
Reply to author
Forward
0 new messages