Your message dated Wed, 14 Sep 2016 21:26:48 +0200
with message-id <20160914192648.as5lknwg2wkrbk2j@nouzonket>
and subject line Re: Bug#606337: po4a: [text] Add support for SiSU markup
has caused the Debian Bug report #606337,
regarding po4a: [text] Add support for SiSU markup
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
606337: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606337
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: po4a
Version: 0.40.2-1
Severity: wishlist
Tags: patch
Please provide support for the SiSU markup language along the same lines as
markdown and asciidoc which are supported as options in the Text module.
Currently the Debian Live manual translations of SiSU files (processed as
[type: text]) are corrupted whenever we use SiSU point-form lists. SiSU cannot
handle line wraps, and the po4a Text module fails to detect '_*' SiSU markup,
which must appear at the beginning of the line and with no leading whitespace,
as bullet points. Detecting these lines and adding the 'no-wrap' option as per
the attached patch resolves the issue.
Thanks,
Ben
Index: lib/Locale/Po4a/Text.pm
===================================================================
--- lib/Locale/Po4a/Text.pm (revision 2461)
+++ lib/Locale/Po4a/Text.pm (working copy)
@@ -141,6 +141,14 @@
my $asciidoc = 0;
+=item B<sisu>
+
+Handle documents in the SiSU format.
+
+=cut
+
+my $sisu = 0;
+
=back
=cut
@@ -156,6 +164,7 @@
$self->{options}{'fortunes'} = 1;
$self->{options}{'markdown'} = 1;
$self->{options}{'nobullets'} = 1;
+ $self->{options}{'sisu'} = 1;
$self->{options}{'tabs'} = 1;
$self->{options}{'verbose'} = 1;
@@ -191,6 +200,7 @@
}
$asciidoc=1 if (defined $options{'asciidoc'});
+ $sisu=1 if (defined $options{'sisu'});
}
sub parse {
@@ -606,6 +616,13 @@
do_paragraph($self,$paragraph,$wrapped_mode);
$paragraph="$line\n";
$wrapped_mode = 1;
+ } elsif ($sisu and
+ ( $line =~ /^_\*/ )) { # bullet
+ # Preserve some SiSU markup as a single line
+ do_paragraph($self,$paragraph,$wrapped_mode);
+ $paragraph="$line\n";
+ $wrapped_mode = 0;
+ $end_of_paragraph = 1;
} elsif ($tabs eq "split" and $line =~ m/\t/ and $paragraph !~ m/\t/s) {
$wrapped_mode = 0;
do_paragraph($self,$paragraph,$wrapped_mode);
--- End Message ---
--- Begin Message ---
Perfect, then. I'm closing this bug.
As for future evolutions, please understand that I barely have the
free cycles to do the basic maintaining of the package. Patches will
have better chances of being served than feature requests ;)
Sorry about that, but I prefer being honnest about what I can do for
po4a right now.
Thanks for your interest,
Mt.
On Wed, Sep 14, 2016 at 12:46:55PM -0400, Ralph Amissah wrote:
> Please close bug (and do not apply patch).
>
> As far as I understand it the patch was not needed, and ended up
> being forgotten about.
--
J'aime mon pays mais je crains mon gouvernement. -- Anonyme
signature.asc
Description: PGP signature
--- End Message ---