texlive[72505] trunk: bookshelf (9oct24)

commits+karl at tug.org commits+karl at tug.org
Wed Oct 9 22:14:50 CEST 2024


Revision: 72505
          https://tug.org/svn/texlive?view=revision&revision=72505
Author:   karl
Date:     2024-10-09 22:14:50 +0200 (Wed, 09 Oct 2024)
Log Message:
-----------
bookshelf (9oct24)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-listallfonts
    trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-mkfontsel
    trunk/Master/texmf-dist/doc/latex/bookshelf/Makefile.doc
    trunk/Master/texmf-dist/doc/latex/bookshelf/README.md
    trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf-listallfonts.pdf
    trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf-mkfontsel.pdf
    trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.dtx
    trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.ins
    trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.pdf
    trunk/Master/texmf-dist/doc/latex/bookshelf/spines.pdf
    trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.1
    trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.man1.pdf
    trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.1
    trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.man1.pdf
    trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-listallfonts
    trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-mkfontsel
    trunk/Master/texmf-dist/tex/latex/bookshelf/bookshelf.cls

Modified: trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-listallfonts
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-listallfonts	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-listallfonts	2024-10-09 20:14:50 UTC (rev 72505)
@@ -14,6 +14,8 @@
 
 bookshelf-listallfonts -v
 
+bookshelf-listallfonts -m
+
 =head1 DESCRIPTION
 
 List all fonts known to LuaTeX adding "interesting" features to the
@@ -57,6 +59,10 @@
 
 Print usage information
 
+=item B<-m>
+
+Print manual page
+
 =back
 
 =head1 AUTHOR
@@ -70,29 +76,34 @@
 =cut
 
 use strict;
-use Getopt::Std;
+use Getopt::Long;
+use Pod::Usage;
 use open qw( :std :encoding(UTF-8) );
 my $VERSION = "1.0";
-my $USAGE="$0 [-d] [-f FEATURES_FILE] [-x EXCLUDED_PATTERNS_FILE]";
-our(%opts);
+my $featuresFile ="";
+my $excludedPatternsFile = "";
+my $DEBUG=0;
+my $help=0;
+my $man=0;
+my $vrs=0;
 
-getopts('df:x:vh', \%opts) or die "$USAGE\n";
+GetOptions(
+    "debug" => \$DEBUG,
+    "features|f=s" => \$featuresFile,
+    "excluded|x=s" => \$excludedPatternsFile,
+    "help|?" => \$help,
+    "man" => \$man,
+    "version" => \$vrs
+    ) or pod2usage(2);
 
-if (exists($opts{h})) {
-    die "$USAGE\n";
-}
-if (exists($opts{v})) {
-    die "$0, Version $VERSION, LPPL1.3c license\n";
-}
+pod2usage(1) if $help;
+pod2usage(-exitval => 0, -verbose=>2) if $man;
+die ("$0, version $VERSION, License: LPPL 1.3c\n") if $vrs;
 
-my $DEBUG=0;
-if (exists($opts{'d'})) {
-    $DEBUG=1;
-}
 
 my @features;
-if (exists $opts{f}) {
-    open(FEATURES, $opts{f}) or die ("Cannot open $opts{f}");
+if ($featuresFile) {
+    open(FEATURES, $featuresFile) or die ("Cannot open file $featuresFile\n");
     while (<FEATURES>) {
 	chomp;
 	if (length($_)) {
@@ -114,8 +125,8 @@
 }
 
 my @excluded;
-if (exists $opts{x}) {
-    open(PATTERNS, $opts{x}) or die ("Cannot open $opts{x}");
+if ($excludedPatternsFile) {
+    open(PATTERNS, $excludedPatternsFile) or die ("Cannot open file $excludedPatternsFile\n");
     while (<PATTERNS>) {
 	chomp;
 	if (length($_)) {

Modified: trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-mkfontsel
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-mkfontsel	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Build/source/texk/texlive/linked_scripts/bookshelf/bookshelf-mkfontsel	2024-10-09 20:14:50 UTC (rev 72505)
@@ -30,6 +30,10 @@
 
 Print usage information
 
+=item B<-m>
+
+Print manual page
+
 =back
 
 =head1 AUTHOR
@@ -44,23 +48,28 @@
 
 
 use strict;
-use Getopt::Std;
+use Getopt::Long;
+use Pod::Usage;
 use open qw( :std :encoding(UTF-8) );
 my $VERSION = "1.0";
-my $USAGE="$0 FILELIST";
 
-our(%opts);
+my $help=0;
+my $man=0;
+my $vrs=0;
 
-getopts('df:x:vh', \%opts) or die "$USAGE\n";
+GetOptions(
+    "help|?" => \$help,
+    "man" => \$man,
+    "version" => \$vrs
+    ) or pod2usage(2);
 
-if (exists($opts{h})) {
-    die "$USAGE\n";
-}
-if (exists($opts{v})) {
-    die "$0, Version $VERSION, LPPL1.3c license\n";
-}
+pod2usage(1) if $help;
+pod2usage(-exitval => 0, -verbose=>2) if $man;
+die ("$0, version $VERSION, License: LPPL 1.3c\n") if $vrs;
 
 
+
+
 `mkdir -p fontsel`;
 my $i=1;
 while(<>) {

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/Makefile.doc
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookshelf/Makefile.doc	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/latex/bookshelf/Makefile.doc	2024-10-09 20:14:50 UTC (rev 72505)
@@ -55,6 +55,9 @@
 ../bookshelf.cls: ../bookshelf.ins ../bookshelf.dtx
 	cd .. && ${MAKE} bookshelf.cls
 
+../svgnam.tex: ../svgnam.sh
+	cd .. && ${MAKE} svgnam.tex
+
 pickfont.tex: allfonts
 	../scripts/bookshelf-mkfontsel allfonts
 

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookshelf/README.md	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/latex/bookshelf/README.md	2024-10-09 20:14:50 UTC (rev 72505)
@@ -26,7 +26,12 @@
 lualatex spines
 ```
 
+## License
+
+LPPL 1.3c
+
 ## Changes
 
 * Version 1.0 2024-10-05. New maintainer. Rewrite of scripts.  Multilanguage processing. Important change: now the package is LuaLaTeX only
 	
+* Version 1.1 2024-10-08. Scripts now support standard switches --help, --man, --version

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf-listallfonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf-mkfontsel.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.dtx
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.dtx	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.dtx	2024-10-09 20:14:50 UTC (rev 72505)
@@ -28,8 +28,10 @@
 \ProvidesFile{bookshelf.dtx}
 %</driver>
 %<class>\NeedsTeXFormat{LaTeX2e}[2017/04/15]
-%<class>\ProvidesClass{bookshelf}[2024/10/05 v1.0
-%<class>  Turn your bibliography into a bookshelf image]
+%<class>\ProvidesClass{bookshelf}
+%<*class>
+[2024/10/05 v1.1 Turn your bibliography into a bookshelf image]
+%</class>
 %<*driver>
 \RequirePackage{fix-cm}% included by default.
 \PassOptionsToPackage{svgnames}{xcolor}% xcolor/dox/hyperref implied
@@ -565,11 +567,10 @@
 % \makeatletter
 % \makeatother
 %
-% \def\fileversion{1.0}
-% \def\filedate{2024-10-05}
+% \GetFileInfo{bookshelf.dtx}
 % \title{The  \textsf{bookshelf} document class\thanks{%
 % This document corresponds to \textsf{bookshelf}
-% \textit{v.}\ \fileversion, dated \filedate.}
+% \fileversion, dated \filedate.}
 % \\[1em]\Large 
 % Turn your bibliography into a bookshelf image}
 % \author{Peter Flynn\\\normalsize Silmaril
@@ -592,9 +593,8 @@
 % \emph{Teams},
 % \emph{WhatsApp} etc video calls. It
 % requires a little preliminary work with the supplied scripts to
-% set up a list of all your fonts, a list of colors, and a list
-% of the \BibTeX{} entry names in your {\ttfamily{}.bib}
-% file, but otherwise should work on any modern \TeX{}
+% set up a list of your fonts and their stylistic variants,
+% but otherwise should work on any modern \TeX{}
 % distribution.\par
 % \par\centering\includegraphics[width=.55\columnwidth, page=4]{spines.pdf}
 % \end{abstract}

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.ins
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.ins	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.ins	2024-10-09 20:14:50 UTC (rev 72505)
@@ -1,25 +1,19 @@
-% Transformed from bookshelf.xml by ClassPack db2dtx.xsl
-% version 1.19 (2020-05-19) on Saturday 23 May 2020 at 23:33:08
+% bookshelf.ins is copyright © 2020-2024 by Peter Flynn <peter at silmaril.ie>
 %
-% bookshelf.ins is copyright © 2020 by Peter Flynn <peter at silmaril.ie>
-%
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
-% version 1.3 of this license or (at your option) any later
+% version 1.3c of this license or (at your option) any later
 % version. The latest version of this license is in:
 %
 %     http://www.latex-project.org/lppl.txt
 %
-% and version 1.3 or later is part of all distributions of
-% LaTeX version 2005/12/01 or later.
+% and version 1.3c or later is part of all distributions of
+% LaTeX version 2008/06/01 or later.
 %
 % This work has the LPPL maintenance status ‘maintained’.
 % 
-% The current maintainer of this work is Peter Flynn <peter at silmaril.ie>
+% The current maintainer of this work is Boris Veytsman <borisv at lk.net>
 %
-% This work consists of the files bookshelf.dtx and bookshelf.ins,
-% the derived file 
-% and any other ancillary files listed in the MANIFEST.
 %
 \input docstrip.tex
 \askforoverwritefalse

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/bookshelf.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/bookshelf/spines.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.1	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.1	2024-10-09 20:14:50 UTC (rev 72505)
@@ -55,7 +55,7 @@
 .\" ========================================================================
 .\"
 .IX Title "BOOKSHELF-LISTALLFONTS 1"
-.TH BOOKSHELF-LISTALLFONTS 1 2024-10-06 "perl v5.38.2" "User Contributed Perl Documentation"
+.TH BOOKSHELF-LISTALLFONTS 1 2024-10-08 "perl v5.38.2" "User Contributed Perl Documentation"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -69,6 +69,8 @@
 bookshelf-listallfonts \-h
 .PP
 bookshelf-listallfonts \-v
+.PP
+bookshelf-listallfonts \-m
 .SH DESCRIPTION
 .IX Header "DESCRIPTION"
 List all fonts known to LuaTeX adding "interesting" features to the
@@ -106,6 +108,9 @@
 .IP \fB\-h\fR 4
 .IX Item "-h"
 Print usage information
+.IP \fB\-m\fR 4
+.IX Item "-m"
+Print manual page
 .SH AUTHOR
 .IX Header "AUTHOR"
 Boris Veytsman, 2024

Modified: trunk/Master/texmf-dist/doc/man/man1/bookshelf-listallfonts.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.1	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.1	2024-10-09 20:14:50 UTC (rev 72505)
@@ -55,7 +55,7 @@
 .\" ========================================================================
 .\"
 .IX Title "BOOKSHELF-MKFONTSEL 1"
-.TH BOOKSHELF-MKFONTSEL 1 2024-10-06 "perl v5.38.2" "User Contributed Perl Documentation"
+.TH BOOKSHELF-MKFONTSEL 1 2024-10-08 "perl v5.38.2" "User Contributed Perl Documentation"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -79,6 +79,9 @@
 .IP \fB\-h\fR 4
 .IX Item "-h"
 Print usage information
+.IP \fB\-m\fR 4
+.IX Item "-m"
+Print manual page
 .SH AUTHOR
 .IX Header "AUTHOR"
 Boris Veytsman, 2024

Modified: trunk/Master/texmf-dist/doc/man/man1/bookshelf-mkfontsel.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-listallfonts
===================================================================
--- trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-listallfonts	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-listallfonts	2024-10-09 20:14:50 UTC (rev 72505)
@@ -14,6 +14,8 @@
 
 bookshelf-listallfonts -v
 
+bookshelf-listallfonts -m
+
 =head1 DESCRIPTION
 
 List all fonts known to LuaTeX adding "interesting" features to the
@@ -57,6 +59,10 @@
 
 Print usage information
 
+=item B<-m>
+
+Print manual page
+
 =back
 
 =head1 AUTHOR
@@ -70,29 +76,34 @@
 =cut
 
 use strict;
-use Getopt::Std;
+use Getopt::Long;
+use Pod::Usage;
 use open qw( :std :encoding(UTF-8) );
 my $VERSION = "1.0";
-my $USAGE="$0 [-d] [-f FEATURES_FILE] [-x EXCLUDED_PATTERNS_FILE]";
-our(%opts);
+my $featuresFile ="";
+my $excludedPatternsFile = "";
+my $DEBUG=0;
+my $help=0;
+my $man=0;
+my $vrs=0;
 
-getopts('df:x:vh', \%opts) or die "$USAGE\n";
+GetOptions(
+    "debug" => \$DEBUG,
+    "features|f=s" => \$featuresFile,
+    "excluded|x=s" => \$excludedPatternsFile,
+    "help|?" => \$help,
+    "man" => \$man,
+    "version" => \$vrs
+    ) or pod2usage(2);
 
-if (exists($opts{h})) {
-    die "$USAGE\n";
-}
-if (exists($opts{v})) {
-    die "$0, Version $VERSION, LPPL1.3c license\n";
-}
+pod2usage(1) if $help;
+pod2usage(-exitval => 0, -verbose=>2) if $man;
+die ("$0, version $VERSION, License: LPPL 1.3c\n") if $vrs;
 
-my $DEBUG=0;
-if (exists($opts{'d'})) {
-    $DEBUG=1;
-}
 
 my @features;
-if (exists $opts{f}) {
-    open(FEATURES, $opts{f}) or die ("Cannot open $opts{f}");
+if ($featuresFile) {
+    open(FEATURES, $featuresFile) or die ("Cannot open file $featuresFile\n");
     while (<FEATURES>) {
 	chomp;
 	if (length($_)) {
@@ -114,8 +125,8 @@
 }
 
 my @excluded;
-if (exists $opts{x}) {
-    open(PATTERNS, $opts{x}) or die ("Cannot open $opts{x}");
+if ($excludedPatternsFile) {
+    open(PATTERNS, $excludedPatternsFile) or die ("Cannot open file $excludedPatternsFile\n");
     while (<PATTERNS>) {
 	chomp;
 	if (length($_)) {

Modified: trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-mkfontsel
===================================================================
--- trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-mkfontsel	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/scripts/bookshelf/bookshelf-mkfontsel	2024-10-09 20:14:50 UTC (rev 72505)
@@ -30,6 +30,10 @@
 
 Print usage information
 
+=item B<-m>
+
+Print manual page
+
 =back
 
 =head1 AUTHOR
@@ -44,23 +48,28 @@
 
 
 use strict;
-use Getopt::Std;
+use Getopt::Long;
+use Pod::Usage;
 use open qw( :std :encoding(UTF-8) );
 my $VERSION = "1.0";
-my $USAGE="$0 FILELIST";
 
-our(%opts);
+my $help=0;
+my $man=0;
+my $vrs=0;
 
-getopts('df:x:vh', \%opts) or die "$USAGE\n";
+GetOptions(
+    "help|?" => \$help,
+    "man" => \$man,
+    "version" => \$vrs
+    ) or pod2usage(2);
 
-if (exists($opts{h})) {
-    die "$USAGE\n";
-}
-if (exists($opts{v})) {
-    die "$0, Version $VERSION, LPPL1.3c license\n";
-}
+pod2usage(1) if $help;
+pod2usage(-exitval => 0, -verbose=>2) if $man;
+die ("$0, version $VERSION, License: LPPL 1.3c\n") if $vrs;
 
 
+
+
 `mkdir -p fontsel`;
 my $i=1;
 while(<>) {

Modified: trunk/Master/texmf-dist/tex/latex/bookshelf/bookshelf.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bookshelf/bookshelf.cls	2024-10-09 06:51:05 UTC (rev 72504)
+++ trunk/Master/texmf-dist/tex/latex/bookshelf/bookshelf.cls	2024-10-09 20:14:50 UTC (rev 72505)
@@ -21,8 +21,8 @@
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
 \NeedsTeXFormat{LaTeX2e}[2017/04/15]
-\ProvidesClass{bookshelf}[2024/10/05 v1.0
-  Turn your bibliography into a bookshelf image]
+\ProvidesClass{bookshelf}
+[2024/10/05 v1.1 Turn your bibliography into a bookshelf image]
 \RequirePackage{fix-cm}
   \PassOptionsToPackage{svgnames}{xcolor}
 %%



More information about the tex-live-commits mailing list.