Hello,

On Sat, May 23, 2015 at 10:34:30PM +0200, Martin Quinson wrote:
> On Fri, May 22, 2015 at 05:14:20PM -0400, David Prévot wrote:
> > 
> > Even if disruptive changes in the gettext/po4a toolchain (and underlined
> > Perl handling) are always painful (one has to make sure every
> > contributor is using the “right” version, the amount of changes in the
> > PO files to cope with the upgrade can be huge), with my Debian packager
> > hat on, I’d say that now (early in the development cycle) is exactly the
> > right moment to make such change if it’s an improvement worthing the
> > disruption.
> 
> About this change, now. My current feeling is that it should be an
> optional behavior. It is very possible to pass options to the PO4A
> modules, so that users may choose how to handle tbl macros. David, do
> you think that it would do the trick?

Ok. I found some time to dig into this issue, and implemented an
option to choose between the old and new behavior. But I'm not sure I
want to commit it. Robert's change is a great improvement. I tested on
a chunk of ps.1 Here is the 0.46 version:

  msgid "%cpu    %CPU"
  msgstr ""
 
  msgid ""
  "cpu utilization of the process in \"##.#\" format.  It is the CPU time\n"
  "used divided by the time the process has been running (cputime/realtime\n"
  "ratio), expressed as a percentage. It will not add up to 100% unless you\n"
  "are lucky.  (alias\\ B<pcpu>).\n"
  msgstr ""

And now the 0.45 version:

  msgid "%cpu    %CPU    T{\n"
  msgstr ""

  msgid "cpu utilization of the process in \"##.#\" format.  It is the CPU 
time\n"
  msgstr ""

  msgid "used divided by the time the process has been running 
(cputime/realtime\n"
  msgstr ""

  msgid "ratio), expressed as a percentage. It will not add up to 100% unless 
you\n"
  msgstr ""

  msgid "are lucky.  (alias\\ B<pcpu>).\n"
  msgstr ""

  msgid "T}\n"
  msgstr ""

Who on the earth would choose the second version? I think, David, that
we have here what you call an improvement worthing the disruption. Do
you agree, or would you insist on having an option?

In any cases, many thanks to Robert. New translators will certainly
love the new version of the thing.

Bye, Mt.

-- 
Chaque fois que je regarde la télé et que je vois ces pauvres enfants
affamés à travers le monde, je me mets à pleurer sans pouvoir m'en empecher.
Je veux dire, j'aimerais bien être mince comme eux, mais sans les mouches,
la guerre et tout ca.        --- Mariah Carey
.\" This chunk comes from ps(1). It is intented to test
.\" https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748601

.TS
expand;
lB1 lB1 lBw(\n[ColSize]n)
lB1 l1  l.
CODE    HEADER  DESCRIPTION

%cpu    %CPU    T{
cpu utilization of the process in "##.#" format.  It is the CPU time
used divided by the time the process has been running (cputime/realtime
ratio), expressed as a percentage. It will not add up to 100% unless you
are lucky.  (alias\ \fBpcpu\fR).
T}


class   CLS     T{
scheduling class of the process.  (alias\ \fBpolicy\fR,\ \fBcls\fR).
Field's possible values are:
.br
\-      not reported
.br
TS      SCHED_OTHER
.br
FF      SCHED_FIFO
.br
RR      SCHED_RR
.br
?       unknown value
T}

.TE
.\" #######################################################################
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2015-06-24 21:43+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <l...@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: tbl table
#: data-23/tbl-textblock.1:8
#, no-wrap
msgid "CODE    HEADER  DESCRIPTION\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:10
#, no-wrap
msgid "%cpu    %CPU    T{\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:11
#, no-wrap
msgid "cpu utilization of the process in \"##.#\" format.  It is the CPU time\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:12
#, no-wrap
msgid "used divided by the time the process has been running 
(cputime/realtime\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:13
#, no-wrap
msgid "ratio), expressed as a percentage. It will not add up to 100% unless 
you\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:14
#, no-wrap
msgid "are lucky.  (alias\\ B<pcpu>).\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:15 data-23/tbl-textblock.1:31
#, no-wrap
msgid "T}\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:18
#, no-wrap
msgid "class   CLS     T{\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:19
#, no-wrap
msgid "scheduling class of the process.  (alias\\ B<policy>,\\ B<cls>).\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:20
#, no-wrap
msgid "Field's possible values are:\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:21 data-23/tbl-textblock.1:23 
data-23/tbl-textblock.1:25 data-23/tbl-textblock.1:27 data-23/tbl-textblock.1:29
#, no-wrap
msgid ".br\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:22
#, no-wrap
msgid "-      not reported\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:24
#, no-wrap
msgid "TS      SCHED_OTHER\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:26
#, no-wrap
msgid "FF      SCHED_FIFO\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:28
#, no-wrap
msgid "RR      SCHED_RR\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:30
#, no-wrap
msgid "?       unknown value\n"
msgstr ""
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2014-06-22 21:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <l...@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: tbl table
#: data-23/tbl-textblock.1:8
#, no-wrap
msgid "CODE    HEADER  DESCRIPTION"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:10
#, no-wrap
msgid "%cpu    %CPU"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:15
#, no-wrap
msgid ""
"cpu utilization of the process in \"##.#\" format.  It is the CPU time\n"
"used divided by the time the process has been running (cputime/realtime\n"
"ratio), expressed as a percentage. It will not add up to 100% unless you\n"
"are lucky.  (alias\\ B<pcpu>).\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:18
#, no-wrap
msgid "class   CLS"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:21
#, no-wrap
msgid ""
"scheduling class of the process.  (alias\\ B<policy>,\\ B<cls>).\n"
"Field's possible values are:\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:21 data-23/tbl-textblock.1:23 
data-23/tbl-textblock.1:25 data-23/tbl-textblock.1:27 data-23/tbl-textblock.1:29
#, no-wrap
msgid ".br\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:23
#, no-wrap
msgid "-      not reported\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:25
#, no-wrap
msgid "TS      SCHED_OTHER\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:27
#, no-wrap
msgid "FF      SCHED_FIFO\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:29
#, no-wrap
msgid "RR      SCHED_RR\n"
msgstr ""

#. type: tbl table
#: data-23/tbl-textblock.1:31
#, no-wrap
msgid "?       unknown value\n"
msgstr ""

Attachment: signature.asc
Description: Digital signature

Reply via email to