Hello,
On Sun, Oct 23, 2005 at 04:50:55AM +0200, jvprat(a)gmail.com wrote:
Hi!
2005/10/22, Nicolas François:
> It's more complicated than expected: The problem is not with the
<footnote>
> tag (which is already in the inline category). The problem is caused by
> the <para> tag, which impose the break in the footnote.
>
> I don't know what can be done. Don't expect it in the next release.
IIRC, the XML module is ready to handle this. You can add
"<footnote><para>" to the inline option. It's a documented but
currently unused feature. I hope it works! :D
This is not possible at this time.
When an inline tag is found, it is not added to the tags path.
Thus, in:
<para>
foo
<footnote>
<para>
bar
</para>
</footnote>
</para>
The tags path for "bar" is <para><para>, so
<footnote><para> never match.
I attach a patch that should fix this.
I used it for the aptitude man page. I had to remove the <arg> and
<replaceable> tags from the Docbook module [0].
Then I used the following options:
-o tags="<arg><replaceable> <term><replaceable>"
-o inline="<arg> <literal><replaceable>
<para><replaceable> <filename><replaceable>"
This permitted do reduce the number of strings from 186 to 130 on the
aptitude man page (the aptitude commands and options are no more
translatable, and some strings are grouped and provide more context).
(The choice of the above options are quite empirical and are probably only
valid for this aptitude man page. I don't plan to add these options to the
default tags in the Docbook module. This is just to show that it permits
to do what I want.)
[0] This is IMO another issue: it is not possible to remove a tag from the
default list. It could be better, when a tag is provided in an
option, to first remove it from the default categories. For example,
putting <arg> in the inline category (-o inline="<arg>") is not
perfect because <arg> will also stay in the 'tags' category.
I will submit a patch for this later.
Cheers,
--
Nekral