Closed dbaio closed 2 years ago
Not supported indeed ATM. May be tricky because this is not a standalone list, but a part of another block.
A dumb fix might just work though...
The detection of list bullets is here:
diff --git a/lib/Locale/Po4a/AsciiDoc.pm b/lib/Locale/Po4a/AsciiDoc.pm
index 555636dc..afebc29d 100644
--- a/lib/Locale/Po4a/AsciiDoc.pm
+++ b/lib/Locale/Po4a/AsciiDoc.pm
@@ -844,7 +844,7 @@ sub parse {
$self->pushline(".$t\n");
@comments = ();
} elsif ( not defined $self->{verbatim}
- and ( $line =~ m/^(\s*)((?:[-*o+\.]+|(?:[0-9]+[.\)])|(?:[a-z][.\)])|\([0-9]+\))\s+)(.*)$/ ) )
+ and ( $line =~ m/^(\s*)((?:[-*o+\.]+|(?:[0-9]+[.\)])|(?:[a-z][.\)])|[\(<](?:[0-9]+|\.)[\)>])\s+)(.*)$/ ) )
{
my $indent = $1 || "";
my $bullet = $2;
seems to do it on your sample.
I've tested this diff in the FreeBSD docs (updating source files and translating), and it worked in all files. It didn't affect any other part.
Strings are all marked as #. type: Plain text
.
@jnavila Thanks for taking a look at this and for your time.
OK. So now, need to design a complete patch with tests. Can I reuse your examples?
Sure, no problem. It's a mix of examples from Asciidoctor and FreeBSD Docs.
Source file. PO file. po4a version 0.66 and prior releases have the same issue.
-->
It combines all callouts in a single string, making it difficult to translate when you have several callouts together.
I'm reporting this so others can help, but the plan is to dig/debug po4a later.
https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/