[debiandoc-sgml-pkgs] Bug#389065: debiandoc-sgml: [INTL:ru] Russian UTF-8 locale

Yuri Kozlov kozlov.y at gmail.com
Sat Sep 23 17:52:58 UTC 2006


Package: debiandoc-sgml
Version: 1.1.96
Severity: wishlist
Tags: l10n, patch

Hello.
The attached diff is contains the 'iconv -f koi8-r -t utf-8' conversion 
result on the Locale/ru_RU.KOI8-R/* files with a small translation improvement.

As in the 'etch' by default used a utf-8 encoding for Russian, it would be nice to have
a ru_RU.UTF-8 locale support.
This diff is not changed the 'system' alias 'ru'.
I have builded russian html and pdf files from release-notes sources and
it is works.

Many thanks to Eugeniy for his a UTF-8 patch (#366992).

Regards,
Yuri Kozlov

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages debiandoc-sgml depends on:
ii  libhtml-parser-perl       3.54-1         A collection of modules that parse
ii  libroman-perl             1.1-20         Perl module for converting between
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  libtext-format-perl       0.52-20        Perl module for formatting (text) 
ii  liburi-perl               1.35-2         Manipulates and accesses URI strin
ii  perl                      5.8.8-4        Larry Wall's Practical Extraction 
ii  perl-modules [libi18n-lan 5.8.8-4        Core Perl modules
ii  sgml-base                 1.26           SGML infrastructure and SGML catal
ii  sgml-data                 2.0.3          common SGML and XML data
ii  sgmlspl                   1.03ii-31      SGMLS-based example Perl script fo
ii  sp                        1.3.4-1.2.1-47 James Clark's SGML parsing tools

Versions of packages debiandoc-sgml recommends:
pn  cjk-latex                   <none>       (no description available)
ii  gs-gpl [gs]                 8.50-1.1     The GPL Ghostscript PostScript int
pn  hlatex                      <none>       (no description available)
ii  libpaper1 [libpaperg]       1.1.19       Library for handling paper charact
ii  tetex-bin                   3.0-18       The teTeX binary files
ii  tetex-extra                 3.0-20       Additional library files of teTeX
ii  texinfo                     4.8.dfsg.1-1 Documentation system for on-line i

-- no debconf information
-------------- next part --------------
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/Alias.pm debiandoc-sgml-1.1.96/tools/lib/Locale/Alias.pm
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/Alias.pm	2006-06-03 13:10:01.000000000 +0400
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/Alias.pm	2006-09-23 17:48:42.000000000 +0400
@@ -148,6 +148,7 @@
 		   'ru'				=> 'ru_RU.KOI8-R',
 		   'ru_RU'			=> 'ru_RU.KOI8-R',
 		   'ru_RU.KOI8-R'		=> 'ru_RU.KOI8-R',
+		   'ru_RU.UTF-8'		=> 'ru_RU.UTF-8',
 
 		   'sk'				=> 'sk_SK.ISO8859-2',
 		   'sk_SK'			=> 'sk_SK.ISO8859-2',
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/HTML debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/HTML
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/HTML	1970-01-01 03:00:00.000000000 +0300
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/HTML	2006-09-23 18:54:07.000000000 +0400
@@ -0,0 +1,25 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/ru_RU.UTF-8/HTML: locale for Russian output in HTML format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'charset' => 'utf-8',
+	   'abstract' => '?????????',
+	   'copyright notice' => '???????? ?? ????????? ??????',
+	   'contents' => '??????????',
+	   'chapter' => sub { return "????? $_[0]" },
+	   'appendix' => sub { return "?????????? $_[0]" },
+	   'section' => sub { return "?????? $_[0]" },
+	   'subsection' => sub { return "?????? $_[0]" },
+	   'subsubsection' => sub { return "?????? $_[0]" },
+	   'paragraph' => sub { return "?????? $_[0]" },
+	   'subparagraph' => sub { return "?????? $_[0]" },
+	   'footnotes' => '??????',
+	   'comments' => '???????????',
+	   'next' => '??????',
+	   'previous' => '?????',
+	   );
+
+## ----------------------------------------------------------------------
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/LaTeX debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/LaTeX
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/LaTeX	1970-01-01 03:00:00.000000000 +0300
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/LaTeX	2006-09-23 18:53:44.000000000 +0400
@@ -0,0 +1,16 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/ru_RU.UTF-8/LaTeX2e: locale for Russian output in LaTeX2e format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'babel' => 'russian',
+	   'inputenc' => 'utf8',
+	   'abstract' => '?????????',
+	   'copyright notice' => '???????? ?? ????????? ??????',
+	   'after begin document' => '\\renewcommand{\\vpageref}[1]{?? ???. \\pageref{#1}}',
+	   'pdfhyperref' => 'unicode'
+	   );
+
+## ----------------------------------------------------------------------
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/Texinfo debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/Texinfo
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/Texinfo	1970-01-01 03:00:00.000000000 +0300
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/Texinfo	2006-09-23 18:50:37.000000000 +0400
@@ -0,0 +1,18 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/ru_RU.UTF-8/Texinfo: locale for Russian output in Texinfo format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'detailed' => '????????? ???????? ????????? ??????',
+	   'chapter' => sub { return "????? $_[0]" },
+	   'appendix' => sub { return "?????????? $_[0]" },
+	   'section' => sub { return "?????? $_[0]" },
+	   'subsection' => sub { return "?????? $_[0]" },
+	   'subsubsection' => sub { return "?????? $_[0]" },
+	   'paragraph' => sub { return "?????? $_[0]" },
+	   'subparagraph' => sub { return "?????? $_[0]" },
+	   );
+
+## ----------------------------------------------------------------------
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/Text debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/Text
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/Text	1970-01-01 03:00:00.000000000 +0300
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/Text	2006-09-23 18:55:23.000000000 +0400
@@ -0,0 +1,20 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/ru_RU.UTF-8/Text: locale for Russian output in plain text format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'abstract' => '?????????',
+	   'copyright notice' => '???????? ?? ????????? ??????',
+	   'contents' => '??????????',
+	   'chapter' => sub { return "????? $_[0]" },
+	   'appendix' => sub { return "?????????? $_[0]" },
+	   'section' => sub { return "?????? $_[0]" },
+	   'subsection' => sub { return "?????? $_[0]" },
+	   'subsubsection' => sub { return "?????? $_[0]" },
+	   'paragraph' => sub { return "?????? $_[0]" },
+	   'subparagraph' => sub { return "?????? $_[0]" },
+	   );
+
+## ----------------------------------------------------------------------
diff -Naur debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/TextOV debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/TextOV
--- debiandoc-sgml-1.1.96.orig/tools/lib/Locale/ru_RU.UTF-8/TextOV	1970-01-01 03:00:00.000000000 +0300
+++ debiandoc-sgml-1.1.96/tools/lib/Locale/ru_RU.UTF-8/TextOV	2006-09-23 18:55:41.000000000 +0400
@@ -0,0 +1,20 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/ru_RU.UTF-8/TextOV: locale for Russian output in overstrike text format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'abstract' => '?????????',
+	   'copyright notice' => '???????? ?? ????????? ??????',
+	   'contents' => '??????????',
+	   'chapter' => sub { return "????? $_[0]" },
+	   'appendix' => sub { return "?????????? $_[0]" },
+	   'section' => sub { return "?????? $_[0]" },
+	   'subsection' => sub { return "?????? $_[0]" },
+	   'subsubsection' => sub { return "?????? $_[0]" },
+	   'paragraph' => sub { return "?????? $_[0]" },
+	   'subparagraph' => sub { return "?????? $_[0]" },
+	   );
+
+## ----------------------------------------------------------------------


More information about the Debiandoc-sgml-pkgs mailing list