lilypond-devel
[Top][All Lists]
Advanced

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

Links to accented anchors


From: Francisco Vila
Subject: Links to accented anchors
Date: Sat, 13 Mar 2010 00:09:00 +0100

Hello. This is for perl gurus or people who know texi2html well. My
aim is to state the existence of a bug, as a remainder for the future.
I myself would fix it if I knew how to.

Currently, some links to anchors in bigpage HTML docs, in all three
es/fr/de languages, v2.13, do not work as expected, these are the
symptoms.

for example in out-www/offline-root////Documentation/notation-big-page.es.html
, let's go to NR1 from the index to appreciate the problem.

To generate anchor and links, different methods seem to exist:

- index entries and menus link to translated section names, but a bug
makes these names to crop two characters shorter if the original has
an accented letter. This smells to an utf-8 confusion between
characters and bytes.

for example

  out-www/offline-root////Documentation/notation-big-page.es.html#Notacion-music

for NR 1 Notación Musical

- in the page itself, each section has two anchors, and sometimes none
of them match the link as explained above. One is just before the
next/previous menu for that section, and has accented characters hex
encoded, as in

  notation-big-page.es.html#Notaci_00f3n-musical

The other is in English, just after the section next/previous menu, as in

  notation-big-page.es.html#Musical-notation


To summarize, the HTML code is in our example

<a name="Notaci_00f3n-musical"></a>
<table class="nav_table"> ...</table>
<a name="Musical-notation"></a>
<h1 class="chapter">1. Notación musical</h1>

but the link from the index is

<a name="toc-Notacion-musical"
href="notation-big-page.es.html#Notacion-music">1. Notación
musical</a> etc.

Same for every node with accented characters.  Split HTML docs do not
suffer from this in such a bad way, because the html file is correctly
 specified from the link; therefore, only accented anchors into an
HTML file show the problem.

Also, 2.12 docs are OK but all links and anchors are in English, so no
problem here.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com




reply via email to

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