[Aptitude-devel] All documentation should be in UTF-8 encoding

Miroslav Kure kurem at upcase.inf.upol.cz
Sun Aug 31 16:08:04 UTC 2008


Hi,

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: 

diff -r b9aed5b27b3a doc/aptitude-html.xsl
--- 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
@@ -9,6 +9,7 @@
 
 <xsl:import href="aptitude-common.xsl"/>
 
+<xsl:param name="chunker.output.encoding" select="'utf-8'"/>
 <xsl:param name="chunk.section.depth" select="2"/>
 <xsl:param name="chunk.quietly" select="1"/>
 <xsl:param name="chunk.first.sections" select="1"/>


diff -r b9aed5b27b3a doc/aptitude-txt.xsl
--- 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
@@ -8,6 +8,8 @@
 <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/>
 
 <xsl:import href="aptitude-common.xsl"/>
+
+<xsl:output method="html" encoding="UTF-8" indent="no"/>
 
 <xsl:param name="preferred.mediaobject.role">text</xsl:param>
 

Cheers
-- 
Miroslav Kure




More information about the Aptitude-devel mailing list