Re: [Structuredtext-develop] Re: wanting to use restructuredtext in a zope product
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-04-12 23:52:23
|
> DG> I may rethink the interface so you don't need > DG> StringIO, but not the way you've outlined: tav wrote: > could you elaborate on how you see it working without a file-like object? No, because I don't know yet! :-) [re mixing HTML & reStructuredText] > tav> can restx not adapt such a practise? > > DG> No! Or at least, not by me! > > you seem pretty set on this point... can you at least accomodate for a > decode() method in the XHTMLTransformer class? No, I can't see adding broken functionality to the project. Why don't you just write a decode() function for yourself, and run the processed string through it? > hmz. how could i go about disabling protocol recognition then? i.e. > conversion of http://foo.com into a url. In the short-term, specific case you give, a backslash should do it: \http://foo.com. In the general case, I plan to make the parser modular somehow (don't ask me how, yet), so clients can enable and disable individual construct recognition. It might be as simple as subclassing, or it might be more dynamic. I haven't given it much concrete thought. After the merge (reStructuredText + DPS ==> Docutils), this weekend or next, I want to work on a PEP Reader component, which will require such functionality. I'll know more once that's done. > thanks btw. You're welcome, and thanks for the feedback. -- David Goodger go...@us... Open-source projects: - Python Docstring Processing System: http://docstring.sourceforge.net - reStructuredText: http://structuredtext.sourceforge.net - The Go Tools Project: http://gotools.sourceforge.net |