On Fri, 28 Oct 2011, Wilhelm wrote:
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.
There is a very big problem with ODF where paragraphs inside paragraphs
are not allowed. This means that we have to be very careful that this does
not occur. Unfortunately, when doing odt.conf it is unclear how blocks
are nested, and how to prevent this from happening in the first place.
To me it's the biggest concern at the moment for ODF support :-/
--
-- 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.