Hi,
On Fri, Apr 01, 2005 at 02:05:02PM +0200, Martin Quinson wrote:
I just tryed to gettextize the find.1 man page. The issue is that the
first
line reads:
.TH FIND 1L \" -*- nroff -*-
So, the \" is used as a "comment until the end of the line" marker. This
is
not handled by po4a, which puts cruft into the pot file. Not a big deal, but
annoying.
I think that we should s/\\".*$/$/ somewhere in shiftline. But since I
never know how to match an even number of \, I'd prefer not to commit the
change myself...
In fact there is no need to match an "even number of \" in the man
module, because \\ is changed to \e in shiftline (that makes the module
much simpler regarding this point).
Even the "(?<\\)\\" regex (\" not preceded by a \) is probably not
needed
(maybe the current code should be checked/cleaned).
Even better, such comments could be accumulated somewhere and placed
as
comment from author in the pot file. That's a bit harder to do, but it would
be soo cool !
I've committed this (the intensive test suite was OK).
I've also changed Po.pm in order to allow multiples comment lines.
Note: not all comments will be available in the PO. Comments may also be
added to the previous or next paragraph
--
Nekral