Package: po4a
Version: 0.46-1
Severity: normal

Hi,

While trying to deal with the disruptive change (#786525) introduced by
spliting tbl's textblocks (#748601), I noticed that the comments (as
available in top.1, and currently translated in manpages-fr-extra) are
not handled the same way as they used to be.

It might be related to the change introduced to fix #744366, thus
X-D-CCing Robert who proposed the initial patch (and may have a clear
view about what is going on).

/usr/share/man/man1/top.1.gz (English original, as provided by the
procps package), currently starts with:

.ig
[…]
. This file may be copied under the terms of the GNU Public License.
..
\#  Setup ////////////////////////////////////////////////////////////////
\#  ** Comment out '.nr' or set to 0 to eliminate WIDTH fiddlin' !

/usr/share/man/fr/man1/top.1.gz (French translation, as provided by the
manpages-fr-extra package, and built with po4a 0.45), currently starts
with:

.ig
[…]
. This file may be copied under the terms of the GNU Public License.
..
.\"  Setup ////////////////////////////////////////////////////////////////
.\"  ** Comment out '.nr' or set to 0 to eliminate WIDTH fiddlin' !

I.e., the commented lines (starting with “\#”) are kept as commented
lines (but starting with “.\"”).

When building the same page with the latest po4a (0.46), the translated
top.1 man page starts with:

.ig
[…]
\"  Setup ////////////////////////////////////////////////////////////////
\"  ** Comment out '.nr' or set to 0 to eliminate WIDTH fiddlin' !

I.e, “\#” is now changed into “\"”. This behaviour change causes the
terminating newline to be seen and interpreted by the man page viewer,
and when viewing the translated (by po4a 0.46) top.1 man page, it starts
with a spurious blank line.

From groff(7):

   Request Short Reference
       .         Empty line, ignored.  Useful  for  structuring  docu‐
                 ments.
       .\" anything
                 Complete line is a comment.
[…]
   Single-Character Escapes
       \"     Start of a comment.  Everything up to  the  end  of  the
              line is ignored.
       \#     Everything  up  to  and  including  the  next newline is
              ignored.  This is interpreted in  copy  mode.   This  is
              like  \"  except that the terminating newline is ignored
              as well.

Regards

David

-- System Information:
Debian Release: stretch/sid
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-proposed-updates'), 
(500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (100, 
'buildd-unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages po4a depends on:
ii  gettext        0.19.4-1
ii  libsgmls-perl  1.03ii-33
ii  perl           5.20.2-6
ii  perl-modules   5.20.2-6
ii  sp             1.3.4-1.2.1-47.3

Versions of packages po4a recommends:
ii  liblocale-gettext-perl     1.05-8+b1
ii  libterm-readkey-perl       2.32-1+b1
ii  libtext-wrapi18n-perl      0.06-7
ii  libunicode-linebreak-perl  0.0.20140601-2

po4a suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to