Hi,

Am 28.10.2011 02:34, schrieb Dag Wieers:
On Thu, 27 Oct 2011, Lex Trotman wrote:

GNU source-highlight has the ability to define output markups for the
various elements that it supports see
http://www.gnu.org/s/src-highlite/source-highlight.html#Output-Language-Definitions


Maybe with suitable styles defined in your setup these markups could
just be <text:span> elements with the appropriate style specified.

Note the lineprefix would probably map to <text:line-break/> so the
line-break.py filter wouldn't have to be run after.

Todays bright? thought.

Looks fine to me, we should make sure the style-names have their own
namespace. For the time being I added a very basic odt.outlang that only
supports bold, emphasis and implements newlines and whitespaces correctly.

So it should work as well as docbook does ;-)

I would like to improve this file to a point that we can upstream it to
source-highlight so it works out of the box with the next release !

If you want to make this work, you need to:

- copy filters/source/odt.outlang to /usr/share/source-highlight/
- modify /usr/share/source-highlight/outlang.map and add "odt =
odt.outlang"

Ok, seems to work so far.

But if I embed a listing-block inside an example-block no output appears in the .odt (using e.g. the html-backend all is fine here). Using the listing-block without the example-block works fine.


Thanks for pointing me in the right direction !


--
Wilhelm

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to