Re: graphviz extension

2008-10-21 Thread Christophe de Vienne

Hi Charles,

I am interested in your graphviz extension, and willing to give a hand
to improve it if needed.

Before digging into it to fix the image path problem that was
mentioned before, I would like to know if you made any change on it
and have a more recent version to share ?

Thanks,

Christophe

On 9 sep, 22:45, Charles Duffy [EMAIL PROTECTED] wrote:
 Per subject. This is my first attempt at a Sphinx extension, so I'm
 certain there's plenty of room for improvement; see attached.

 Usage is as follows:

 .. graphviz::
   strict digraph {
     foo - bar - baz;
     foo - qux;
   }

 This in rendered into PNG (for use with HTML), PDF (for use with LaTeX)
 and postscript.

 Please let me know if there are improvements I could make which would
 allow this extension to be merged into Sphinx proper. Thanks!

  graphviz.py
 3KAfficherTélécharger
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



Re: graphviz extension

2008-10-21 Thread Charles Duffy
Christophe de Vienne wrote:
 Hi Charles,

 I am interested in your graphviz extension, and willing to give a hand
 to improve it if needed.

 Before digging into it to fix the image path problem that was
 mentioned before, I would like to know if you made any change on it
 and have a more recent version to share ?
   

Christophe,

Thank you for your interest!

The most recent version is datestamped September 12, and the only 
difference from the version posted appears to be removing 
app.builder.imgpath from the candidate filenames; I haven't had the 
opportunity to do a more complete refactoring to properly resolve the 
issue. As such, any assistance you might offer would be gratefully accepted.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---

--- graphviz.py.old	2008-10-21 12:40:36.0 -0500
+++ graphviz.py	2008-09-12 08:15:46.0 -0500
@@ -50,14 +50,14 @@
 graphviz_process.wait()
 relfn = '_images/graphviz/%s' % (filename,)
 newnode = nodes.image()
-newnode['candidates'] = dict( [ (format_mime, '%s.%s' % (relfn, format_ext)) for (format_mime, format_ext) in _output_formats.iteritems() ] )
+newnode['candidates'] = dict( [ (format_mime, '%s/%s.%s' % (app.builder.imgpath, relfn, format_ext)) for (format_mime, format_ext) in _output_formats.iteritems() ] )
 # build PDF output from the previously generated postscript
 Popen([
 getattr(app.builder.config, 'graphviz_ps2pdf', 'ps2pdf'),
 '%s.ps' % (outfn,),
 '%s.pdf' % (outfn,)
 ]).wait()
-newnode['candidates']['application/pdf'] = '%s.pdf' % (outfn,)
+newnode['candidates']['application/pdf'] = '%s/%s.pdf' % (app.builder.imgpath, outfn,)
 # and that's all, folks!
 node.replace_self(newnode)
 except Exception, err:


Column/row spanning for latex

2008-10-21 Thread Roger Binns

I'm in the process of shifting to sphinx from plain html doc and
particularly liked that I could get PDF out of this.  (Note that I
couldn't care less about latex.  The conversion could happen via magic
pixie dust for all I care :) )

Exception occurred:
  File /usr/lib/python2.5/site-packages/Sphinx-0.4.3-py2.5.egg/sphinx/
latexwriter.py, line 512, in visit_entry
raise NotImplementedError('Column or row spanning cells are '

I have some simple column spanning in a table.  Will Sphinx Latex
writer be gettting this ability in the near future or are there any
alternate ways of getting PDF?

FWIW you also can't do **|version|** or even **foo |version| bar **

Roger
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



Re: Column/row spanning for latex

2008-10-21 Thread Roger Binns

On Oct 21, 9:36 pm, Roger Binns [EMAIL PROTECTED] wrote:
 FWIW you also can't do **|version|** or even **foo |version| bar**

It turns out you can't use |version| in most places.  I also wanted to
do this:

  `pkg-|version|.zip http://example.com/dl/pkg-|version|.zip`_

Roger
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---