On Sunday, July 29, 2012 1:22:31 AM UTC-4, Lex Trotman wrote:
>
> On 29 July 2012 08:13, Lex Trotman wrote:
> > On 29 July 2012 01:01, DonM wrote:
> >> I am using asciidoc 8.6.7 under windows.
> >>
> >> Using apostrophes to generate a horizontal ruler works fine when using
> >> asciidoc to generate single page html output, but does not seem to be
> >> recognized when using a2x to generate htmlhelp. The apostrophes are
> >> swallowed, but I don't get a ruler.
> >>
> >> Similarly, a trailing + sign on a line generates a line break under
> >> asciidoc, but does not do so using a2x to generate htmlhelp.
> >>
> >> Is there a way to get such formatting with htmlhelp? Thanks,
> >
> > Both of these are a function of the docbook to htmlhelp toolchain, not
> > asciidoc/a2x.
> >
> > See http://sagehill.net/docbookxsl/OptionsPart.html for some guidance
> > on that toolchain.
> >
>
> Opps forgot to mention that asciidoc outputs custom processing
> instructions ?asciidoc-hr? and ?asciidoc-br? that you need to detect
> in the xsl stylesheet to generate the appropriate markup.
>
> Looking at the xsl customisations for the pdf toolchains might also
> give you some hints.
>
>
I'm a newbiew at this, but I added this:
<!-- Line break -->
<xsl:template match="processing-instruction('asciidoc-br')">
<br/>
</xsl:template>
<!-- Horizontal ruler -->
<xsl:template match="processing-instruction('asciidoc-hr')">
<hr/>
</xsl:template>
to asciidoc-8.6.7\docbook-xsl\htmlhelp.xsl, and that does the trick.
Is there any reason this shouldn't be part of the standard distribution?
Don
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/asciidoc/-/wNAlKL6EjJkJ.
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.