[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Fix a typo. Add comments.

From: Patrice Dumas
Subject: branch master updated: Fix a typo. Add comments.
Date: Fri, 27 Aug 2021 15:47:40 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 597e8be  Fix a typo. Add comments.
597e8be is described below

commit 597e8be3a5afd4c9f817192b4c9467237fe1a31e
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Aug 27 21:47:21 2021 +0200

    Fix a typo. Add comments.
 tp/Texinfo/Convert/Converter.pm | 2 +-
 tp/texi2any.pl                  | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tp/Texinfo/Convert/Converter.pm b/tp/Texinfo/Convert/Converter.pm
index 78a5d46..a4ef0e9 100644
--- a/tp/Texinfo/Convert/Converter.pm
+++ b/tp/Texinfo/Convert/Converter.pm
@@ -1720,7 +1720,7 @@ in upper case.  The function returns the accented letter 
as XML entity
 if possible.  I<$use_numeric_entities> is also optional, and, if set, and
 there is no XML entity, the numerical entity corresponding to Unicode 
 points is preferred to an ASCII transliteration.  If I<$use_numeric_entities>
-is set numerci entities are also used for diacritics instead of ASCII
+is set numerical entities are also used for diacritics instead of ASCII
 =item $result = $converter->xml_accents($accent_command, $in_upper_case)
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 6fe26ab..6a00af5 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -324,7 +324,7 @@ package Texinfo::Config;
 #use Carp;
-# passed from main program
+# passed from main program through _load_config
 my $cmdline_options;
 my $default_options;
 # used in main program
@@ -336,6 +336,8 @@ sub _load_config($$) {
   #print STDERR "cmdline_options: ".join('|',keys(%$cmdline_options))."\n";
+# eval init file in the Texinfo::Config namespace.  Needed functions are in
+# the Texinfo::Convert::HTML Texinfo::Config package namespace code.
 sub _load_init_file($) {
   my $file = shift;
   require Texinfo::Convert::HTML;
@@ -349,6 +351,8 @@ sub _load_init_file($) {
 # FIXME: maybe use an opaque return status that can be used to retrieve
 # an error message?
+# Called from init files to set configuration options.
 sub set_from_init_file($$) {
   my $var = shift;
   my $value = shift;
@@ -365,6 +369,7 @@ sub set_from_init_file($$) {
   return 1;
+# set option from the command line.  Highest precedence.
 sub set_from_cmdline($$) {
   my $var = shift;
   my $value = shift;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]