Package: po4a
Version: 0.24-1
Severity: normal

Hi,

po4a incorrectly translates man pages containing the tbl tables, 
when the table uses default colum separator (tab character) 
and in some rows some columns are skipped (i.e. there're at 
least two separators side by side in the row).

For better exemplification of the bug I'm attaching three files.
The first one (original.1) is a simple test man page. The translated.po 
file was generated by po4a-updatepo and then all msgids was copied 
to msgstr. And finally, translated.1 is a page generated with 
po4a-translate. Please note that the page contains some bogus`\t' 
strings.


Another (unrelated) issue is that po4a always puts its `generated with po4a'
comment at the very beggining of generated man pages. However the `"\ t' line
has a special meaning for the man program and probably should always be 
placed at the first line of man page (see man(7)).

Best Regards
robert


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/pdksh
Kernel: Linux 2.6.16
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages po4a depends on:
ii  gettext                   0.14.5-2       GNU Internationalization utilities
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  perl                      5.8.8-3        Larry Wall's Practical Extraction 
ii  perl-modules              5.8.8-3        Core Perl modules
ii  sp                        1.3.4-1.2.1-47 James Clark's SGML parsing tools

Versions of packages po4a recommends:
ii  liblocale-gettext-perl        1.05-1     Using libc functions for internati
ii  libterm-readkey-perl          2.30-3     A perl module for simple terminal 
ii  libtext-wrapi18n-perl         0.06-4     internationalized substitute of Te

-- no debconf information

.\" t
.TH TESTPAGE 1
.SH TEST
.P
.TS
l l l l.
a1      a2      a3      a4
b1      b2              b5
c1                      c5
                        d5
.TE
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2006-03-28  0:25+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n"
"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit"

#.  t
# type: TH
#: ./testpage.1:2
#, no-wrap
msgid "TESTPAGE"
msgstr "TESTPAGE"

# type: SH
#: ./testpage.1:3
#, no-wrap
msgid "TEST"
msgstr "TEST"

# type: tbl table
#: ./testpage.1:7
#, no-wrap
msgid "a1\ta2\ta3\ta4\n"
msgstr "a1\ta2\ta3\ta4\n"

# type: tbl table
#: ./testpage.1:8
#, no-wrap
msgid "b1\tb2\t\tb5\n"
msgstr "b1\tb2\t\tb5\n"

# type: tbl table
#: ./testpage.1:9
#, no-wrap
msgid "c1\t\t\tc5\n"
msgstr "c1\t\t\tc5\n"

# type: tbl table
#: ./testpage.1:10
#, no-wrap
msgid "\t\t\td5\n"
msgstr "\t\t\td5\n"
.\" This file was generated with po4a. Translate the source file.
.\" 
.\" t
.TH TESTPAGE 1   
.SH TEST
.P
.TS
l l l l.
a1      a2      a3      a4
b1      b2      \tb5
c1      \t      c5
        \t      d5
.TE

Reply via email to