[Aptitude-devel] All documentation should be in UTF-8 encoding
Daniel Burrows
dburrows at debian.org
Mon Sep 1 14:16:49 UTC 2008
On Sun, Aug 31, 2008 at 06:08:04PM +0200, Miroslav Kure <kurem at upcase.inf.upol.cz> was heard to say:
> Etch was the first Debian release using UTF-8 encoding by default.
> Now, with Lenny approaching, I believe all files containing
> different characters than pure ASCII should be UTF-8 encoded.
>
> Currently the documentation generated from docbook sources
> is by default encoded to ISO-8859-1 and therefore not very readable
> in UTF-8 environment.
>
> The following patch changes the output encoding for html and text
> transformations:
Thanks for pointing that out. One question:
> --- a/doc/aptitude-html.xsl Mon Aug 25 16:10:25 2008 +0200
> +++ b/doc/aptitude-html.xsl Sun Aug 31 17:58:10 2008 +0200
[snip]
> +<xsl:param name="chunker.output.encoding" select="'utf-8'"/>
[snip]
> --- a/doc/aptitude-txt.xsl Mon Aug 25 16:10:25 2008 +0200
> +++ b/doc/aptitude-txt.xsl Sun Aug 31 17:58:10 2008 +0200
[snip]
> +<xsl:output method="html" encoding="UTF-8" indent="no"/>
Both the text and the HTML modes generate HTML as output, and they
use the same stylesheet. Is there a reason you used different
techniques to set the output encoding in each case?
Thanks,
Daniel
More information about the Aptitude-devel
mailing list