1 Nov 2004 05:34
Re: Re: Dash-transformation
David Goodger <goodger <at> python.org>
2004-11-01 04:34:29 GMT
2004-11-01 04:34:29 GMT
[David Goodger]
>> I don't know about inserting a set of predefined substitution
>> definitions into the parser. But we could certainly include a set
>> of substitution files in Docutils. Then the author could do:
>>
>> .. include:: <dashes.txt>
[Felix Wiemann]
> I'm not sure if the benefit is big enough enough to justify the
> effort of adding such a feature and maintaining a set of 'standard'
> substitution files.
I think it may be justified, although it doesn't have to be done right
away. I'm -1 on adding any built-in substitution definitions; a set
of standard substitution definition files is the closest I'd agree to.
> But what about multi-line unicode definitions? Recognize the option
> iff the last line is ':trim:'?
That's not an issue. It's taken care of by the directive parsing
code. I added a "trim" option to the "unicode" directive; it doesn't
do anything except set an attribute. Here's the result:
$ quicktest.py <<EOF
.. |x| unicode:: U+0041
U+0042
:trim:
|x|
EOF
(Continue reading)
RSS Feed