Applications Google
Menu principal

Post a Comment On: Only Python

"docpicture + svg generation: first prototype working"

6 Comments -

1 – 6 of 6
Blogger David Goodger said...

The .xhtml link doesn't work for me in either Firefox 2 or Safari on Mac OS X 10.5.5. They both download a file instead of serving a page. Perhaps rename it to .html?

9:40 PM

Blogger André Roberge said...

If I rename it to .html, then the svg graphics is not displayed. This is a minor annoyance for what I want to do, since the files are going to be displayed dynamically by a local server with the proper configuration.

However, if this is going to be adapted/incorporated by programs like docutils to produce normal (x)html files by a server with no specific configuration, it is going to be an annoyance...

9:46 PM

Blogger Doug Napoleone said...

It sort of works for me in Safari and Firefox on OSX (after forcing them to open the file after downloading).

But, when I do view it I see the following error:

Unknown parser dummy_name.

for the first example.

(The red circle is fine... very excited about this...)

10:49 PM

Blogger André Roberge said...

The error message is intentional! I just wanted to provide an easy to see error message when a docpicture directive was given with an unknown parser. This makes it easy to spot a typo when embedding code in a docstring.

I'm still trying go get more familiar with svg graphics before working some more on parsers. In the meantime, you can try the following link ...
http://andre.roberge.googlepages.com/turtle_test.xhtml

It is likely going to form the basis for the first parser: one that could be used with docstrings for the turtle module. ;-)

10:58 PM

Blogger Shawn W. said...

Cool stuff! Will you be posting the code as well?

11:08 PM

Blogger André Roberge said...

Yes, I will be posting the code as well, as soon as I can automatically generate pictures for a fictitious turtle module, and after I clean it up a bit.

11:57 PM

Spammers: none shall pass.
You can use some HTML tags, such as <b>, <i>, <a>

Comments on this blog are restricted to team members.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot