Re: HTML generation of the release notes
On Sat, May 28, 2005 at 10:59:08AM +0200, Nikolai Prokoschenko wrote:
> Hello!
>
> I have tried generating HTML and text documentation for the russian
> translation of the release notes and have got two really stupid problems:
>
> 1. The text version is fine, but it's way too narrow. I assume it happens
> because of using Unicode which is twice as wide speaking in byte terms.
>
> 2. The HTML version is broken - the text generated is UTF-8 while the
> encoding is assumed to be KOI8-R.
>
> You can see both of these errors on our web-page [1].
>
> Any way to fix this?
Yes, a very simple one:
mv -i release-notes.ru.sgml release-notes.ru.sgml.backup
iconv -f UTF-8 -t KOI8-R release-notes.ru.sgml.backup > release-notes.ru.sgml
ru_RU.KOI8-R is the only Russian locale supported by debiandoc-sgml. See
ls /usr/share/perl5/DebianDoc_SGML/Locale/
It should be trivial to support UTF-8 for text and HTML (either by
adding new locale files such as ru_RU.UTF-8 or by calling iconv from
debiandoc-sgml tools) but it's more complicated for other formats.
Jens
Reply to: