David Goodger <goodger@...> writes:
> William Dode wrote:
> > What is the plan for the generic class directive ?
> No change since you last asked:
> _`misc.class`: Specify a "class" attribute value to an element
> (enclosing? preceding? following?). See docutils-develop
> I haven't finalized its behavior in my mind. What exactly should the
> directive do? Please describe what you'd like it to do and we may
> settle on a spec; then the implementation should be easy.
For books and newspaper, i need somes directives more :
sub-title (a paragraph, not just one line)
exergue (citation in the begin of the book)
inter-titre (sentence between two paragraphs, often a citation of a part
I don't know if they could be put in the core or not ?
I need also somes others, but not often, like centered text, foreign
paragraph etc. For this it could be a special class just for one
stylesheet, just for one text.
.. class:: centered
will be <div class=centered
or maybe something more generic who could work even if not all special
case have a stylesheet :
<div class=special id=centered
I thought also that it could be a property of a current directive :
.. note:: title
<div class=note id=my-special-note
like that we could do it for all the directives (specialy line-block...)
I hope i don't ask too much in the same time with my bad english...
It's why i asked for the plan...
William Dode - http://flibuste.net