[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: with HTML output, @minus{} is converted to a hyphen instead of a rea
From: |
Patrice Dumas |
Subject: |
Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character |
Date: |
Thu, 13 Oct 2022 21:45:01 +0200 |
On Thu, Oct 13, 2022 at 02:25:29AM +0200, Vincent Lefevre wrote:
>
> Character references such as "−" should be avoided in XHTML
> files (in case they are supported as output) because they are not
> necessarily loaded by XML parsers.
Indeed, to do XHTML, it is better to use numeric entities. For the
record, to output XHTML, my advice would be to use something along (need
the upcoming release):
texi2any --html -c HTML_ROOT_ELEMENT_ATTRIBUTES
'xmlns="http://www.w3.org/1999/xhtml"' -c USE_XML_SYNTAX=1 -c DOCTYPE '<?xml
version="1.0" encoding="UTF-8"?><!DOCTYPE html>' -c USE_NUMERIC_ENTITY=1
And also maybe
-c NO_CUSTOM_HTML_ATTRIBUTE=1
> 6.7 mentions input encoding, not output encoding:
>
> . UTF-8 is the default input encoding
As stated in another mail, the output encoding is the same as the input
encoding in makeinfo/texi2any, and has been since a long time, so if
UTF-8 is the default input encoding, it is also the output encoding.
--
Pat
- Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character, (continued)
Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character, Patrice Dumas, 2022/10/12
Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character, Patrice Dumas, 2022/10/12
Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character, Gavin Smith, 2022/10/13