> From: Bill Purcell
> To: docutils-users@...
> Sent: Tue, February 16, 2010 6:02:18 PM
> Subject: [Docutils-users] interpretive text role with the odtwriter
> I am trying to create an interpretive text role to use with the odt writer
> .. role:: dates
> and then use is in a line like
> | **Southern Illinois University**, Edwardsville, IL :dates:`May 2008 - Present`
> This works great with LaTeX but does not seem to work with the
> odtwriter becasue I get the following error
> resume.rst:: (WARNING/2) missing visit_inline
> resume.rst:: (WARNING/2) missing depart_inline
> Are interpretive text roles not supported with the odtwriter? Is there
> a way to get a similar effect?
Here are a couple of fixes in response to Bill's messages:
1. Now, odf-odt writer does not add an extra blank line (a
paragraph break) after a line-block. I believe that is what we
want. If you do want the extra space, you can add an
additional line-block line (with vertical bar) and no text.
2. You can now use a role and use in-line markup to apply that
role. This can be used to apply a character style that is
defined in your stylesheet (styles.odt or a copy of it). Is
that what we want it to do?
I've attached patch files for (1) odf-odt writer
(writers/odf_odt/__init__.py) and (2) the doc file
(docs/user/odt.txt), to which I added a few notes on the use of
I'll do a bit more testing, and then, if I do not hear any
grumbling, I'll check it in.