#10637: Implement sage -sws2rst
------------------------------------------------------------+---------------
Reporter: nthiery | Owner:
jason, mpatel, was
Type: enhancement | Status:
needs_work
Priority: major | Milestone:
sage-5.4
Component: notebook | Resolution:
Keywords: ReST, worksheet | Work issues:
answer questions, math formatting, lists, maybe absolute paths?
Report Upstream: Workaround found; Bug reported upstream. | Reviewers:
Nicolas ThiƩry, Jason Grout, Karl-Dieter Crisman, Jason Bandlow, John Palmieri
Authors: Pablo Angulo, Karl-Dieter Crisman | Merged in:
Dependencies: #11080, #11459 | Stopgaps:
------------------------------------------------------------+---------------
Comment (by kcrisman):
> > * $$ that are intended to be empty LaTeX for later filling in -
definitely counts on $$ always existing in pairs
>
> I work around a possible problem if $$ and <p>...</p> are not correctly
nested, because I observed that this happens, but I assumed that there is
no unpaired $$ because the jsmath in the notebook makes that kind of
mistake pretty obvious.
Hmm, good point.
> > * I'm not sure about the replace_courier thing. Are you saying that
you, personally, use Courier font to indicate code in TinyMCE, and this is
how you replace it with <code></code> tags? It would be nice for this to
be customizable; otherwise, what happens to the poor sap who happens to
like Courier and then finds all their text replaced by code?
>
> Done: I don't use that function any more
What do you do instead? What happens to things in code tags?
> > * It looks like in visiting ordered lists, that all sublists will
automatically becomes numbered. But couldn't one have an unordered list
inside an ordered list?
>
> Solved
Yup.
> > * in the replace_latex thing, is it conceivable that the re's would
match something by mistake? It looks like e.g. latex_beginning is
matching anything that starts and ends with a dollar sign, as long as it
really does end with a dollar sign and not \$, where that would include
any character (possibly zero) before that. Again, in a well-formed
worksheet that wouldn't be a problem, but maybe sometimes people would do
things like "$\$$".
>
> Nice catch! I've taken care of that.
I see that, and I ''think'' it works. I may have to look at it more
closely, as `single_dollar` is one I have to consult my regex resources
for :)
More to come...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10637#comment:81>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.