I'm using Po4a for maintenance of reST(reStructuredText) formatted
The format "text" is almost working fine here but has problems with some
of reST's specials.
So I patched Text.pm to get it working, at least for me.
Since I'm new to Po4a (and to this list) and not fluent in Perl
it may not be a perfect solution, but anyway:
Is there any interest in the patch (it's against version 0.42)?
On some versions of Perl, using File::Temp->tempfile gives the error:
'tempfile' can't be called as a method at -e line 1.
which is true because tempfile shouldn't be used as a method.
This patch fixes the occurrences in the po4a-0.44 source.
Note this reveals a subtle bug too. There was some code which did:
File::Temp->tempfile ($filename, ...)
In this case, the first arg to the "method" tempfile is the File::Temp
object, so AFAICT the $filename is being ignored or at least not used
correctly. In this case $filename contained a full path like
"po/pod/foo". If you fix the method bug, $filename is suddenly being
used for the first time, and since it contains a full path, the
program breaks (because the parent directories don't exist).
Therefore I replaced that code with:
$basename = basename ($filename);
File::Temp::tempfile ($basename, ...)
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
-----BEGIN PGP SIGNED MESSAGE-----
I have again a issue with the usage of po4a-gettextize. Following
example document shows the issue.
\item [item one] description one
\item [item two] description two
\item [item three] description three
If I do now
$ po4a-gettextize -f latex -m minimal.tex
I get the following result:
#. type: item[#1]
msgid "item one"
#. type: description
msgid "description one"
#. type: description
msgid "[item two] description two"
#. type: description
msgid "[item three] description three"
The first line of the description is split into two entries in the pot
file; but beginning with the second line of the description the lines
are not split into two entries.
How can I tell po4a-gettextize, that it should split every line of the
description into two entries? I would prefer this solution, because
then I have not the LaTeX syntax (the square brackets ) in the pot
Thanks for any hint.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
FROM: Worldwide Registry for Business Professionals
RE: Worldwide Registry Publication
You were recently chosen to represent your professional
community, deeming you eligible for the inclusion in
the new 2013 Edition of Worldwide Registry for Business
We are pleased to inform you that your candidacy was
formally approved on February 1st, 2013. Congratulations!
Click the link below to verify your profile and accept
The Publishing Committee selected you as a professional based not
only upon your current standing, but focusing as well on criteria
from executive and professional directories, associations, and
trade journals. Given your background, the Director believes your
profile makes a fitting addition to our publication.
As we are working off of secondary sources, we must receive
verification from you that your profile is accurate. After
receiving verification, we will validate your registry listing
within seven business days.
Once finalized, your listing will share prominent registry space
with thousands of fellow accomplished individuals across the
globe, each representing accomplishment within their own
To verify your profile and accept the candidacy, please click this
Please kindly note that our registration deadline for this year's
publication is April 15th, 2013. To ensure you are included,
we must receive your verification on or before this date.
On behalf of our Committee I salute your achievement and welcome
you to our association.
Charles T. Norris
Vice-President, Research Division
Worldwide Registry for Business Professionals
65 Scenicview Drive
Midland, TX 79701
If you would like to update your communication preferences,
please click the link below: