texlive[63185] Master/texmf-dist: bxpdfver (30apr22)

commits+karl at tug.org commits+karl at tug.org
Sat Apr 30 22:01:17 CEST 2022


Revision: 63185
          http://tug.org/svn/texlive?view=revision&revision=63185
Author:   karl
Date:     2022-04-30 22:01:16 +0200 (Sat, 30 Apr 2022)
Log Message:
-----------
bxpdfver (30apr22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/bxpdfver/LICENSE
    trunk/Master/texmf-dist/doc/latex/bxpdfver/README-ja.md
    trunk/Master/texmf-dist/doc/latex/bxpdfver/README.md
    trunk/Master/texmf-dist/tex/latex/bxpdfver/bxpdfver.sty

Modified: trunk/Master/texmf-dist/doc/latex/bxpdfver/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxpdfver/LICENSE	2022-04-30 16:21:08 UTC (rev 63184)
+++ trunk/Master/texmf-dist/doc/latex/bxpdfver/LICENSE	2022-04-30 20:01:16 UTC (rev 63185)
@@ -1,6 +1,6 @@
 The MIT License
 
-Copyright (c) 2014-2021 Takayuki YATO (aka. "ZR")
+Copyright (c) 2014-2022 Takayuki YATO (aka. "ZR")
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

Modified: trunk/Master/texmf-dist/doc/latex/bxpdfver/README-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxpdfver/README-ja.md	2022-04-30 16:21:08 UTC (rev 63184)
+++ trunk/Master/texmf-dist/doc/latex/bxpdfver/README-ja.md	2022-04-30 20:01:16 UTC (rev 63185)
@@ -26,6 +26,7 @@
 
 本パッケージは MIT ライセンスの下で配布される。
 
+
 bxpdfver パッケージ
 -------------------
 
@@ -45,8 +46,11 @@
       + PDF 出力のエンジンの場合は、既定で適切なドライバが選択される
         のでドライバオプションは不要である。
       + `dvipdfmx`: dvipdfmx 用のドライバを指定する。
-      + `nodvidriver`/`disabled`: 全ての機能を無効化する。
+      + `nodvidriver`/`disabled`: 全ての機能を無効化する。  
+        ※この場合 `lenient+` が既定になる。
   * `lenient`: サポートしない機能に対するエラーを警告に格下げする。
+  * `lenient+`: サポートしない機能に対するエラーを完全に抑止する。
+  * `nolenient`(既定): `lenient(+)` の否定。  
   * `new-dvipdfmx`: dvipdfmx に対するバージョン検査を省略し、常に最新の
     バージョンであると仮定する。
 
@@ -103,6 +107,9 @@
 更新履歴
 --------
 
+  * Version 0.6  ‹2022/04/28›
+      - `lenient+`/`nolenient` オプションを追加。
+      - 非サポートのドライバでも読込自体はエラーにしない。
   * Version 0.5a ‹2021/02/14›
       - 新しい版の hyperref のための調整。
   * Version 0.5  ‹2020/04/19›

Modified: trunk/Master/texmf-dist/doc/latex/bxpdfver/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxpdfver/README.md	2022-04-30 16:21:08 UTC (rev 63184)
+++ trunk/Master/texmf-dist/doc/latex/bxpdfver/README.md	2022-04-30 20:01:16 UTC (rev 63185)
@@ -28,6 +28,7 @@
 
 This package is distributed under the MIT license.
 
+
 bxpdfver package
 ----------------
 
@@ -46,11 +47,14 @@
       + When using a PDF-output engine, you need not give driver options
         since the appropriate one is auto-detected.
       + `dvipdfmx`: Uses dvipdfmx driver.
-      + `nodvidriver`/`disabled`: Disables all functions of the package.
+      + `nodvidriver`/`disabled`: Disables all functions of the package.  
+        NB. This option sets `lenient+` by default.
   * `lenient`: Turns the errors for unsupported features into warnings.
+  * `lenient+`: Suppreseses the errors for unsupported features.
+  * `nolenient`: Negation of `lenient(+)`.
 
 Note that the options `compress` and `objcompress` mean that this
-package *does not suppress* a feature. They do not activate a feature
+package *does not suppress* a feature. They do not reactivate a feature
 when it is already suppressed by other means.
 
 ### USAGE
@@ -66,7 +70,7 @@
     of digits after decimal points) of the decimal numbers that appear
     in PDF command sequences.
   * `\preservepdfdestinations`: Stops shortening the PDF destination
-    names and uses the original names given in the TeX documents. This
+    names and uses the original names given in the LaTeX documents. This
     is necessary for cross-document links to work correctly.
 
 ### NOTE ON DRIVERS
@@ -95,12 +99,15 @@
   * The package recognizes some “unsupported” driver options such as
     `dvips`; when such drivers are used, use of any feature will cause
     an error.
-  * When `nodvidriver` is used, use of any feature will do nothing (nor
-    issue an error).
+  * The use of `nodvidriver` sets `lenient*` by default; use of any
+    feature will do nothing (nor issue an error).
 
+
 REVISION HISTORY
 ----------------
 
+  * Version 0.6  ‹2022/04/28›
+      - Added the `lenient+` and `nolenient` options.
   * Version 0.5a ‹2021/02/14›
       - Adjustment for the new version of hyperref.
   * Version 0.5  ‹2020/04/19›

Modified: trunk/Master/texmf-dist/tex/latex/bxpdfver/bxpdfver.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxpdfver/bxpdfver.sty	2022-04-30 16:21:08 UTC (rev 63184)
+++ trunk/Master/texmf-dist/tex/latex/bxpdfver/bxpdfver.sty	2022-04-30 20:01:16 UTC (rev 63185)
@@ -1,7 +1,7 @@
 %%
 %% This is file 'bxpdfver.sty'.
 %%
-%% Copyright (c) 2014-2021 Takayuki YATO (aka. "ZR")
+%% Copyright (c) 2014-2022 Takayuki YATO (aka. "ZR")
 %%   GitHub:   https://github.com/zr-tex8r
 %%   Twitter:  @zr_tex8r
 %%
@@ -10,7 +10,7 @@
 
 %% package declaration
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxpdfver}[2021/02/14 v0.5a]
+\ProvidesPackage{bxpdfver}[2022/04/28 v0.6]
 \def\bxpv at pkgname{bxpdfver}
 
 %% preparations
@@ -27,8 +27,9 @@
 \let\bxpv at version\relax   % version value (eg. 1.4)
 \let\bxpv at compress=t      % use compression?
 \let\bxpv at obj@compress=t  % use object stream?
-\chardef\bxpv at infolevel=2 % info-log level
+\let\bxpv at infolevel\relax % info-log level
 \let\bxpv at new@dvipdfmx=f  % assume new dvipdfmx?
+\let\bxpv at ignore@pdfmanagement=f
 
 %% \bxpv at valid@versions
 \def\bxpv at valid@versions{1.4,1.5,1.6,1.7,2.0}
@@ -82,6 +83,10 @@
   \let\bxpv at drv@type=0%
   \def\bxpv at drv@name{nodvidriver}%
 }
+\DeclareOption{resetdvidriver}{%
+  \let\bxpv at drv@type\relax
+  \let\bxpv at drv@name\relax
+}
 \DeclareOption{new-dvipdfmx}{%
   \let\bxpv at drv@type=d%
   \let\bxpv at new@dvipdfmx=t%
@@ -91,10 +96,34 @@
 \DeclareOption{lenient}{%
   \chardef\bxpv at infolevel=1
 }
+\DeclareOption{nolenient}{%
+  \chardef\bxpv at infolevel=2
+}
+\DeclareOption{lenient+}{%
+  \chardef\bxpv at infolevel=0
+}
+\DeclareOption{nolenient+}{%
+  \chardef\bxpv at infolevel=2
+}
+\DeclareOption{ignorepdfmanagement}{%
+  \let\bxpv at ignore@pdfmanagement=t
+}
+\DeclareOption{noignorepdfmanagement}{%
+  \let\bxpv at ignore@pdfmanagement=f
+}
 
 %% process
 \ProcessOptions*
 
+%% default infolevel value
+\ifx\bxpv at infolevel\relax
+  \if 0\bxpv at drv@type
+    \chardef\bxpv at infolevel=0 %'lenient+'
+  \else
+    \chardef\bxpv at infolevel=2 %'nolenient'
+  \fi
+\fi
+
 %--------------------------------------- helpers
 
 %% unique tokens
@@ -115,6 +144,17 @@
   \def#3{#2}%
 }
 
+%% \bxpv at warn{<message>}
+% Issues a warning.
+\@onlypreamble\bxpv at warn
+\def\bxpv at warn#1{%
+  \ifcase\bxpv at infolevel % info when lenient+
+    \PackageInfo\bxpv at pkgname{#1\@gobble}%
+  \else % warn otherwise
+    \PackageWarningNoLine\bxpv at pkgname{#1}%
+  \fi
+}
+
 %% \bxpv at fail{<message>}
 % Issues an error or a warning.
 \@onlypreamble\bxpv at fail
@@ -193,9 +233,13 @@
   \bxpv at check@hyperref % must come first
 }
 
-%% 'disabled' driver
-\if 0\bxpv at drv@type
-  \chardef\bxpv at infolevel=0
+%% check for new PDF management
+\if t\bxpv at ignore@pdfmanagement\else
+  \ifx\IfPDFManagementActiveTF\@undefined\else
+    \IfPDFManagementActiveTF{%
+      \global\let\bxpv at drv@type=m%
+    }{}
+  \fi
 \fi
 
 %% adjust internal dispatchers
@@ -218,8 +262,13 @@
 \bxpv at check@prim\outputmode{\chardef\bxpv at pdfoutput\outputmode}
 \bxpv at check@prim\ngbanner{\chardef\bxpv at pdfoutput\@ne}
 
-%% when in PDF mode
-\ifnum\bxpv at pdfoutput>\z@
+%% switch
+\if m\bxpv at drv@type
+  %% when in new PDF management
+  \bxpv at warn
+   {New PDF management is active}%
+\else\ifnum\bxpv at pdfoutput>\z@
+  %% when in PDF mode
   \global\let\bxpv at drv@type=p
   \global\let\bxpv@@compresslevel\pdfcompresslevel
   \global\let\bxpv@@objcompresslevel\pdfobjcompresslevel
@@ -320,17 +369,22 @@
     \global\let\bxpv at preserve@destinations\relax
   \fi
 \else
+  %% when in DVI mode
   % XeTeX should do just as dvipdfmx.
   \bxpv at check@prim\XeTeXversion{%
     \global\let\bxpv at drv@type=d%
   }
-\fi
-
-%% when in DVI mode
+  % strange engines
+  \bxpv at check@prim\HINTversion{%
+    \global\let\bxpv at drv@type=X%
+  }
+\fi\fi
 \if x\bxpv at drv@type % 'bad' driver
-  \bxpv at fail{Unsupported driver '\bxpv at drv@name'}%
-  % no further errors
-  \global\chardef\bxpv at infolevel=0
+  \bxpv at warn
+   {Unsupported driver '\bxpv at drv@name'}%
+\else\if X\bxpv at drv@type % strange engine
+  \bxpv at warn
+   {Unsupported engine}%
 \else\if d\bxpv at drv@type % 'dvipdfmx'
   \global\let\bxpv at suppress@compress\relax
   \global\let\bxpv at suppress@obj at compress\relax
@@ -349,7 +403,7 @@
   \bxpv at fail
    {No driver option is given}%
   \global\chardef\bxpv at infolevel=0
-\fi\fi\fi
+\fi\fi\fi\fi
 
 \endgroup
 \fi                                     %--------



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