Package: po4a
Version: 0.40.2-1
Tags: patch
If I understand docbook correctly, the <beginpage> tag is used to
indicate a page break in a legacy version of the document being
processed (for example dokumenting the fact that the original version of
the book had a page break at that point in the text. See the definition
at <URL: http://www.docbook.org/tdg/en/html/beginpage.html >.
when I use it like this in a docbook document, I do not get the expected
result from po4a:
<para>
A single paragraph of text at the end of one page, which eventually
moved on to <beginpage/>the next page.
</para>
When processed by po4a, I get two strings to translate instead of the
complete paragraph I expected. Can po4a be changed to include the
<beginpage> tag in the text to be translated instead of splitting
strings when it is found?
I suspect a patch like this would solve it, but it is not tested.
/usr/share/perl5/Locale/Po4a/Docbook.pm 2010-12-05 01:12:35.000000000 +0100
+++ /tmp/Docbook.pm 2012-08-07 11:50:27.144018129 +0200
@@ -246,7 +246,7 @@
# beginpage; does not contain text; v4, not in v5
$self->{options}{'_default_untranslated'} .= " <beginpage>";
- $self->{options}{'_default_break'} .= " <beginpage>";
+ $self->{options}{'_default_inline'} .= " <beginpage>";
# bibliocoverage; contains text; Formatted inline
# NOTE: could be in the break class
Happy hacking
Petter Reinholdtsen
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Replies