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"

Thanks for pointing me in the right direction !
--
-- dag wieers, [email protected], http://dag.wieers.com/
-- dagit linux solutions, [email protected], http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]

--
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