On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Ok.  I think I have that worked out -- would you mind testing on docutils
> 0.4?  (I don't think I broke anything that wasn't already broken...)

OK, sorry I've been causing so much trouble, but I guess it is good
that at least one of works on python 2.4 sometimes.

What I really wanted to talk about is that I think this new support is
a killer feature, and I would like to see it widely accessible and
advertised.  I think people will find the ability to do turnkey math
text to be useful in many contexts where a full blown tex/dvipng
install is impractical.  This is particularly true for folks
distributing apps to windows.  Potential use cases are math in GUI
buttons, menus and other widgets, math blitted into a vtk or other
canvas, webapp servers wanting to use math pngs etc...

So I'd like at a minimum to move your latex2png into the mathtext
module (or the text module or wherever it belongs), probably rename it
mathtext2png to avoid confusion, and import that function into the
mathpng sphinx extension.  I also think we should provide a math2array
which returns an rgba array that people can do what they want with.
I'm happy to do all this easy stuff now that you have done the hard
part, but I just wanted to bounce it off you in case you had any
suggestions.  I'm curious about a couple of things in the mathpng
func:

  * why do you hardcode the math font to be 'cm'?

  * why do you hardcode the dpi to be 120 -- is that just a stylistic
choice?  BTW, in semi-related news, it appears sphinx (at least my
version) ignores the scale on the image directives, which is why the
html images appear large and the PDF ones appear small.  This is odd,
because on my system rst2html respects the scale directive so it
appears to be a buglet.

Very nice work on the auto-generated symbol tables, btw.  I am eagerly
studying this sphinxext stuff -- very powerful.  You know, Stefan
called for a sphinx presentation the other day for scipy 08, and I
think this kind of stuff would make a great talk if you are planning
on attending.

JDH

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to