ZDG production question
OK, so I snarfed the DevGuide (ohhh yeah!) from CVS, after hearing that it was written in stx, and converted to pdf et al. In particular, I was hoping to find somehting that sucked in a file in foo.stx format, and spit it out as foo.html (or better, foo.pdf :)) While id did find the htmldoc conversion script useful, there was nothing indicating how the .stx files were converted into .html files for htmldoc to then parse? I am not be the only one who would find this useful, am I? Or am I the only one missing out where the scripts are? Bill
There is a StructuredText-to-DocBook outputter shipped with StructuredText. To use it, see http://www.zope.org/Members/jim/StructuredTextWiki/NGDocumentation and replace the last step (html=StructuredText.HTML(doc)) with the DocBook outputter instead of the HTML outputter. There are helper functions inside of the DocBook outputter to take a sequence of stx documents and turn them into a single DocBook book with multiple chapters. - C Bill Anderson wrote:
OK, so I snarfed the DevGuide (ohhh yeah!) from CVS, after hearing that it was written in stx, and converted to pdf et al.
In particular, I was hoping to find somehting that sucked in a file in foo.stx format, and spit it out as foo.html (or better, foo.pdf :))
While id did find the htmldoc conversion script useful, there was nothing indicating how the .stx files were converted into .html files for htmldoc to then parse?
I am not be the only one who would find this useful, am I? Or am I the only one missing out where the scripts are?
Bill
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
On 01 Aug 2001 01:04:39 -0400, Chris McDonough wrote:
There is a StructuredText-to-DocBook outputter shipped with StructuredText. To use it, see http://www.zope.org/Members/jim/StructuredTextWiki/NGDocumentation and replace the last step (html=StructuredText.HTML(doc)) with the DocBook outputter instead of the HTML outputter. There are helper functions inside of the DocBook outputter to take a sequence of stx documents and turn them into a single DocBook book with multiple chapters.
Sweet. So I was the only one that didn't know.:) I can live with that. Won't be the last time. However ...
import StructuredText raw=open('test.stx','r').readlines() st=StructuredText.Basic(raw) Traceback (most recent call last): File "<stdin>", line 1, in ? File "ST.py", line 113, in StructuredText paragraphs = expandtabs(paragraphs) File "/usr/lib/python2.1/string.py", line 295, in expandtabs return s.expandtabs(tabsize) AttributeError: expandtabs
Rut-Roh. Somehting is fishy here, since:
from string import expandtabs s="foo\ttab1\t\ttabx2" bar=expandtabs (s) bar 'foo tab1 tabx2'
Works fine otherwise? I even tried out of a script, in the event it was some sort of wierd, obscure interpreter thing (It could happen); but I must admit, I am stumped so far on this one. :( Bill
participants (2)
-
Bill Anderson -
Chris McDonough