texi2html-bug
[Top][All Lists]
Advanced

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

[Texi2html-bug] Setting $element->{id} if manual is not split (i.e. elem


From: Reinhold Kainhofer
Subject: [Texi2html-bug] Setting $element->{id} if manual is not split (i.e. element_file_name is not called)?
Date: Fri, 22 Aug 2008 20:43:19 +0200
User-agent: KMail/1.9.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Patrice,
One more issue we are running into (sorry for bothering you once again! 
AFAICS, that's hopefully the last issue we encounter with texi2html, 
everything else is caused by our build system, see 
http://wiki.kainhofer.com/lilypond/texi2html_issues): 

We are creating two versions of each manual, one split at each numbered 
section and one unsplit (which we call -big-page.html). Now, for the split 
html files, I adjust the $element->{id} in the element_file_name function, 
because the @section title might be translated, while the anchor in the html 
file should be the original English one. That works just fine.

However, in the -big-page.html files, the element_file_name function is never 
called and the (unnumbered)?(sub)*sections all get an anchor of the form 
SECxx, which is definitely not what we want. The anchor names for nodes are 
assigned from the node name (and using the node_file_name function, which is 
also called if the manual is not split), while anchors for sections get a 
default SECxx without any chance to modify it. 

For node names, I'm able to modify the anchor by setting $node->{id} in 
node_file_name, but for sections I don't know any way to change the 
$element->{id} to something other than SECxxx.

To see why this is an issue: Look at 
http://kainhofer.com/~lilypond/texi2html-out/Documentation/user/lilypond-learning-big-page.html

The internal links in the text to other sections in the manual work just fine 
(they use the node anchors), but the TOC does not use the node anchors, but 
the sections and thus the SECxx anchors (which change quite frequently, when 
new sections are added to the manual, so they should not be used for 
bookmarks or sending links to mailing lists!).

So, is there any way to modify the id of the elements if a manual is not 
split?

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIrwjHTqjEwhXvPN0RAgLvAKChhkV4R3+3XpKU5cIczoKaVH2Y7ACgnb64
PKWBaWQwJQj+pLPrawl6CBo=
=CyX2
-----END PGP SIGNATURE-----




reply via email to

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