[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 27 Jul 2022 16:43:07 -0400 (EDT) |
branch: master
commit d51f0ba4b4335f64f5553f2849337221c5d50f8b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Jul 27 21:15:11 2022 +0100
texi2any --epub3
* tp/texi2any.pl: Add an option --epub3, which sets the output
format to HTML and loads the 'epub3.pm' init file.
---
ChangeLog | 7 +++++++
tp/texi2any.pl | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 0cdb5e1797..7f4c5e4df1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-07-27 Gavin Smith <gavinsmith0123@gmail.com>
+
+ texi2any --epub3
+
+ * tp/texi2any.pl: Add an option --epub3, which sets the output
+ format to HTML and loads the 'epub3.pm' init file.
+
2022-07-27 Gavin Smith <gavinsmith0123@gmail.com>
@set txidefnamenospace in LaTeX
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index d303337622..28410b7d5c 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -1024,6 +1024,11 @@ There is NO WARRANTY, to the extent permitted by
law.\n"), "2021");
'silent|quiet' => sub { push @texi2dvi_args, '--'.$_[0];},
'plaintext' => sub {$format = set_format($_[0].'');},
'html' => sub {$format = set_format($_[0].'');},
+ 'epub3' => sub {
+ $format = set_format('html');
+ my $epub_file = 'epub3.pm';
+ locate_and_load_init_file($epub_file, [ @conf_dirs, @program_init_dirs ]);
+ },
'latex' => sub {$format = set_format($_[0].'');},
'info' => sub {$format = set_format($_[0].'');},
'docbook' => sub {$format = set_format($_[0].'');},