On Apr 3, 12:55 am, Pat LeSmithe <qed...@gmail.com> wrote:
> John H Palmieri wrote:
> >   matrix?  SHIFT-RETURN
> > still doesn't behave well, while
>
> It seems that Cell.html_out() wraps this output in
> div.cell_output_html_wrap.  Referring to css.py, I think this accounts
> for the different font.  Adding font properties to div.docstring may
> help.  Then, something like

Great, fixed it.  I also added code to handle the display of source
code (e.g., "identity_matrix??") nicely.

> * The i = -1 "worst case" in SPHINX_set_instrospect_html() could instead
> call the DOCUTILS version or the original, to degrade gracefully.

I haven't done this. What are examples where this worst case happens,
so I can try out the various options?

> * It may help to "cp -r" SAGE_ROOT/devel/sage/doc/common to
> SAGE_ROOT/devel/sage/doc/introspect and modify the new conf.py and
> layout.html.  This should simplify and speed up
> SPHINX_set_introspect_html().

I created this directory and the new code uses it, although I didn't
play too much with it -- I just made a few little changes to conf.py.
I'm not sure how much speed difference there will be; isn't the main
speed issue the fact that Sphinx is creating, reading, and writing
various files?

> * If anyone's interested, here's a way to render an input cell as
> syntax-highlighted HTML output:

This looked like fun, so I added it: there is now a decorator
"%pygments" which calls your code.  (There was already a function
"colorize", and "%pygments" fits with "%html% and "%jsmath": naming,
rather precisely, the way the rest of the cell will be processed.)

  John

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to