You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(15) |
Oct
(21) |
Nov
(18) |
Dec
(59) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(43) |
Feb
(35) |
Mar
(78) |
Apr
(65) |
May
(163) |
Jun
(169) |
Jul
(137) |
Aug
(77) |
Sep
(47) |
Oct
(27) |
Nov
(43) |
Dec
(68) |
| 2004 |
Jan
(61) |
Feb
(39) |
Mar
(11) |
Apr
(42) |
May
(86) |
Jun
(82) |
Jul
(24) |
Aug
(26) |
Sep
(37) |
Oct
(62) |
Nov
(131) |
Dec
(43) |
| 2005 |
Jan
(31) |
Feb
(56) |
Mar
(65) |
Apr
(165) |
May
(106) |
Jun
(97) |
Jul
(65) |
Aug
(150) |
Sep
(78) |
Oct
(115) |
Nov
(41) |
Dec
(26) |
| 2006 |
Jan
(50) |
Feb
(39) |
Mar
(56) |
Apr
(67) |
May
(89) |
Jun
(68) |
Jul
(116) |
Aug
(65) |
Sep
(58) |
Oct
(103) |
Nov
(28) |
Dec
(52) |
| 2007 |
Jan
(92) |
Feb
(60) |
Mar
(124) |
Apr
(96) |
May
(69) |
Jun
(79) |
Jul
(25) |
Aug
(22) |
Sep
(7) |
Oct
(17) |
Nov
(27) |
Dec
(32) |
| 2008 |
Jan
(57) |
Feb
(87) |
Mar
(51) |
Apr
(43) |
May
(56) |
Jun
(62) |
Jul
(25) |
Aug
(82) |
Sep
(58) |
Oct
(42) |
Nov
(38) |
Dec
(86) |
| 2009 |
Jan
(50) |
Feb
(33) |
Mar
(84) |
Apr
(90) |
May
(109) |
Jun
(37) |
Jul
(22) |
Aug
(51) |
Sep
(93) |
Oct
(86) |
Nov
(31) |
Dec
(62) |
| 2010 |
Jan
(33) |
Feb
(57) |
Mar
(62) |
Apr
(43) |
May
(30) |
Jun
(49) |
Jul
(20) |
Aug
(40) |
Sep
(152) |
Oct
(38) |
Nov
(15) |
Dec
(32) |
| 2011 |
Jan
(29) |
Feb
(25) |
Mar
(65) |
Apr
(45) |
May
(27) |
Jun
(11) |
Jul
(14) |
Aug
(8) |
Sep
(13) |
Oct
(117) |
Nov
(60) |
Dec
(19) |
| 2012 |
Jan
(23) |
Feb
(32) |
Mar
(24) |
Apr
(41) |
May
(56) |
Jun
(24) |
Jul
(15) |
Aug
(11) |
Sep
(26) |
Oct
(21) |
Nov
(12) |
Dec
(31) |
| 2013 |
Jan
(32) |
Feb
(24) |
Mar
(39) |
Apr
(44) |
May
(44) |
Jun
(8) |
Jul
(9) |
Aug
(12) |
Sep
(34) |
Oct
(19) |
Nov
(5) |
Dec
(9) |
| 2014 |
Jan
(22) |
Feb
(12) |
Mar
(7) |
Apr
(2) |
May
(13) |
Jun
(17) |
Jul
(8) |
Aug
(10) |
Sep
(7) |
Oct
(4) |
Nov
|
Dec
(39) |
| 2015 |
Jan
(13) |
Feb
(12) |
Mar
(12) |
Apr
(40) |
May
(5) |
Jun
(22) |
Jul
(3) |
Aug
(42) |
Sep
(5) |
Oct
(10) |
Nov
|
Dec
(10) |
| 2016 |
Jan
(9) |
Feb
(43) |
Mar
(5) |
Apr
(14) |
May
(17) |
Jun
(5) |
Jul
(5) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
(18) |
| 2017 |
Jan
(28) |
Feb
(29) |
Mar
(9) |
Apr
(23) |
May
(48) |
Jun
(5) |
Jul
(32) |
Aug
(9) |
Sep
(13) |
Oct
(13) |
Nov
(6) |
Dec
(4) |
| 2018 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(5) |
Jun
(17) |
Jul
(12) |
Aug
(15) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(6) |
Mar
(3) |
Apr
(5) |
May
(10) |
Jun
(6) |
Jul
(6) |
Aug
|
Sep
(11) |
Oct
(18) |
Nov
(10) |
Dec
(7) |
| 2020 |
Jan
(3) |
Feb
(14) |
Mar
(2) |
Apr
(1) |
May
(5) |
Jun
|
Jul
(1) |
Aug
(11) |
Sep
(8) |
Oct
|
Nov
(1) |
Dec
(14) |
| 2021 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
(8) |
May
(23) |
Jun
(7) |
Jul
(10) |
Aug
(1) |
Sep
|
Oct
(7) |
Nov
(10) |
Dec
(2) |
| 2022 |
Jan
|
Feb
(21) |
Mar
|
Apr
(3) |
May
(7) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
(18) |
Feb
|
Mar
(1) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2025 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(6) |
Jul
(22) |
Aug
(5) |
Sep
(9) |
Oct
(30) |
Nov
(1) |
Dec
|
|
From: Stephan R.A. D. <sd...@wi...> - 2002-12-19 01:18:16
|
Hi,
Are there any plans that anyone here knows of to recognize lists
in the following form in reST?
1 Top level
1.1 Next level
1.2 Another item
2 Next Top Level
2.1 Again
2.1.1 Third level
2.1.2 And so forth
2.2 And so forth
This doesn't seem to work now even if I add '.' after the #.#'s.
Also, would this be in contradiction with the accepted spec for
what reST is?
(BTW, what I'm doing is creating a table of contents on my own because
I'm dynamically assembling it to span many reST docs and possibly other
resources that get presented to the user as if they were one doc).
Thanks for any info!
- Stephan
------------------------------------------------------------------------
Wing IDE for Python Archaeopteryx Software, Inc
www.wingide.com Take Flight!
|
|
From: David G. <go...@py...> - 2002-12-19 01:07:14
|
David Abrahams wrote: > I can think of one way to beautify cases like this: introduce a kind > of quotation which removes all spaces in what it surrounds as a > postprocessing step. > > ''*re* ``Structured`` *Text'' > > This would be analogous to re.VERBOSE, if memory serves. I'll add it to the character processing discussion in the To Do list, but I doubt the feature is worth the cost. -- David Goodger go...@py... |
|
From: David A. <da...@bo...> - 2002-12-19 00:57:23
|
David Abrahams <da...@bo...> writes:
> I can think of one way to beautify cases like this: introduce a kind
> of quotation which removes all spaces in what it surrounds as a
> postprocessing step.
>
> ''*re* ``Structured`` *Text''
Oops.
''*re* ``Structured`` *Text*''
^
of course.
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: David A. <da...@bo...> - 2002-12-19 00:53:03
|
David Goodger <go...@py...> writes:
> [David Abrahams]
>> Rock me, Amadeus.
>
> Never thought I'd hear that again. Now I kinda wish I hadn't.
Sorry ;-)
>>> I don't see a good way to allow for arbitrary text *before* inline
>>> markup though. Is there a need? We can't use a simple backslash,
>>> since that says "the following is *not* markup".
>>
>> But... inline markup doesn't happen within markup does it?
>
> Inline markup doesn't nest. Is that what you mean?
Yeah.
>> the simple backslash outside of markup could mean "begin markup" if it
>> precedes "``".
>>
>> 'course I'm probably missing something.
>
> The main reason for backslash-escapes to exist is to *prevent* markup
> recognition when it's not wanted::
>
> Various forms of \*ML abound.
>
> The backslash "escapes" the normal meaning of whatever follows it. In this
> case::
>
> Use brackets for Python ``list``\s
>
> we've extended the meaning of the backslash to escape the normal "text"
> meaning of the "s" to make it into a word-boundary. To do the same thing
> before the inline markup, I can only think of introducing a "disappearing
> escape sequence", like this:
>
> *re*\'``Structured``\'*Text*
> (italic "re" + monospaced "Structured" + italic "Text")
>
> That's awfully ugly though.
It could be worse.
I can think of one way to beautify cases like this: introduce a kind
of quotation which removes all spaces in what it surrounds as a
postprocessing step.
''*re* ``Structured`` *Text''
This would be analogous to re.VERBOSE, if memory serves.
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: David G. <go...@py...> - 2002-12-19 00:43:54
|
[David Goodger]
>> So I've checked it in. Available now from CVS or in 20 minutes from
>> the snapshot.
[David Abrahams]
> Rock me, Amadeus.
Never thought I'd hear that again. Now I kinda wish I hadn't.
>> I don't see a good way to allow for arbitrary text *before* inline
>> markup though. Is there a need? We can't use a simple backslash,
>> since that says "the following is *not* markup".
>
> But... inline markup doesn't happen within markup does it?
Inline markup doesn't nest. Is that what you mean?
> the simple backslash outside of markup could mean "begin markup" if it
> precedes "``".
>
> 'course I'm probably missing something.
The main reason for backslash-escapes to exist is to *prevent* markup
recognition when it's not wanted::
Various forms of \*ML abound.
The backslash "escapes" the normal meaning of whatever follows it. In this
case::
Use brackets for Python ``list``\s
we've extended the meaning of the backslash to escape the normal "text"
meaning of the "s" to make it into a word-boundary. To do the same thing
before the inline markup, I can only think of introducing a "disappearing
escape sequence", like this:
*re*\'``Structured``\'*Text*
(italic "re" + monospaced "Structured" + italic "Text")
That's awfully ugly though.
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|
|
From: David G. <go...@py...> - 2002-12-19 00:42:00
|
David Ascher wrote:
> Is there already something somewhere that does that?
Indeed there is. Use an internal hyperlink target::
.. _permanent name:
Requirement 123123: This part may change
----------------------------------------
Ordinary text here.
The target text will be converted to an ID by lowcasing and converting
all punctuation and whitespace to dashes. The above target could be
referred to as:
http:/.../foo.html#permanent-name
The form of the permanent name can be whatever you like.
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|
|
From: David A. <da...@bo...> - 2002-12-18 21:45:03
|
David Goodger <go...@py...> writes:
> [David Abrahams]
>> When I try your workaround I still get a grammatically incorrect
>> apostrophe in the word "lists".
>
> The apostrophe was inserted to provide a word boundary, but has no
> other meaning as markup. In other words, it's not supposed to
> disappear, so it doesn't.
>
>> Would it break anything if you added the backslash to the list of
>> "certain punctuation characters"? That way, I could write
>> ``list``\s and get exactly the effect I want.
>
> [David Goodger]
>> Interesting idea. May work. I'll have to think it through. There
>> may be adverse side-effects due to the way backslash-escapes are
>> handled internally (they're converted to \x00 null bytes, which I've
>> always thought was a bit of a kludge, but it's worked thus far).
>
> I tried it, it does work, and I can't think of any nasty side-effects.
> This neat trick allows for arbitrary text after inline markup:
>
> Those bracketed expressions are Python ``list``\s.
>
> So I've checked it in. Available now from CVS or in 20 minutes from
> the snapshot.
Rock me, Amadeus.
> I don't see a good way to allow for arbitrary text *before* inline
> markup though. Is there a need? We can't use a simple backslash,
> since that says "the following is *not* markup".
But... inline markup doesn't happen within markup does it?
the simple backslash outside of markup could mean "begin markup" if it
precedes "``".
'course I'm probably missing something.
> Perhaps a certain
> escape sequence can be defined as "disappearing", like "\-" or "\." or
> "\'". ("\ " has already been proposed as a way to indicate
> non-breaking space; not implemented yet. After looking this up, it
> seems the "disappearing" idea isn't new either:
> <http://docutils.sf.net/spec/notes.html#character-processing>.)
> --
> David Goodger <go...@py...> Open-source projects:
> - Python Docutils: http://docutils.sourceforge.net/
> (includes reStructuredText: http://docutils.sf.net/rst.html)
> - The Go Tools Project: http://gotools.sourceforge.net/
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: David A. <Da...@Ac...> - 2002-12-18 19:11:59
|
In some documents, I'd like the id tags associated with anchors to remain constant in the face of section name changes. In other words, I'd like to mark up Requirement 123123: This part may change ---------------------------------------- With something, so that I could always refer to http:/.../foo.html#something and have it point to the <a> tag which docutils currently generates with the id "requirement-this-part-may-change" or something like that. A proposal would be to use markup like: #permanent: Changeable title which would produce: <div class="section" id="permanent"> <h1> <a id="permanent" name="changeable-title">permanent: Changeable title</a> </h1> Is there already something somewhere that does that? --david |
|
From: David G. <go...@py...> - 2002-12-18 00:57:17
|
David Ascher wrote: > I'm trying to bundle together a python script that uses docutils > using Gordon McMillan's Installer tool. The standard code analysis > is missing some files. There are some dynamic imports in the code, but only of modules within the Docutils package. A simple list of all files should suffice. > Has someone written a hook file for docutils yet? Not that I know of. But I've never used the McMillan Installer. -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |
|
From: David G. <go...@py...> - 2002-12-18 00:56:43
|
Tony Vignaux wrote: > I am using reST to produce html with html.py. One of the author > names I need to produce is Muller with an u-umlaut(i.e. in html: > Müller). I assume I can use some sort of substitution but I > seem to have missed it in the documentation. How do I do it in ReST? You don't need to use substitutions or entities for accented characters. Just tell Docutils the encoding of the input file (and the desired encoding of the output; default UTF-8). Use the "--input-encoding" command-line option, or set it up permanently in a configuration file. See <http://docutils.sf.net/docs/tools.html> for details. -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |
|
From: David G. <go...@py...> - 2002-12-18 00:55:50
|
Beni Cherniavsky wrote:
>> <document source="<stdin>">
>> <bullet_list bullet="*">
>
> Never thought that the bullet is recorded of the DOM. doctree.html
> confirms that and notes that it may be ignored in processing.
> What's the implication?
It's just stored there to help round-trip conversion. From PEP 258:
The DTD retains all information necessary to reconstruct the
original input text, or a reasonable facsimile thereof.
> Is it ignored currently?
Yes. I don't think it's used for anything now.
> Will it?
It may be used for text-output Writers, such as the one Stephan Diebel
reported on here a few days ago.
> Are there any guidelines in choosing bullets when writing rST?
Not really. I like * for first-level, and - for lower levels. But
that's just me.
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|
|
From: David A. <Da...@Ac...> - 2002-12-17 19:57:03
|
I'm trying to bundle together a python script that uses docutils using Gordon McMillan's Installer tool. The standard code analysis is missing some files. Has someone written a hook file for docutils yet? --david |
|
From: Tony V. <Ton...@mc...> - 2002-12-17 19:48:14
|
I am using reST to produce html with html.py. One of the author names I need to produce is Muller with an u-umlaut(i.e. in html: Müller). I assume I can use some sort of substitution but I seem to have missed it in the documentation. How do I do it in ReST? Tony Vignaux |
|
From: Beni C. <cb...@te...> - 2002-12-17 13:00:06
|
On 2002-12-16, David Goodger wrote: > <document source="<stdin>"> > <bullet_list bullet="*"> > Never thought that the bullet is recorded of the DOM. doctree.html confirms that and notes that it may be ignored in processing. What's the implication? Is it ignored currently? Will it? Are there any guidelines in choosing bullets when writing rST? -- Beni Cherniavsky <cb...@tx...> |
|
From: Patrick K. O'B. <po...@or...> - 2002-12-17 05:23:11
|
On Monday 16 December 2002 08:38 pm, David Goodger wrote: > I looked at the DeveloperWorks tutorial DTD (dwtut.dtd) and > supporting docs. It seems quite straightforward: a custom set of > structural elements wrapping an HTML core. It would require a few > directives (like "example-column", "image-column", perhaps > "xml-listing" etc.) and a mapping of document -> tutorial, top-level > section -> section, next-level section -> panel. Ideally the > Toot-O-Matic Writer component should check that no unsupported > elements are present (lower-level sections, tables, etc.). It looks > doable. You may want to subclass the writers/html4css1.py module, > although your XML is so different that copy&paste may be easier. > I'll be happy to answer any questions. Great. You've confirmed my impressions. Thank you. I'll plan to work on this as I have time available. -- Patrick K. O'Brien Orbtech http://www.orbtech.com/web/pobrien ----------------------------------------------- "Your source for Python programming expertise." ----------------------------------------------- |
|
From: David G. <go...@py...> - 2002-12-17 05:03:22
|
David Abrahams wrote: > Ouch, that didn't work: Forgot to mention that the nested list requires a blank line before & after. Only blank lines between items are optional. If you haven't read the Primer, please do: <http://docutils.sf.net/docs/rst/quickstart.html#lists>. If you have read it, maybe you should read it again. ;) -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |
|
From: David A. <da...@bo...> - 2002-12-17 04:21:38
|
David Goodger <go...@py...> writes:
> David Abrahams wrote:
>> When I format the following as HTML with the current CVS
>>
>> ---
>> * User Guided wrapping
>> * Require minimal user intervention
>> * But intervention must be possible when needed
>> ---
>>
>> It looks like:
>>
>> ---
>> *
>> User Guided wrapping
>> * Require minimal user intervention
>> * But intervention must be possible when needed
>> ---
>>
>> Is that to be expected?
>
> Pretty much. The indentation of nested lists is critical. It's informative
> to see how the parser interprets this input. I use the command::
>
> python tools/quicktest.py
>
> And feed the above as input to stdin, this is what comes out
> (wrapped a bit)::
>
> <document source="<stdin>">
> <bullet_list bullet="*">
> <list_item>
> <definition_list>
> <definition_list_item>
> <term>
> User Guided wrapping
> <definition>
> <bullet_list bullet="*">
> <list_item>
> <paragraph>
> Require minimal user
> intervention
> <list_item>
> <paragraph>
> But intervention must be
> possible when needed
>
> You've got a bullet list item containing a definition list item
> containing a bullet list in the definition. Reduce the indentation of
> lines 2 & 3 by one space each and I think you'll get what you want.
Ouch, that didn't work:
quicktest.py results:
<document source="<stdin>">
<bullet_list bullet="*">
<list_item>
<paragraph>
User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed
--
HTML snippet:
<div class="document">
<ul class="simple">
<li>User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed</li>
</ul>
</div>
>> Why the CR after the initial bullet?
>
> That I can't tell you. What browser?
IE6
> What stylesheet?
The one from your tools/ subdirectory
>> The command I used was:
>>
>> python /src/docutils/tools/html.py --embed-stylesheet -gdts \
>> fu.txt fu.html
>
> Was the stylesheet successfully embedded? Please check.
Yup.
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: David G. <go...@py...> - 2002-12-17 03:03:20
|
I looked at the DeveloperWorks tutorial DTD (dwtut.dtd) and supporting docs. It seems quite straightforward: a custom set of structural elements wrapping an HTML core. It would require a few directives (like "example-column", "image-column", perhaps "xml-listing" etc.) and a mapping of document -> tutorial, top-level section -> section, next-level section -> panel. Ideally the Toot-O-Matic Writer component should check that no unsupported elements are present (lower-level sections, tables, etc.). It looks doable. You may want to subclass the writers/html4css1.py module, although your XML is so different that copy&paste may be easier. I'll be happy to answer any questions. -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |
|
From: David G. <go...@py...> - 2002-12-17 02:55:16
|
David Abrahams wrote:
> When I format the following as HTML with the current CVS
>
> ---
> * User Guided wrapping
> * Require minimal user intervention
> * But intervention must be possible when needed
> ---
>
> It looks like:
>
> ---
> *
> User Guided wrapping
> * Require minimal user intervention
> * But intervention must be possible when needed
> ---
>
> Is that to be expected?
Pretty much. The indentation of nested lists is critical. It's informative
to see how the parser interprets this input. I use the command::
python tools/quicktest.py
And feed the above as input to stdin, this is what comes out
(wrapped a bit)::
<document source="<stdin>">
<bullet_list bullet="*">
<list_item>
<definition_list>
<definition_list_item>
<term>
User Guided wrapping
<definition>
<bullet_list bullet="*">
<list_item>
<paragraph>
Require minimal user
intervention
<list_item>
<paragraph>
But intervention must be
possible when needed
You've got a bullet list item containing a definition list item
containing a bullet list in the definition. Reduce the indentation of
lines 2 & 3 by one space each and I think you'll get what you want.
> Why the CR after the initial bullet?
That I can't tell you. What browser? What stylesheet?
> The command I used was:
>
> python /src/docutils/tools/html.py --embed-stylesheet -gdts \
> fu.txt fu.html
Was the stylesheet successfully embedded? Please check.
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|
|
From: David G. <go...@py...> - 2002-12-17 02:34:11
|
[David Abrahams]
> When I try your workaround I still get a grammatically incorrect
> apostrophe in the word "lists".
The apostrophe was inserted to provide a word boundary, but has no
other meaning as markup. In other words, it's not supposed to
disappear, so it doesn't.
> Would it break anything if you added the backslash to the list of
> "certain punctuation characters"? That way, I could write
> ``list``\s and get exactly the effect I want.
[David Goodger]
> Interesting idea. May work. I'll have to think it through. There
> may be adverse side-effects due to the way backslash-escapes are
> handled internally (they're converted to \x00 null bytes, which I've
> always thought was a bit of a kludge, but it's worked thus far).
I tried it, it does work, and I can't think of any nasty side-effects.
This neat trick allows for arbitrary text after inline markup:
Those bracketed expressions are Python ``list``\s.
So I've checked it in. Available now from CVS or in 20 minutes from
the snapshot.
I don't see a good way to allow for arbitrary text *before* inline
markup though. Is there a need? We can't use a simple backslash,
since that says "the following is *not* markup". Perhaps a certain
escape sequence can be defined as "disappearing", like "\-" or "\." or
"\'". ("\ " has already been proposed as a way to indicate
non-breaking space; not implemented yet. After looking this up, it
seems the "disappearing" idea isn't new either:
<http://docutils.sf.net/spec/notes.html#character-processing>.)
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|
|
From: David A. <da...@bo...> - 2002-12-16 23:18:53
|
When I format the following as HTML with the current CVS
---
* User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed
---
It looks like:
---
*
User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed
---
Is that to be expected? Why the CR after the initial bullet?
The command I used was:
python /src/docutils/tools/html.py --embed-stylesheet -gdts fu.txt fu.html
Thanks,
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: David G. <go...@py...> - 2002-12-15 05:26:18
|
Stephan R.A. Deibel wrote: > If this looks like something potentially useful for the docutils project, > please let me know and I can clean it up and contribute it. Haven't looked at the code yet, but it sounds very cool. Yes, please, and thank you! -- David Goodger go...@py... |
|
From: David G. <go...@py...> - 2002-12-15 05:24:20
|
David Abrahams wrote: > Thanks for your reply. When I try your workaround I still get a > grammatically incorrect apostrophe in the word "lists". Would it > break anything if you added the backslash to the list of "certain > punctuation characters"? That way, I could write ``list``\s and get > exactly the effect I want. Interesting idea. May work. I'll have to think it through. There may be adverse side-effects due to the way backslash-escapes are handled internally (they're converted to \x00 null bytes, which I've always thought was a bit of a kludge, but it's worked thus far). -- David Goodger go...@py... |
|
From: David A. <da...@bo...> - 2002-12-15 03:15:20
|
David Goodger <go...@py...> writes:
> David Abrahams wrote:
>> The following line doesn't seem to format as expected:
>>
>> Those bracketed expressions are Python ``list``s. A ``list`` is
>>
>> I just wanted the word "list" to appear twice as an inline literal,
>> with the 's' following in a normal font. Is there a way to do this?
>
> reStructuredText's inline markup is designed to work at the phrase-level,
> not at the character level. So no, you can't do it, at least not directly.
> However, there is a work-around; certain punctuation characters *are*
> allowed adjacent to inline markup end-strings, such as apostrophes. So you
> could write it like this:
>
> Those bracketed expressions are Python ``list``'s. A ``list`` is
> (^ note the apostrophe)
>
> This rule allows for text like "Use double backquotes ("``") for inline
> literals." For all the gory details, see
>
> http://docutils.sf.net/spec/rst/reStructuredText.html#inline-markup
David,
Thanks for your reply. When I try your workaround I still get a
grammatically incorrect apostrophe in the word "lists". Would it
break anything if you added the backslash to the list of "certain
punctuation characters"? That way, I could write ``list``\s and get
exactly the effect I want.
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|
|
From: Stephan R.A. D. <sd...@wi...> - 2002-12-15 02:43:15
|
From: "Patrick K. O'Brien" <po...@or...>: > I'm wondering how hard it is to create a custom writer. In particular, > one that produces a particular type of xml file. I've read all the > docutils documentation and most of the emphasis seems to be on how to > write text using RST, or what kind of HTML it produces. What I haven't > seen much of is how to use RST for a particular application. In case it helps, I managed to write my own custom writer in about a day and a half of effort without any prior knowledge of docutils. Might be useful as an example of the minimum needed to glom onto the docutils framework: ftp://wingide.com/pub/outgoing/rest_writer.tgz (http also works) This and outputs plain text (often of course close to reStructuredText) plus a list of link locations and targets. This is used to feed into a custom documentation viewer and besides is useful in outputting text that's suitable to show to people that get freaked out by __ after words and stuff like that. It works on all the examples I've tried although the tables code isn't done yet so outputs junk. If this looks like something potentially useful for the docutils project, please let me know and I can clean it up and contribute it. - Stephan ------------------------------------------------------------------------ Wing IDE for Python Archaeopteryx Software, Inc www.wingide.com Take Flight! |