Re: replacing acronym and tt HTML elements

2022-08-05 Thread Patrice Dumas
On Fri, Aug 05, 2022 at 06:33:33PM +0100, Gavin Smith wrote: > On Wed, Aug 03, 2022 at 03:29:45PM +0200, Patrice Dumas wrote: > > Hello, > > > > I propose to replace the elements removed from HTML5, acronym and tt. > > acronym HTML element replaced by abbr, and tt by a span, where there is > > no

Re: url protection

2022-08-05 Thread Patrice Dumas
On Fri, Aug 05, 2022 at 06:29:45PM +0100, Gavin Smith wrote: > > > > To me the question is not the locales of the browser, but the encoding > > of the HTML file. If the encoding is ISO latin 1 as in: > > > > > > Then it seems to me that the URI::Escape call should be on a ISO latin 1 > > encode

Re: epub generation depends on perl Archive::ZIP module

2022-08-05 Thread Gavin Smith
> It would be better if we could avoid loading the rest of the module > once the problem is detected, although I don't know if this is > possible without calling "die". I suppose one way would be to take the top-level code calling functions like texinfo_register_handler and put them inside a funct

Re: epub generation depends on perl Archive::ZIP module

2022-08-05 Thread Gavin Smith
On Sun, Jul 31, 2022 at 09:22:01AM +0200, Patrice Dumas wrote: > Leaving things as they are now, there is an error mesage like that, > which is not very user friendly: > > ./texi2any.pl --epub3 test_config.texi > Can't locate Archive/Zip.pm in @INC (you may need to install the Archive::Zip > mod

Re: url protection

2022-08-05 Thread Gavin Smith
On Fri, Aug 05, 2022 at 11:11:05AM -0700, Per Bothner wrote: > > I think that we should support setting the output encoding explictly to > > a Texinfo supported encoding for a long time, even it UTF-8 becomes the > > default output encoding for HTML. > > Why? Is this useful for anything? I don't

Re: url protection

2022-08-05 Thread Per Bothner
On 8/4/22 23:15, Eli Zaretskii wrote: So you mean the HTML file will have these file names encoded in UTF-8, while the file itself will be created using the locale's encoding? That seems to me to be the correct approach. (At least if the HTML contents is UTF-8 - which it should be.) --

Re: url protection

2022-08-05 Thread Per Bothner
On 8/3/22 15:15, Patrice Dumas wrote: In any case, it does not mean that using another encoding is fragile nor dangerous. There is a list of supported encodings in the Texinfo manual https://www.gnu.org/software/texinfo/manual/texinfo/html_node/_0040documentencoding.html I think that we support

Re: url protection

2022-08-05 Thread Per Bothner
On 8/5/22 10:35, Gavin Smith wrote: Could we write or copy the code for escaping a URL as it should be very short and simple? This would avoid an extra module dependency. Here is C/C++ code written by me. It works in two passes - the first counts the number of bytes that need to be escaped. F

Re: url protection

2022-08-05 Thread Gavin Smith
On Wed, Aug 03, 2022 at 03:26:08PM +0200, Patrice Dumas wrote: > Hello, > > In general, hrefs generated by texi2any to Texinfo manuals, be it the > current manual or external manual, only contain ascii characters > acceptable in hrefs. However, for some other href, for file > names, or from @url

Re: replacing acronym and tt HTML elements

2022-08-05 Thread Gavin Smith
On Wed, Aug 03, 2022 at 03:29:45PM +0200, Patrice Dumas wrote: > Hello, > > I propose to replace the elements removed from HTML5, acronym and tt. > acronym HTML element replaced by abbr, and tt by a span, where there is > no semantics for the tt, for example with @t. This would lead to > > > >

Re: url protection

2022-08-05 Thread Gavin Smith
On Thu, Aug 04, 2022 at 10:08:47PM +0200, Patrice Dumas wrote: > On Thu, Aug 04, 2022 at 08:30:01PM +0100, Gavin Smith wrote: > > On 8/3/22, Patrice Dumas wrote: > > > > > > But that was > > > not really myquestion, my question was more on whether we should use the > > > output encoding to encode

Re: removing valign in HTML tables?

2022-08-05 Thread Patrice Dumas
On Wed, Aug 03, 2022 at 03:15:28PM +0200, Patrice Dumas wrote: > Hello, > > Is there anybody opposed to removing the valign everywhere? In the end, I left some where it could be somewhat better (in index and menus formatting), I also removed align where it was the default, or for tables with only

linking to a locally installed epub file

2022-08-05 Thread Patrice Dumas
Hello, Referring to another manual from within a manual (using @pxref and similar), converted to the EPUB format, can be done as usual for HTML following the HTML XREF specification, if there is an entry in an htmlxref.cnf file. When there is no entry in an htmlxref.cnf, however, the generated li

Re: just for fun

2022-08-05 Thread pertusus
On Wed, Aug 03, 2022 at 04:30:49AM +, Werner LEMBERG wrote: > > > Also this: https://practicaltypography.com/bold-or-italic.html > > IMHO, these advices are not applicable for technical documentation, > since different kinds of meta-ness *do* make sense. I agree. Robin culd punch back, sayi

Re: url protection

2022-08-05 Thread Patrice Dumas
On Fri, Aug 05, 2022 at 09:15:06AM +0300, Eli Zaretskii wrote: > > From: Gavin Smith > > Date: Thu, 4 Aug 2022 20:34:01 +0100 > > > > On 8/4/22, Eli Zaretskii wrote: > > > > > > Isn't the main issue here about encoding _file_names_, and the > > > encoding of HTML is secondary? I mean file names