(it looks like I never received this email:
http://lists.gnu.org/archive/html/help-texinfo/2012-02/msg00001.html
I know that makes my reply quite late...)
Patrice Dumas, Feb 2012:
On Thu, Jan 19, 2012 at 12:07:46AM +0100, Marc Glisse wrote:
> Hello,
>
> I am looking for a way to add <link rel="canonical" href="somewhere/$file"
> /> to the headers of the generated html pages. With makeinfo, it doesn't
> seem possible :-(
>
> So I looked at texi2html (with --node-files to get a similar result),
> there is $EXTRA_HEAD, but I couldn't see how to reference the file name
> from there (I am not a perl guru).
I don't really understand your quastion here. With texi2html you can
use an init files with content:
$EXTRA_HEAD = '<link rel="canonical" href="somewhere/$file"/>';
With texi2any, it could be along
./texi2any.pl --set EXTRA_HEAD='<link rel="canonical" href="somewhere/$file"/>'
--html c.texi
or in an init file
set_from_init_file('EXTRA_HEAD', '<link rel="canonical"
href="somewhere/$file"/>');
Hello,
using any of these techniques inserts $file literally in the html files,
instead of replacing it with the name of each file.
After reading:
perldoc -q 'How can I expand variables in text strings'
it doesn't seem easy to change that.
(hacking HTML.pm locally is easy, but I'd rather not)
--
Marc Glisse