bug-texinfo
[Top][All Lists]
Advanced

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

Re: bad filenames when creating html/docbook using pretest


From: Per Bothner
Subject: Re: bad filenames when creating html/docbook using pretest
Date: Thu, 22 Nov 2012 17:13:34 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2

On 11/22/2012 02:48 PM, Patrice Dumas wrote:
On Wed, Nov 21, 2012 at 11:48:48PM -0800, Per Bothner wrote:
Using texinfo-4.13.90 and generating --html
I get a lot of file names like this:
   Input_002dOutput.html
which should be:
   Input-Output.html

I.e. a hyphen "-" becomes "_002d".

This is also the case for the previous makeinfo version.  The
specification of HTML cross references was devised around 2003.
It is documented in the manual in the 'HTML Xref' node.  If you have
comments on that specification, you're welcome.

I would suggest letting '-' be unescaped.  Yes, there is a small
chance of a clash.  But you already have that risk, at least on
case-folding file systems.

For myself, I run a sed script after using texi2any to generate
docbook, before generating html using the docbook style sheets.
So adding an extra rule -e 's|_002d|-|g' is a simple if not
100% robust solution.  So I'm not going to argue too strongly for
a solution, as I have one that works for me.  (I hate ugly file
names and ugly URLs.)

More critically, anyone using texinfo for non-English text may
want non-Ascii letters in node names.  Perhaps allow any
"NameStartChar" (as in the XML specifications) without escaping.
This makes for much nicer file names and URLs to people using
these languages.  True, %-escaping comes into effect, but this
is handled automatically by browsers and servers.  Let's defer
this to the standard mechanism.
--
        --Per Bothner
address@hidden   http://per.bothner.com/



reply via email to

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