texi2html-bug
[Top][All Lists]
Advanced

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

Re: [Texi2html-bug] Footnote formatting


From: Patrice Dumas
Subject: Re: [Texi2html-bug] Footnote formatting
Date: Wed, 27 Aug 2008 16:49:47 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Sun, Aug 24, 2008 at 04:29:14PM +0200, Reinhold Kainhofer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 2) I tried to override this behavior in foot_line_and_ref, but unfortunately, 
> the $lines already contain the <p> ..</p> tags around the text, so it's not 
> so easy to get the normal footnote format in a general way. Only by assuming 
> that the first line starts with <p>, one can modify it to contain the [nr] or 
> <sup>nr</sup>:
>     my $tmptxt =  &$anchor($footnote_id, $document_file . "#$place_id",
>     $lines->[0] =~ s/^<p>/<p>$tmptxt /;
> It works, but I consider this a nasty hack, relying on some internal behavior 
> that might change any time...

I try to keep the same style than makeinfo --html in
examples/makeinfo.init. I updated it to format footnotes like makeinfo
does. It was rather cumbersome. I used the pragraph formatting function
(which is right), but I had to export all the information needed for
footnote formatting, it is a bit ugly. It sortof relies on internal behaviour
since it uses the $state a lot but doesn't require postprocessing the html 
which should never ever be done.

So you could take what I have done, and sync to makeinfo.init from time
to time, when I break the API ;-).

> 3) I get the impression that $number_in_page does not correctly count the 
> footnotes on the current page. In particular, the values of the parameters to 
> foot_line_and_ref are:

Looks like I didn't had any test for this issue, this is fixed now,
thanks for the report as always.

--
Pat




reply via email to

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