> Summarizing, I'd like to find a way to generate a PDF file via > either dblatex or fop that uses an external program which performs > the colorization markup. In our example, the external program is > 'source-highlight' and it is aware of a particular "C" language > dialect, not currently recognized by the dblatex tool chain. > > Is there a way to get there from here? > > - Gary >
Hi Gary, I havn't done it but I would suggest that you investigate using source-highlight to output docbook that you pass through to fop or latex that is passed through to dblatex by making a custom filter to control source-highlight in these modes. You will see from the asciidoc documentation http://www.methods.co.nz/asciidoc/userguide.html#X59 that filters usually have their own extra bit of conf file, that would allow you to run source highlight with whatever additional arguments you need to generate these differing outputs and to paste it into whatever docbook wrapping the backend expected, eg a CDATA inside a <programlisting>. You can also use conditionals in the configuration to call source-highlight with differing options depending on the desired toolchain. You can set an attribute on the command line eg -a highlight-format=latex to control this. Copy the existing html source filter conf entries and add them as another choice and you can share the same source file to HTML, PDF via dblatex and via FOP. Cheers Lex -- 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.
