[debiandoc-sgml-pkgs] Bug#366992: debiandoc-sgml: [INTL:uk] Ukrainian language support

Eugeniy Meshcheryakov eugen at univ.kiev.ua
Fri May 12 17:19:50 UTC 2006


Package: debiandoc-sgml
Version: 1.1.95
Severity: wishlist
Tags: patch l10n

Please, apply attached patch for Ukrainian language support. This patch
also contains some fixes needed for UTF-8 support (not ideal, but at
least useable).

The patch was made by Borys Yanovych and improved by me.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc3-me
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.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-19         Perl module for converting between
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  libtext-format-perl       0.52-19        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:
ii  cjk-latex                4.5.1-5+b1      A LaTeX macro package for CJK (Chi
ii  gs                       8.50-1.1        Transitional package
ii  gs-esp [gs]              8.15.1.dfsg.1-2 The Ghostscript PostScript interpr
ii  gs-gpl [gs]              8.50-1.1        The GPL Ghostscript PostScript int
pn  hlatex                   <none>          (no description available)
ii  libpaper1 [libpaperg]    1.1.14-7        Library for handling paper charact
ii  tetex-bin                3.0-16          The teTeX binary files
ii  tetex-extra              3.0-17          Additional library files of teTeX
ii  texinfo                  4.8.dfsg.1-1    Documentation system for on-line i

-- no debconf information
-------------- next part --------------
diff -urN debiandoc-sgml-1.1.95/sgml/dtd/debiandoc.dcl /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/sgml/dtd/debiandoc.dcl
--- debiandoc-sgml-1.1.95/sgml/dtd/debiandoc.dcl	2001-04-18 03:07:10.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/sgml/dtd/debiandoc.dcl	2006-05-07 17:43:31.000000000 +0300
@@ -15,7 +15,7 @@
           32 95 32
          127  1 UNUSED
 BASESET  "ISO Registration Number 100//CHARSET ECMA-94 Right Part of Latin Alphabet Nr. 1//ESC 2/13 4/1"
-DESCSET  128 32 UNUSED
+DESCSET  128 32 32
          160 96 32
 CAPACITY PUBLIC    "ISO 8879:1986//CAPACITY Reference//EN"
 SCOPE    DOCUMENT
@@ -23,10 +23,7 @@
 SHUNCHAR CONTROLS   0   1   2   3   4   5   6   7   8   9
                    10  11  12  13  14  15  16  17  18  19
                    20  21  22  23  24  25  26  27  28  29
-                   30  31                     127 128 129
-                  130 131 132 133 134 135 136 137 138 139
-                  140 141 142 143 144 145 146 147 148 149
-                  150 151 152 153 154 155 156 157 158 159
+                   30  31                     127 
 BASESET  "ISO 646-1983//CHARSET International Reference Version
           (IRV)//ESC 2/5 4/0"
 DESCSET  0 128 0
diff -urN debiandoc-sgml-1.1.95/tools/lib/Locale/Alias.pm /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/Alias.pm
--- debiandoc-sgml-1.1.95/tools/lib/Locale/Alias.pm	2005-05-26 23:50:38.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/Alias.pm	2006-05-07 14:55:27.000000000 +0300
@@ -161,6 +161,10 @@
 		   'tr_TR'			=> 'tr_TR.ISO8859-9',
 		   'tr_TR.ISO8859-9'		=> 'tr_TR.ISO8859-9',
 
+		   'uk'				=> 'uk_UA.UTF-8',
+		   'uk_UA'			=> 'uk_UA.UTF-8',
+		   'uk_UA.UTF-8'		=> 'uk_UA.UTF-8',
+		   
 		   'zh_CN'			=> 'zh_CN.GB2312',
 		   'zh_CN.GB2312'		=> 'zh_CN.GB2312',
 
diff -urN debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/HTML /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/HTML
--- debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/HTML	1970-01-01 03:00:00.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/HTML	2006-05-12 19:59:43.000000000 +0300
@@ -0,0 +1,25 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/uk_UA.UTF-8/HTML: locale for Ukrainian 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 -urN debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/LaTeX /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/LaTeX
--- debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/LaTeX	1970-01-01 03:00:00.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/LaTeX	2006-05-12 20:00:10.000000000 +0300
@@ -0,0 +1,16 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/uk_UA.UTF-8/LaTeX: locale for Ukrainian output in LaTeX format
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+%locale = (
+	   'babel' => 'ukrainian',
+	   'inputenc' => 'utf8',
+	   'abstract' => '????????',
+	   'copyright notice' => '????????? ?????',
+	   'after begin document' => '\\renewcommand{\\vpageref}[1]{?? ????. \\pageref{#1}}',
+	   'pdfhyperref' => 'unicode'
+	   );
+
+## ----------------------------------------------------------------------
Binary files debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/.LaTeX.swp and /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/.LaTeX.swp differ
diff -urN debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Texinfo /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Texinfo
--- debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Texinfo	1970-01-01 03:00:00.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Texinfo	2006-05-12 20:00:55.000000000 +0300
@@ -0,0 +1,20 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/uk_UA.UTF-8/Texinfo: locale for Ukrainian output in Texinfo format
+## ----------------------------------------------------------------------
+use encoding "utf8";
+use utf8;
+
+## ----------------------------------------------------------------------
+%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 -urN debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Text /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Text
--- debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Text	1970-01-01 03:00:00.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/Text	2006-05-12 20:01:21.000000000 +0300
@@ -0,0 +1,22 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/uk_UA.UTF-8/Text: locale for Ukrainian output in plain text format
+## ----------------------------------------------------------------------
+use encoding "utf8";
+use utf8;
+
+## ----------------------------------------------------------------------
+%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 -urN debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/TextOV /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/TextOV
--- debiandoc-sgml-1.1.95/tools/lib/Locale/uk_UA.UTF-8/TextOV	1970-01-01 03:00:00.000000000 +0300
+++ /home/eugen/borman/devel1/debiandoc-sgml+uk-1.1.95/tools/lib/Locale/uk_UA.UTF-8/TextOV	2006-05-12 20:01:42.000000000 +0300
@@ -0,0 +1,22 @@
+## -*- perl -*-
+## ----------------------------------------------------------------------
+## Locale/uk_UA.UTF-8/TextOV: locale for Ukrainian output in overstrike text format
+## ----------------------------------------------------------------------
+use encoding "utf8";
+use utf8;
+
+## ----------------------------------------------------------------------
+%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