bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

docbook conversion issue: nesting of formatting


From: Aharon Robbins
Subject: docbook conversion issue: nesting of formatting
Date: Fri, 31 Jan 2014 15:00:31 +0200
User-agent: Heirloom mailx 12.5 6/20/10

[ PLEASE cc me on all replies, as I'm not subscribed to this group. ]

Hello all.

It looks like I'm going to need to exercise the conversion of Texinfo
to docbook, so you can expect to start hearing from me. :-)

The first issue has to do with nesting.  Texinfo, like TeX, is quite
general about letting you nest one thing inside another. Docbook,
on the other hand, is quite picky and context sensitive.  For example,
something like

        The term @address@hidden program} refers ...

produce this:

        The term <firstterm><command>awk</command> program</firstterm> refers 
...

The problem is that <command>...</command> is not allowed to appear
inside <firstterm>...</firsterm>.

The best way to fix this is to start teaching makeinfo what is
allowed and not allowed where, but to do that fully it would probably
have to start parsing the docbook DTD, and that's overkill.

Is it possible to simply "pull out" embedded items so that for
something like this we get

        The term <command>awk</command> <firstterm>program</firstterm> ...

Much thanks,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]