texlive[66227] Master/texmf-dist: texdoc (27feb23)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 27 21:37:21 CET 2023


Revision: 66227
          http://tug.org/svn/texlive?view=revision&revision=66227
Author:   karl
Date:     2023-02-27 21:37:21 +0100 (Mon, 27 Feb 2023)
Log Message:
-----------
texdoc (27feb23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/man/man1/texdoc.1
    trunk/Master/texmf-dist/doc/man/man1/texdoc.man1.pdf
    trunk/Master/texmf-dist/doc/support/texdoc/NEWS
    trunk/Master/texmf-dist/doc/support/texdoc/texdoc.pdf
    trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex
    trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu
    trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu
    trunk/Master/texmf-dist/texdoc/texdoc.cnf

Modified: trunk/Master/texmf-dist/doc/man/man1/texdoc.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/texdoc.1	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/doc/man/man1/texdoc.1	2023-02-27 20:37:21 UTC (rev 66227)
@@ -1,7 +1,7 @@
 .\" generated with Ronn/v0.7.3
 .\" http://github.com/rtomayko/ronn/tree/0.7.3
 .
-.TH "TEXDOC" "1" "February 2023" "Texdoc 4.0" "Texdoc manual"
+.TH "TEXDOC" "1" "February 2023" "Texdoc 4.0.1" "Texdoc manual"
 .
 .SH "NAME"
 \fBtexdoc\fR \- find & view documentation in TeX Live

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

Modified: trunk/Master/texmf-dist/doc/support/texdoc/NEWS
===================================================================
--- trunk/Master/texmf-dist/doc/support/texdoc/NEWS	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/doc/support/texdoc/NEWS	2023-02-27 20:37:21 UTC (rev 66227)
@@ -1,15 +1,21 @@
-NEWS for texdoc
+NEWS for Texdoc
 ===============
 (This file public domain.)
 
-Version 4.0 (TeX Live 2023)
-===========================
-Released on 2023-02-20
+Version 4.0.1 (2023-02-27)
+--------------------------
+- Minor bug fixes for Windows
+- Scoring adjustments
+- Documentation tweaks
 
+Version 4.0 (2023-02-20)
+========================
+Release for TeX Live 2023.
+
 Major changes
-- Online search feature is added:
+- Online search feature is added (by Wu Zhenyu):
   users using TL without documentation will be sent to texdoc.org
-- Add new action --print-completion:
+- Add new action --print-completion (by Max Chernoff):
   for the moment, only zsh is supported. Contributions welcome.
 
 Minor fixes and tweaks
@@ -18,48 +24,52 @@
 - Scoring adjustments
 - Documentation tweaks
 
-Version 3.4.1
--------------
+Version 3.4.1 (2022-03-19)
+--------------------------
 - Bug fix: give locale bonus only if "lang" is set
 
-Version 3.4 (TeX Live 2022)
-===========================
-- Make Data.tlpdb.lua reproducible
+Version 3.4 (2022-03-03)
+========================
+Release for TeX Live 2022.
+- Make Data.tlpdb.lua reproducible (by Vincenzo Mantova)
 - Better locale handling in scoring
 - Alias adjustments
 
-Version 3.3.1
--------------
-- Support non-ascii username on Windows (patch by A. Kakuto)
+Version 3.3.1 (2021-05-20)
+--------------------------
+- Support non-ascii username on Windows (by Akira Kakuto)
 - Better support for multiple doc trees
 - Alias adjustments
 - Documentation tweaks
 
-Version 3.3 (TeX Live 2021)
-===========================
+Version 3.3 (2021-05-17)
+========================
+Release for TeX Live 2021.
 - Show all possible config files for -vf
 - Show diagnostic message of DISPLAY only if viewer failed
 - Alias adjustments
 - Documentation tweaks
 
-Version 3.2.2
--------------
+Version 3.2.2 (2020-09-16)
+--------------------------
 - Several aliases are added
 - Small documentation fixes
 
-Version 3.2.1
--------------
+Version 3.2.1 (2020-02-20)
+--------------------------
 - Bug fix: suspend a realpath not found error
 
-Version 3.2 (TeX Live 2020)
-===========================
+Version 3.2 (2020-02-02)
+========================
+Release for TeX Live 2020.
 - Improved the scoring scheme to prioritize the latex tree than the latex-dev
 - Support invoking the program with absolute paths
 - The document was entirely rewritten
 - Other small improvements and bug fixes
 
-Version 3.1 (TeX Live 2019)
-===========================
+Version 3.1 (2019-03-28)
+========================
+Release for TeX Live 2019.
 - New option -c: changing configure temporally
 - New config item `texlive_tlpdb` to specify a path for texlive.tlpdb
 - Fixed an issue that texdoc fails to open gzipped file in GNOME/XFCE
@@ -66,8 +76,10 @@
 - Added prefixes to script files not to contaminate kpse search space
 - Many other small improvements and bug fixes
 
-Version 3.0 (TeX Live 2018)
-===========================
+Version 3.0 (2018-06-06)
+========================
+Release for TeX Live 2018.
+
 This version has two big features:
 - Fuzzy search
 - New option parser
@@ -85,7 +97,7 @@
 - --help and --version override other specified command-line actions.
 
 Version 2.017 (TeX Live 2017)
-============================
+=============================
 - Restore user's LC_CTYPE value if possible (with this year's luatex).
 - Generic system environment variables, such as BROWSER, accept
   a colon-separated list of programs.

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

Modified: trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex	2023-02-27 20:37:21 UTC (rev 66227)
@@ -8,7 +8,7 @@
 \subtitle{Find \& view documentation in \TL}
 \pkgurl{https://tug.org/texdoc/}
 \author{Manuel Pégourié-Gonnard\and Takuto Asakura}
-\date{v4.0\quad \today}
+\date{v4.0.1\quad \today}
 
 \begin{document}
 
@@ -764,6 +764,14 @@
 \section{Shell Completion}
 \label{sec:completion}
 
+Shell completion can be used to receive assistance in entering command-line
+options and arguments (typically package names) for the |texdoc| command.
+Texdoc can provide shell completion functions via the \lopt{print-completion}
+action. Configuring the appropriate per-shell setting described below can
+enable this shell completion function.
+
+%\subsection{Bash}
+
 \subsection{Zsh}
 
 To enable completion for zsh, you need to put
@@ -772,16 +780,14 @@
 autoload -Uz compinit && compinit
 \end{htcode}
 %
-in your zsh configuration file (such as \code{\~/.zshrc}). You can install our
-completion function with either of the following two ways:
+in your zsh configuration file (such as \code{\$HOME/.zshrc}). You can install
+our completion function with either of the following two ways:
 %
 \begin{itemize}
-\item adding \code{eval \$(texdoc \lopt{print-completion} zsh)} to your
+\item adding \code{eval "\$(texdoc \lopt{print-completion} zsh)"} to your
   zsh configuration file.
 
-\item adding the following file (also provided by
-  \href{https://github.com/zsh-users/zsh-completions}{zsh-completions}) to \\
-  \code{/usr/share/zsh/site-functions/\_texdoc}:
+\item adding a file somewhere in \code{\$fpath} with the following contents:
 %
 \begin{htcode}
 #compdef texdoc
@@ -790,23 +796,6 @@
 \end{htcode}
 \end{itemize}
 
-You can confirm your installation by checking whether \code{\~/.zcompdump}
-contains the following:
-%
-\begin{htcode}
-'texdoc' '_texdoc'
-\end{htcode}
-
-Note: The path \code{/usr/share} is for GNU/Linux. For other platforms, the
-path can be:
-%
-\begin{description}
-\item[macOS (homebrew, x86)] \verb|/usr/local/share|
-\item[macOS (homebrew, arm)] \verb|/opt/homebrew/share|
-\item[Android (Termux)] \verb|/data/data/com.termux/files/usr/share|
-\item[Windows (Msys2 Mingw64)] \verb|/mingw64/share|
-\end{description}
-
 \section{Licence}
 \label{sec:licence}
 

Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu	2023-02-27 20:37:21 UTC (rev 66227)
@@ -48,6 +48,7 @@
 
 -- interpreting 'context' in this section
 local function context_to_string(context)
+    local w32_path = import_function('util', 'w32_path')
     if not context then return '(no context)' end
     if context.src == 'cl' then
         return 'from command-line option "' .. context.name .. '"'
@@ -56,7 +57,7 @@
     elseif context.src == 'loc' then
         return 'from operating system locale'
     elseif context.src == 'file' then
-        return 'in file "' .. context.file .. '" on line ' .. context.line
+        return 'in file "' .. w32_path(context.file) .. '" on line ' .. context.line
     elseif context.src == 'def' then
         return 'from built-in defaults'
     else
@@ -266,6 +267,7 @@
 -- set config and aliases from a particular config file assumed to exist
 local function read_config_file(configfile)
     local err_print = import_function('util', 'err_print')
+    local w32_path = import_function('util', 'w32_path')
     local confline_to_alias = import_function('alias', 'confline_to_alias')
     local confline_to_score = import_function('score', 'confline_to_score')
 
@@ -302,7 +304,7 @@
         -- complain if it failed
         if not ok then
             err_print('warning',
-                'syntax error in %s at line %d.', configfile, lineno)
+                'syntax error in %s at line %d.', w32_path(configfile), lineno)
         end
 
         ::continue::

Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu	2023-02-27 20:37:21 UTC (rev 66227)
@@ -22,8 +22,8 @@
 -- progname and version
 fullname = kpse.find_file('texdoc/texdoclib', 'lua')
 progname = 'Texdoc'
-version = '4.0'
-release_date = '2023-02-20'
+version = '4.0.1'
+release_date = '2023-02-27'
 
 -- make sure to update setup_config_from_cl() accordingly
 -- and set a default value in setup_config_from_defaults() if relevant

Modified: trunk/Master/texmf-dist/texdoc/texdoc.cnf
===================================================================
--- trunk/Master/texmf-dist/texdoc/texdoc.cnf	2023-02-27 20:36:47 UTC (rev 66226)
+++ trunk/Master/texmf-dist/texdoc/texdoc.cnf	2023-02-27 20:37:21 UTC (rev 66227)
@@ -278,6 +278,7 @@
 
 # a few useful general documents
 alias latex = latex-doc-ptr
+alias plain = gentle
 
 # various lshort translations
 adjscore(lshort) /lshort-english/ = +0.5                   # original



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