David Goodger | 1 Oct 17:28 2004

Re: Creating styles

[David Goodger]
 >> I think there may be a need for a separate mapping of classes to
 >> concrete rendering functions; a stylesheet of sorts.  Aahz did some
 >> initial work on class stylesheets; see docs/dev/todo.txt

[Adam Chodorowski]
 > I'm not quite sure what the point would be.

The point is that the author can define their own set of descriptive
classes (also applies to custom interpreted text roles), and a mapping
between those classes and a standard set of "concrete" classes.  In
this case, a document says "subproject", and the renderer understands
that to mean "page-break".  Given a standard set of styles that
Writers generate, such a mapping could allow easy creation of custom
descriptive markup.

[Aahz]
 > I'm not sure what David thinks I was working on; what I was working
 > on was a workaround for Frame's lack of hierarchical styles.
 > Essentially, it was an add-on for reST, defining a class system
 > framework for creating styles that would then need a writer for
 > generating styles in specific output formats.  But I never got far
 > with it.

Yes, that's what I thought you were working on.  We're on the same
wavelength.  I saw your simple implementation and thought that it
might be more generally useful.  I haven't worked out any details yet
though; it's all just hand-waving.

--

-- 
(Continue reading)

David Goodger | 1 Oct 17:23 2004

Re: Page break

[Adam Chodorowski]
 > That gave me an idea; how about "subdocument"?

You can call it whatever you like, of course.  When I think of
subdocuments though, I think of a large document made up of many
files, one file per "subdocument".

--

-- 
David Goodger <http://python.net/~goodger>
Felix Wiemann | 1 Oct 18:08 2004
Picon
Picon

Re: Defaults for footnote reference style

David Goodger wrote:

> Felix Wiemann wrote:
>
>> So what about setting the default footnote style for the LaTeX
>> writer to 'superscript' and for the HTML writer to 'brackets'?
>
> +1

Done.

--

-- 
When replying to my email address, please ensure
that the mail header contains 'Felix Wiemann'.

http://www.ososo.de/

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
David Goodger | 5 Oct 04:10 2004

line block syntax added

I just added code for the new "line block" syntax to the parser.
Docs, tests, Docutils support, and HTML writer support also added.
The structure of line blocks has changed.  The old "line-block"
directive is now marked as deprecated, and the directive itself now
produces the new structure.

This may pose a problem for users of LaTeX and other output formats.
I hope that they can be updated quickly.  If not, we can temporarily
produce both old and new structures depending on context, but I'd
rather avoid that if possible.

docs:
http://docutils.sf.net/docs/ref/rst/restructuredtext.html#line-blocks

demo:
http://docutils.sf.net/docs/user/rst/demo.html#line-blocks

CVS snapshot:
http://docutils.sf.net/docutils-snapshot.tgz

--

-- 
David Goodger <http://python.net/~goodger>
grubert | 5 Oct 08:41 2004
Picon
Picon

Re: line block syntax added

On Mon, 4 Oct 2004, David Goodger wrote:

> I just added code for the new "line block" syntax to the parser.
> Docs, tests, Docutils support, and HTML writer support also added.
> The structure of line blocks has changed.  The old "line-block"
> directive is now marked as deprecated, and the directive itself now
> produces the new structure.

which is, am i correct ? ::

  | eric sings
  | a lullaby
  |   a lull
  | and a bye

gives ::

  visit_line_block
  visit_line "eric sings" depart_line
  visit_line "a lullaby" depart_line
  visit_line_block
  visit_line "a lull" depart_line
  depart_line_block
  visit_line "and a bye" depart_line
  depart_line_block

> This may pose a problem for users of LaTeX and other output formats.
> I hope that they can be updated quickly.  If not, we can temporarily
> produce both old and new structures depending on context, but I'd
> rather avoid that if possible.
(Continue reading)

grubert | 5 Oct 08:55 2004
Picon
Picon

Re: [Docutils-users] line block syntax added

i patched the latexwriter

but the indentation is wrong !

how do i know how much the original was indented ?

On Mon, 4 Oct 2004, David Goodger wrote:

> I just added code for the new "line block" syntax to the parser.
> Docs, tests, Docutils support, and HTML writer support also added.
> The structure of line blocks has changed.  The old "line-block"
> directive is now marked as deprecated, and the directive itself now
> produces the new structure.
>
> This may pose a problem for users of LaTeX and other output formats.
> I hope that they can be updated quickly.  If not, we can temporarily
> produce both old and new structures depending on context, but I'd
> rather avoid that if possible.
>
> docs:
> http://docutils.sf.net/docs/ref/rst/restructuredtext.html#line-blocks
>
> demo:
> http://docutils.sf.net/docs/user/rst/demo.html#line-blocks
>
> CVS snapshot:
> http://docutils.sf.net/docutils-snapshot.tgz
>
>

(Continue reading)

grubert | 5 Oct 08:59 2004
Picon
Picon

os curdir

when i call ``python test_functional.py`` i get ::

  Traceback (most recent call last):
  File "test_functional.py", line 22, in ?
    import DocutilsTestSupport
  File "/usr/src/other/docutils/test/DocutilsTestSupport.py", line 76, in ?
    testroot = os.path.abspath(os.path.dirname(__file__) or
    os.path.curdir)
  AttributeError: 'module' object has no attribute 'curdir'

under python22 curdir is in os under py23 under os and os.path.

from alltest.py i dont get an error

--

-- 
 BINGO: dramatically coordinate business infrastructures

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Neal D. Becker | 5 Oct 14:05 2004
Picon
Picon

Support for math?

I would like to start using docutils, but I need some decent math markup. 
Is there any work in this area?

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
David Goodger | 5 Oct 14:44 2004

Re: line block syntax added

[grubert <at> users.sourceforge.net]
>   | eric sings
>   | a lullaby
>   |   a lull
>   | and a bye

Yes, this produces:

         <line_block>
             <line>
                 eric sings
             <line>
                 a lullaby
             <line_block>
                 <line>
                     a lull
             <line>
                 and a bye

--

-- 
David Goodger <http://python.net/~goodger>
David Goodger | 5 Oct 14:45 2004

Re: [Docutils-users] line block syntax added

[grubert <at> users.sourceforge.net]
> i patched the latexwriter
> 
> but the indentation is wrong !
> 
> how do i know how much the original was indented ?

Use one arbitrary level of indentation per nested <line_block>.
I used 1.5em for HTML.  The outermost line_block should not be
indented at all.

--

-- 
David Goodger <http://python.net/~goodger>

Gmane