Re: HTML node names: Not emitting 'Top (Manual name)'</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=help-texinfo@gnu.org&q=from:%22pertusus%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">pertusus</span></span></a></span> <span class="date"><a href="/search?l=help-texinfo@gnu.org&q=date:20240317" rel="nofollow">Sun, 17 Mar 2024 04:29:09 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>On Sat, Mar 16, 2024 at 09:29:59AM +0200, Eli Zaretskii wrote: > If and when we understand the rationale for that code, and you can > suggest how to achieve the same with texi2any customizations, I can > assure you that we in the Emacs maintenance will enthusiastically > consider switching to those customizations.</pre><pre> Here is a proposal for an init file. The <div> placement in split case was not that easy to achieve. It unveiled bugs in texi2any and showed the need for a new customization variable so it will only work correctly with the development version/next release. I left the <link> in <head> that are removed by the admin.el script, as I think it is better to leave them in and my feeling is that their removal is not intended. I also left the copyright in comment because to remove it would mean having the whole beginning of file code redone in the init file, which is possible, but much more of a burden for long term maintenance. Also, even if you could prefer if this copyright comment was not there, I do not think that it is very important as it is a comment. A side note on the added link and meta, I kept them as is but for "<link rev=\"made\" href=\"<a rel="nofollow" href="mailto:bug-gnu-em...@gnu.org\"">mailto:bug-gnu-em...@gnu.org\"</a>;> I read on <a rel="nofollow" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel</a> that "made" is obsolete and should be replaced by "author" (although processors should already do that). I also have a doubt on the ICBM meta, I am not familiar enough with Boston outskirts to know if the ICBM is still valid, but I think that it should be checked by someone who could know: "<meta name=\"ICBM\" content=\"42.256233,-71.006581\">" -- Pat </pre><pre> use strict; texinfo_set_from_init_file('TOP_BUTTONS', undef); texinfo_set_from_init_file('EXTRA_HEAD', '<link rev="made" href="mailto:bug-gnu-em...@gnu.org"> <link rel="icon" type="image/png" href="/graphics/gnu-head-mini.png"> <meta name="ICBM" content="42.256233,-71.006581"> <meta name="DC.title" content="gnu.org"> '); # The following adds a <div>. This is only done for the Top element # if split. The opening div is at the same place, right after body open # if split and non-split. The div is closed at the end of the document # if non-split and at the end of the top element before the table of # contents if split. # used if split sub _emacs_texinfo_html_customization_convert_heading_command($$$$$) { my $self = shift; my $cmdname = shift; my $element = shift; my $args = shift; my $content = shift; # div opening is before the Top node, after body open if ($cmdname eq 'node' and $element->{'extra'} and $element->{'extra'}->{'normalized'} eq 'Top') { my $result = &{$self->default_command_conversion($cmdname)}($self, $cmdname, $element, $args, $content); return '<div id="content" class="inner">'."\n".$result; # div closing is at the end of the top element, before the after_top # contents } elsif ($cmdname eq 'top') { return &{$self->default_command_conversion($cmdname)}($self, $cmdname, $element, $args, $content . "</div>\n"); } # call the default formatting function for other nodes return &{$self->default_command_conversion($cmdname)}($self, $cmdname, $element, $args, $content); } if (defined(texinfo_get_conf('SPLIT')) and texinfo_get_conf('SPLIT') eq '') { # if non-split, the div is closed at the end of the document texinfo_set_from_init_file('AFTER_BODY_OPEN', '<div id="content" class="inner">'."\n"); texinfo_set_from_init_file('PRE_BODY_CLOSE', "</div>\n"); } else { foreach my $cmdname ('top', 'node') { texinfo_register_command_formatting($cmdname, \&_emacs_texinfo_html_customization_convert_heading_command); } } sub _emacs_texinfo_html_customization_format_css_lines($;$) { my $self = shift; my $filename = shift; return '<style type="text/css"> @import url(\'/software/emacs/manual.css\'); </style> '; } texinfo_register_formatting_function('format_css_lines', \&_emacs_texinfo_html_customization_format_css_lines); 1; </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg03261.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#03260">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#03260">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg03262.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg03251.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Eli Zaretskii</span></li> <li class="icons-email"><span class="subject"><a href="msg03253.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03256.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Eli Zaretskii</span></li> <li class="icons-email"><span class="subject"><a href="msg03257.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03258.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Eli Zaretskii</span></li> <li class="icons-email"><span class="subject"><a href="msg03259.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03264.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Gavin Smith</span></li> <li class="icons-email"><span class="subject"><a href="msg03266.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03267.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Gavin Smith</span></li> <li class="icons-email"><span class="subject"><a href="msg03261.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Gavin Smith</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: HTML <title> node names: Not emitting 'Top (Man...</span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03262.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Gavin Smith</span></li> <li class="icons-email"><span class="subject"><a href="msg03268.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Eli Zaretskii</span></li> <li class="icons-email"><span class="subject"><a href="msg03269.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">pertusus</span></li> <li class="icons-email"><span class="subject"><a href="msg03263.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Arsen Arsenović</span></li> <li class="icons-email"><span class="subject"><a href="msg03250.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Patrice Dumas</span></li> <li class="icons-email"><span class="subject"><a href="msg03252.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Eli Zaretskii</span></li> <li class="icons-email"><span class="subject"><a href="msg03254.html">Re: HTML <title> node names: Not emitting 'Top (Man...</a></span> <span class="sender italic">Patrice Dumas</span></li> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: HTML <title> node names: Not emitting 'Top (Manual name)'"> <input type="hidden" name="msgid" value="ZfbT_UiV4oJAFYPi@free.fr"> <input type="hidden" name="relpath" value="help-texinfo@gnu.org/msg03260.html"> <input type="submit" value=" pertusus "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="help-texinfo@gnu.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search help-texinfo"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/help-texinfo@gnu.org/">help-texinfo - all messages</a></li> <li class="icons-about"><a href="/help-texinfo@gnu.org/info.html">help-texinfo - about the list</a></li> <li class="icons-expand"><a href="/search?l=help-texinfo@gnu.org&q=subject:%22Re%5C%3A+HTML+%3Ctitle%3E+node+names%5C%3A+Not+emitting+%27Top+%5C%28Manual+name%5C%29%27%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg03261.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg03262.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">ZfbT_UiV4oJAFYPi@free.fr</li> </ul> </div> </body> </html>