[Po4a-devel]Bug#310955: libtext-wrapi18n-perl: Please provide a "space preservation" option

Martin Quinson Martin Quinson <mquinson@debian.org>, 310955@bugs.debian.org
Fri, 27 May 2005 10:03:18 +0200


Package: libtext-wrapi18n-perl
Version: 0.06-1
Severity: wishlist

Hello,

I write to you as one of the po4a developpers. This project aims at easing
the translation of documentation using gettext in this area. Our programs
can for example take a man page, extract the strings to translate into a po
file and then (once the translator did their job) reinject the translated
strings into the man page structure. We can do so for man pages, for pod
(perl online documentation), xml, sgml, TeX and a few others. Enough for the
context, I guess.

po4a being localized itself, we use libtext-wrapi18n-perl to wrap our error
messages, but we don't use it to wrap the po file because your library is
missing a functionnality we need. In po files, all spaces are important and
newlines are not. So,
 "toto "
 "tutu"
is equivalent to 
 "toto tutu"
but not to
 "toto"
 "tutu"
(which is equivalent to "tototutu")

So, here is the purpose of this bug report: could you please add a way to
put linebreaks were needed in the sentence without removing any space (the
one at the end of the line come to mind), please?

Thanks a lot, 
Mt.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (400, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages libtext-wrapi18n-perl depends on:
ii  libtext-charwidth-perl        0.04-1     get display widths of characters o

-- no debconf information