makeinfo --html

View: New views
4 Messages — Rating Filter:   Alert me  

makeinfo --html

by Nikos Mavrogiannopoulos :: Rate this Message:

| View Threaded | Show Only this Message

Hello,
 When generating html output of a texi file with split node internal
links set with @ref{} are not working when they contain underscores.

When for example I was linking to function gnutls_trust_list_verify_crt
makeinfo linked to the html file:
gnutls_005fx509_005ftrust_005flist_005fverify_005fcrt.html

which contained the following:
<meta http-equiv="refresh" content="0;
url=X509-certificate-API.html#gnutls%5fx509%5ftrust%5flist%5fverify%5fcrt">

If I check X509-certificate-API.html it contains the following node:
<a name="gnutls_005fx509_005ftrust_005flist_005fverify_005fcrt">

So it seems the the "_005f" is replaced by "%5f" in the
gnutls_005fx509_005ftrust_005flist_005fverify_005fcrt.html file.

regards,
Nikos


PS. I used the following command to generate split nodes:
$ makeinfo --html -o gnutls.html --css-include=../texinfo.css ../gnutls.texi

$ makeinfo --version
makeinfo (GNU texinfo) 4.13


Re: makeinfo --html

by Karl Berry :: Rate this Message:

| View Threaded | Show Only this Message

Hi again Nikos,

   When generating html output of a texi file with split node internal
   links set with @ref{} are not working when they contain underscores.

   $ makeinfo --html -o gnutls.html --css-include=../texinfo.css ../gnutls.texi

I'm sorry, but I'm not able to easily reproduce this from the
description.  Can you send a runnable example?  (And then, Patrice, I
trust you will try it. :)

It may well be that this was a bug in the C makeinfo.

Thanks,
karl


Re: makeinfo --html

by Nikos Mavrogiannopoulos :: Rate this Message:

| View Threaded | Show Only this Message

On 01/16/2012 01:30 AM, Karl Berry wrote:

> Hi again Nikos,
>
>    When generating html output of a texi file with split node internal
>    links set with @ref{} are not working when they contain underscores.
>
>    $ makeinfo --html -o gnutls.html --css-include=../texinfo.css ../gnutls.texi
>
> I'm sorry, but I'm not able to easily reproduce this from the
> description.  Can you send a runnable example?  (And then, Patrice, I
> trust you will try it. :)
I attach a small example.

regards,
Nikos


[test.texi]

\input texinfo   @c -*-texinfo-*-
@comment %**start of header
@setfilename test.info
@settitle Test


@macro showenumdesc{ref,cap}
@float Figure,\ref\
This is a figure
@caption{\cap\}
@end float
@end macro

hello there, this is a link @ref{my_big_link3}.

@include links.texi

@bye


[links.texi]

@subheading my_big_link1
@anchor{my_big_link1}

This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text

@subheading my_big_link2
@anchor{my_big_link2}

This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text

@subheading my_big_link3
@anchor{my_big_link3}

This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text
This is a long text



Re: makeinfo --html

by Patrice Dumas :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, Jan 15, 2012 at 04:30:08PM -0800, Karl Berry wrote:

> Hi again Nikos,
>
>    When generating html output of a texi file with split node internal
>    links set with @ref{} are not working when they contain underscores.
>
>    $ makeinfo --html -o gnutls.html --css-include=../texinfo.css ../gnutls.texi
>
> I'm sorry, but I'm not able to easily reproduce this from the
> description.  Can you send a runnable example?  (And then, Patrice, I
> trust you will try it. :)

It works fine.  It was already tested for, too...

--
Pat