Changes between Initial Version and Version 6 of Ticket #11459
- Timestamp:
- 06/15/11 23:38:22 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11459
- Property Keywords sd31 days31 added
- Property Cc kcrisman added
-
Property
Summary
changed from
Implement sage -rst2notebook
toImplement sage -rst2txt and sage -rst2sws
-
Ticket #11459 – Description
initial v6 1 Convert a rst file into a notebook file (text file). 1 This ticket concerns the following : 2 2 3 The idea is that in general I wrote code using the Sage Code Convention where examples are formatted in ReST. Then converting rst examples to the notebook would be nice. Also, ReST file is more fun to edit than the html/cells notebook text file. 3 - Convert a ReST file into a worksheet file (txt) 4 - Convert a ReST file into a Sage worksheet (sws) 5 - Add the possibility to upload a .rst file from the Notebook. 4 6 5 I implemented a script called {{{rst2notebook}}} available [http://combinat.sagemath.org/hgwebdir.cgi/misc/file/ef17ccb37589/notebook2rst/ on the Sage Combinat server].7 My motivation is that in general I wrote my own code using the Sage Code Convention where examples are formatted in ReST. The possibility of converting rst syntax to a worksheet would be nice. Also, ReST file is more fun to edit than the html/cells worksheet text file. It is also more versatile as it can be used to generate a web page or S5 presentation, etc. using docutils. 6 8 7 In this script, I use docutils to translate a rst file into html file. From this, I convert blocks into cells. Note that I do not use sphinx so that not all usual Sage Rest syntax is working. But I am able to make math role work by adding dollar signs.9 This is based on a script called {{{rst2notebook}}} available [http://combinat.sagemath.org/hgwebdir.cgi/misc/file/ef17ccb37589/notebook2rst/ on the Sage Combinat server]. 8 10 9 I am planning to make this script more clean during [http://wiki.sagemath.org/days31 Sage Days 31], I hope based on sphinx and written as patches. 11 The docutils is used to translate a rst file into html file. From this, I convert blocks into cells. Note that I do not use sphinx so that not all usual Sage Rest syntax is working (yet). But I am able to make math role work by adding dollar signs. 12 13 I am planning to make this script more clean during [http://wiki.sagemath.org/days31 Sage Days 31]. I will upload patches as it gets better. 10 14 11 15 Related to : #10637 (Implement sage -sws2rst) and #10652.