#11459: Implement sage -rst2txt and sage -rst2sws
--------------------------------------+-------------------------------------
       Reporter:  slabbe              |         Owner:  slabbe        
           Type:  enhancement         |        Status:  closed        
       Priority:  major               |     Milestone:  sage-5.1      
      Component:  notebook            |    Resolution:  fixed         
       Keywords:  sd31 days31 sd40.5  |   Work issues:                
Report Upstream:  N/A                 |     Reviewers:  Keshav Kini   
        Authors:  Sébastien Labbé     |     Merged in:  sage-5.1.beta2
   Dependencies:  #11080              |      Stopgaps:                
--------------------------------------+-------------------------------------

Comment (by slabbe):

 The part of the script which depends on the new sagenb is the following :

 {{{
 #!python
 # Do the translation html -> worksheet txt
 from sagenb.notebook.docHTMLProcessor import docutilsHTMLProcessor
 translator = docutilsHTMLProcessor()
 worksheet_txt = translator.process_doc_html(html)

 # create a Notebook
 from sagenb.notebook.notebook import Notebook
 from sage.misc.misc import tmp_dir
 nb = Notebook(tmp_dir()+'.sagenb')

 # create a worksheet
 W = nb.create_new_worksheet(title, 'admin')
 W.edit_save(worksheet_txt)

 # export the worksheet as sws
 nb.export_worksheet(W.filename(), output, title=title)

 # delete the Notebook
 nb.delete()
 }}}

 Is it possible that such code get broken in future version of sagenb?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11459#comment:40>
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.

Reply via email to