[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Wed, 11 Aug 2021 15:43:19 -0400 (EDT) |
branch: master
commit 2973057549bd5f7361e1e8a4ca2e861ce1ea7f0e
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Aug 11 21:39:38 2021 +0200
Document 'untranslated' text type in the pod section.
---
tp/Texinfo/ParserNonXS.pm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 64bc73d..93898a6 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -2209,6 +2209,8 @@ sub _parse_def($$$)
my $bracketed = { 'type' => 'bracketed_inserted',
'parent' => $current };
my $content = { 'text' => $prepended, 'parent' => $bracketed };
+ # the prepended string is an english string (such as Function). If
+ # documentlanguage is set it needs to be translated during the conversion.
if ($self->{'documentlanguage'}) {
$content->{'type'} = 'untranslated';
$content->{'extra'}->{'documentlanguage'} = $self->{'documentlanguage'};
@@ -6410,6 +6412,12 @@ at all):
=over
+=item untranslated
+
+English text added by the parser that may need to be translated
+during conversion. Happens for @def* @-commands aliases that
+leads to prepending text such as 'Function'.
+
=item empty_line
An empty line (possibly containing whitespace characters only).