texlive[44194] Master: ifptex (4may17)

commits+karl at tug.org commits+karl at tug.org
Fri May 5 00:14:01 CEST 2017


Revision: 44194
          http://tug.org/svn/texlive?view=revision&revision=44194
Author:   karl
Date:     2017-05-05 00:14:01 +0200 (Fri, 05 May 2017)
Log Message:
-----------
ifptex (4may17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/generic/ifptex/
    trunk/Master/texmf-dist/doc/generic/ifptex/LICENSE
    trunk/Master/texmf-dist/doc/generic/ifptex/README-ja.md
    trunk/Master/texmf-dist/doc/generic/ifptex/README.md
    trunk/Master/texmf-dist/tex/generic/ifptex/
    trunk/Master/texmf-dist/tex/generic/ifptex/ifptex.sty
    trunk/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
    trunk/Master/tlpkg/tlpsrc/ifptex.tlpsrc

Added: trunk/Master/texmf-dist/doc/generic/ifptex/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/generic/ifptex/LICENSE	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/ifptex/LICENSE	2017-05-04 22:14:01 UTC (rev 44194)
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2017 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

Added: trunk/Master/texmf-dist/doc/generic/ifptex/README-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/ifptex/README-ja.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/ifptex/README-ja.md	2017-05-04 22:14:01 UTC (rev 44194)
@@ -0,0 +1,90 @@
+ifptex パッケージバンドル
+=========================
+
+TeX: エンジンが pTeX(やその派生)であるかを判定する
+
+ifptex パッケージは ifxetex や ifluatex 等のパッケージの pTeX 版に
+相当する。ifuptex パッケージは ifptex の別名で、後方互換性のために
+用意されている。
+
+### システム要件
+
+  - TeX フォーマット: plain TeX、LaTeX (および他の plain 互換なもの)
+  - TeX エンジン: 不問
+  - DVI ウェア(DVI 出力時): 不問
+
+### インストール
+
+TDS 1.1 に準拠するシステムの場合、以下のようにファイルを移動する:
+
+  - `*.sty` → $TEXMF/tex/latex/ifptex
+
+この後必要に応じて mktexlsr を実行する。
+
+ifptex パッケージ ― pTeX 系エンジンの判定
+------------------------------------------
+
+### パッケージ読込
+
+plain TeX の場合:
+
+    \input ifptex.sty
+
+LaTeX の場合:
+
+    \usepackage{ifptex}
+
+### 機能
+
+  * `\ifpTeX`(又は `\ifptex`)[if-トークン]  
+    pTeX(upTeX を含む)を使っているか。
+  * `\ifstrictpTeX`(又は `\ifstrictptex`)[if-トークン]  
+    pTeX(upTeX ではなく)を使っているか。
+  * `\ifupTeX`(又は `\ifuptex`) [if-トークン]  
+    upTeX を使っているか。
+  * `\ifnativeupTeX` [if-トークン]  
+    upTeX を内部文字コードが Unicode の状態で使っているか。  
+  * `\ifpTeXng`(又は `\ifptexng`)[if-トークン]  
+    pTeX-ng を使っているか。
+  * `\RequirepTeX`  
+    `\ifpTeX` 不成立の場合はエラーを出す。
+  * `\RequireupTeX`  
+    `\ifupTeX` 不成立の場合はエラーを出す。
+  * `\RequireNativeupTeX`  
+    `\ifNativeupTeX` 不成立の場合はエラーを出す。
+  * `\RequirepTeXng`  
+    `\ifpTeXng` 不成立の場合はエラーを出す。
+
+
+ifuptex パッケージ ― ifptex の別名
+-----------------------------------
+
+ただ単に ifptex を読み込むだけのパッケージであり、0.2 版との後方互換性の
+ために用意されている。
+
+### パッケージ読込
+
+plain TeX の場合:
+
+    \input ifuptex.sty
+
+LaTeX の場合:
+
+    \usepackage{ifuptex}
+
+
+更新履歴
+--------
+
+  * Version 1.1  〈2017/05/04〉
+      - 細かい調整。
+  * Version 1.0  〈2013/04/29〉
+      - 独立のバンドルに移動。
+      - パッケージ名を ifptex に変更して、pTeX 判定機能を付加。
+      - (試験的) upTeX の版判定機能を追加。
+  * Version 0.2  〈2008/03/14〉
+      - 最初の公開版。
+
+--------------------
+Takayuki YATO (aka. "ZR")  
+https://github.com/zr-tex8r


Property changes on: trunk/Master/texmf-dist/doc/generic/ifptex/README-ja.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/generic/ifptex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/ifptex/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/ifptex/README.md	2017-05-04 22:14:01 UTC (rev 44194)
@@ -0,0 +1,100 @@
+ifptex Package Bundle
+=====================
+
+TeX: To check the engine is pTeX (or its derivatives)
+
+The ifptex package is a counterpart of ifxetex, ifluatex, etc. for
+the pTeX engine. The ifuptex package is an alises to ifptex provided
+for backward compatibility.
+
+### System Requirements
+
+  - TeX format: plain TeX, LaTeX (and any plain-compatible ones).
+  - TeX engine: Anything.
+  - DVI driver (in DVI mode): Anything.
+
+### Installation
+
+In a system compliant to TDS 1.1, move the files as follows:
+
+  - `*.sty` → $TEXMF/tex/latex/ifptex
+
+And rehash your TEXMF trees if necessary.
+
+### License
+
+This package is distributed under the MIT License.
+
+ifptex Package ― Test for pTeX engine
+--------------------------------------
+
+### Package Loading
+
+In plain TeX:
+
+    \input ifptex.sty
+
+In LaTeX:
+
+    \usepackage{ifptex}
+
+### Usage
+
+  * `\ifpTeX` (or `\ifptex`)  [if-token]  
+    Whether the engine is pTeX (or its derivative, including upTeX).
+  * `\ifstrictpTeX` (or `\ifstrictptex`) [if-token]  
+    Whether the engine is pTeX (or its derivative) but *not* upTeX.
+  * `\ifupTeX` (or `\ifuptex`) [if-token]  
+    Whether the engine is upTeX (or its derivative).
+  * `\ifnativeupTeX` [if-token]  
+    Whether the engine is upTeX and its internal encoding is Unicode.
+  * `\ifpTeXng` (or `\ifptexng`) [if-token]  
+    Whether the engine is pTeX-ng.
+  * `\RequirepTeX`  
+    Issues an error if `\ifpTeX` fails.
+  * `\RequireStrictpTeX`  
+    Issues an error if `\ifstrictpTeX` fails.
+  * `\RequireupTeX`  
+    Issues an error if `\ifupTeX` fails.
+  * `\RequireNativeupTeX`  
+    Issues an error if `\ifnativeupTeX` fails.
+  * `\RequirepTeXng`  
+    Issues an error if `\ifpTeXng` fails.
+
+
+ifuptex Package ― Alias of ifptex
+----------------------------------
+
+The ifuptex package does nothing but loading ifptex internally. It is
+provided for backward compatibility.
+
+### Package Loading
+
+In plain TeX:
+
+    \input ifuptex.sty
+
+In LaTeX:
+
+    \usepackage{ifuptex}
+
+### Usage
+
+Just the same as the ifptex package.
+
+
+Revision History
+----------------
+
+  * Version 1.1  〈2017/05/04〉
+      - Minor fix.
+  * Version 1.0  〈2013/04/29〉
+      - Move to a separate bundle.
+      - Change the package name to ifptex, and added the test
+        for pTeX (besides upTeX).
+  * Version 0.2  〈2008/03/14〉
+      - First public version.
+
+--------------------
+Takayuki YATO (aka. "ZR")  
+https://github.com/zr-tex8r


Property changes on: trunk/Master/texmf-dist/doc/generic/ifptex/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ifptex/ifptex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ifptex/ifptex.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ifptex/ifptex.sty	2017-05-04 22:14:01 UTC (rev 44194)
@@ -0,0 +1,224 @@
+%%
+%% This is file 'ifptex.sty'.
+%% 
+%% Copyright (c) 2017 Takayuki YATO (aka. "ZR")
+%%   GitHub:   https://github.com/zr-tex8r
+%%   Twitter:  @zr_tex8r
+%%
+%% This package is distributed under the MIT License.
+%%
+%
+%% avoid multiple loading
+\csname\if11bxipIfptexLoaded\fi\endcsname
+%% code guards
+\edef\x{%
+\catcode32=\the\catcode32%
+\catcode33=\the\catcode33%
+\catcode35=\the\catcode35%
+\catcode42=\the\catcode42%
+\catcode60=\the\catcode60%
+\catcode62=\the\catcode62%
+\catcode64=\the\catcode64%
+\catcode91=\the\catcode91%
+\catcode93=\the\catcode93%
+\relax}
+\catcode32=10\relax
+\catcode33=11 %<">
+\catcode35=6  %<#>
+\catcode42=12 %<*>
+\catcode60=12 %<<>
+\catcode62=12 %<>>
+\catcode64=11 %<@>
+\catcode91=12 %<[>
+\catcode93=12 %<]>
+\edef\bxip at restore@codes{\x
+  \noexpand\let\noexpand\bxip at restore@codes\relax}
+\def\bxipIfptexLoaded{\endinput}
+
+%% check for LaTeX
+\ifx\RequirePackage\@undefined %<*!LaTeX>
+  \let\bxip at latex=f
+  \long\def\x#1\ProvidesPackage#2[#3]{%
+    \immediate\write-1{Package: #2 #3}}
+  \expandafter\x
+\else                          %<*LaTeX>
+  \let\bxip at latex=t \let\x\relax
+\fi                            %</LaTeX>
+
+%% package declaration
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ifptex}[2017/05/04 v1.1-pre pTeX checker]
+
+%% enter the big group
+\begingroup
+
+%--------------------------------------- helpers
+
+%% \bxip at csletcs{<csnameA>}{<csnameB>}
+\def\bxip at csletcs#1#2{%
+  \expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname}
+%% \bxip at true{<csname>}
+\def\bxip at true#1{%
+  \expandafter\let\csname#1\endcsname\iftrue}
+%% \bxip at false{<csname>}
+\def\bxip at false#1{%
+  \expandafter\let\csname#1\endcsname\iffalse}
+
+%% switches
+\bxip at false{ifbxip at ok}
+
+%% \bxip at test@primitive\CS
+\def\bxip at test@primitive#1{%
+  \edef\bxip at tmpa{\string#1}\edef\bxip at tmpb{\meaning#1}%
+  \ifx\bxip at tmpa\bxip at tmpb \bxip at true{ifbxip at ok}%
+  \else \bxip at false{ifbxip at ok}%
+  \fi}
+
+%% \bxip at with@default{<arg>}\CS
+\gdef\bxip at with@default#1#2{%
+  \def\bxip at tmpa{#2}\def\bxip at tmpb{#2[#1]}%
+  \futurelet\bxip at tok\bxip at with@default at a}
+\gdef\bxip at with@default at a{%
+  \ifx[\bxip at tok\expandafter\bxip at tmpa%]
+  \else \expandafter\bxip at tmpb
+  \fi}
+
+%% \bxip at check@version{<current>}{<required>}{<label>}
+\global\countdef\bxip at cnta=255
+\gdef\bxip at check@version#1#2#3{%
+  \ifnum#1<#2\relax
+    \begingroup
+      \bxip at cnta=#2\relax \advance\bxip at cnta100000\relax
+      \expandafter\bxip at check@version at a\the\bxip at cnta\relax{#3}%
+    \endgroup
+  \fi}
+\gdef\bxip at check@version at a#1#2#3#4#5#6\relax#7{%
+  \bxip at err@required{#7 v.>=\number#2#3#4.#5#6}}
+
+%% \bxip at err@required{<string>}
+% NB: Now the same style as in ifxetex is used.
+\gdef\bxip at err@required#1{%
+  \begingroup
+    \errorcontextlines=-1\relax
+    \newlinechar=10\relax
+    \errmessage{^^J
+    ********************************************^^J
+    * #1 is required to compile this document.^^J
+    * Sorry!^^J
+    ********************************************}%
+  \endgroup}
+
+%--------------------------------------- guess version
+
+%% \bxip at uptex@new at version
+\global\mathchardef\bxip at uptex@new at version=19
+
+%%<+> \upTeXguessedversion
+\global\mathchardef\upTeXguessedversion=0
+% if \ucs exists, then gv >= 1
+\bxip at test@primitive\ucs\ifbxip at ok
+  \global\mathchardef\upTeXguessedversion=1
+  % if \enablecjktoken exists, then gv >= 6
+  \bxip at test@primitive\enablecjktoken\ifbxip at ok
+    \global\mathchardef\upTeXguessedversion=6
+    % if \kchar exists, then gv >= 10
+    \bxip at test@primitive\kchar\ifbxip at ok
+      \global\mathchardef\upTeXguessedversion=10
+      % if \forcecjktoken exists, then gv >= 19
+      \bxip at test@primitive\forcecjktoken\ifbxip at ok
+        \global\mathchardef\upTeXguessedversion=19
+      \fi
+    \fi
+  \fi
+\fi
+
+%--------------------------------------- public stuffs
+
+%%<+> \ifpTeX
+\global\bxip at false{ifpTeX}
+\bxip at test@primitive\kanjiskip\ifbxip at ok
+  \global\bxip at true{ifpTeX}
+\fi
+%%<+> \ifptex == \ifpTeX
+\global\bxip at csletcs{ifptex}{ifpTeX}
+
+%%<+> \ifupTeX
+\global\bxip at false{ifupTeX}
+%%<+> \ifnativeupTeX
+\global\bxip at false{ifnativeupTeX}
+\ifnum\upTeXguessedversion>0
+  \global\bxip at true{ifupTeX}
+  % native-ness check
+  \ifnum\ucs"3000="3000 \global\bxip at true{ifnativeupTeX}\fi
+\fi
+%%<+> \ifuptex == \ifupTeX
+\global\bxip at csletcs{ifuptex}{ifupTeX}
+
+%%<+> \ifpTeXng
+\global\bxip at false{ifpTeXng}
+\bxip at test@primitive\ngbanner\ifbxip at ok
+  \global\bxip at true{ifpTeXng}
+\fi
+%%<+> \ifptexng == \ifpTeXng
+\global\bxip at csletcs{ifptexng}{ifpTeXng}
+
+%%<+> \ifstrictpTeX
+\global\bxip at false{ifstrictpTeX}
+\ifpTeX \ifupTeX\else
+  \global\bxip at true{ifstrictpTeX}
+\fi\fi
+%%<+> \ifstrictptex == \ifstrictpTeX
+\global\bxip at csletcs{ifstrictptex}{ifstrictpTeX}
+
+%%<+> \RequirepTeX
+\gdef\RequirepTeX{%
+  \ifpTeX\else \bxip at err@required{(u)pTeX}\fi}
+%%<+> \RequireStrictpTeX
+\gdef\RequireStrictpTeX{%
+  \ifstrictpTeX\else \bxip at err@required{pTeX (not upTeX)}\fi}
+%%<+> \RequireupTeX
+\gdef\RequireupTeX{%
+  \ifupTeX\else \bxip at err@required{upTeX}\fi}
+%%<+> \RequireNativeupTeX
+\gdef\RequireNativeupTeX{%
+  \ifnativeupTeX\else \bxip at err@required{upTeX in Unicode}\fi}
+%%<+> \RequirepTeXng
+\gdef\RequirepTeXng{%
+  \ifpTeXng\else \bxip at err@required{pTeX-ng}\fi}
+
+%--------------------------------------- deprecated stuffs
+
+%%<+>D \ifNativeupTeX == \ifnativeupTeX
+\global\bxip at csletcs{ifNativeupTeX}{ifnativeupTeX}
+%%<+>D \RequirenativeupTeX == \RequireNativeupTeX
+\gdef\RequirenativeupTeX{\RequireNativeupTeX}
+
+%%<+>D \ifnewupTeX
+\global\bxip at false{ifnewupTeX}
+\ifnum\upTeXguessedversion<\bxip at uptex@new at version\else
+  \global\bxip at true{ifnewupTeX}
+\fi
+
+%%<+>D \RequireNewupTeX
+\gdef\RequireNewupTeX{%
+  \bxip at with@default\bxip at uptex@new at version\bxip at require@new at uptex@a}
+\gdef\bxip at require@new at uptex@a[#1]{%
+  \ifupTeX
+    \bxip at check@version\upTeXguessedversion{#1}{upTeX}%
+  \else \bxip at err@required{upTeX}%
+  \fi}
+
+%%<+>D \RequireNativeNewupTeX
+\gdef\RequireNativeNewupTeX{%
+  \bxip at with@default\bxip at uptex@new at version\bxip at require@new at uptex@b}
+\gdef\bxip at require@new at uptex@b[#1]{%
+  \ifnativeupTeX
+    \bxip at check@version\upTeXguessedversion{#1}{upTeX in Unicode}%
+  \else \bxip at err@required{upTeX in Unicode}%
+  \fi}
+
+%--------------------------------------- all done
+\endgroup
+\bxip at restore@codes
+\endinput
+%% EOF


Property changes on: trunk/Master/texmf-dist/tex/generic/ifptex/ifptex.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty	2017-05-04 22:14:01 UTC (rev 44194)
@@ -0,0 +1,54 @@
+%%
+%% This is file 'ifuptex.sty'.
+%% 
+%% Copyright (c) 2017 Takayuki YATO (aka. "ZR")
+%%   GitHub:   https://github.com/zr-tex8r
+%%   Twitter:  @zr_tex8r
+%%
+%% This package is distributed under the MIT License.
+%%
+%
+% NOTE: Now ifuptex is merely an alias to ifptex.
+%
+%% avoid multiple loading
+\csname\if11bxipIfuptexLoaded\fi\endcsname
+%% code guards
+\edef\x{%
+\catcode32=\the\catcode32%
+\catcode45=\the\catcode45%
+\catcode46=\the\catcode46%
+\catcode47=\the\catcode47%
+\catcode58=\the\catcode58%
+\catcode64=\the\catcode64%
+\relax}
+\catcode32=10\relax
+\catcode45=12 % <->
+\catcode46=12 % <.>
+\catcode47=12 % </>
+\catcode58=12 % <:>
+\catcode64=11 % <@>
+\edef\bxip at up@restore at codes{\x
+  \noexpand\let\noexpand\bxip at up@restore at codes\relax}
+\def\bxipIfuptexLoaded{\endinput}
+
+%% check for LaTeX
+\ifx\RequirePackage\@undefined % non-LaTeX
+  \long\def\x#1\ProvidesPackage#2[#3]{%
+    \def\x\RequirePackage##1[##2]{\input ##1.sty\relax}%
+    \immediate\write-1{Package: #2 #3}}
+  \expandafter\x
+\else % LaTeX
+  \let\x\relax
+\fi
+
+%% package declaration
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ifuptex}[2017/05/04 v1.1-pre upTeX checker]
+
+%% load ifptex
+\x\RequirePackage{ifptex}[2017/05/04]
+
+%% all done
+\bxip at up@restore at codes
+\endinput
+%% EOF


Property changes on: trunk/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-05-04 22:12:59 UTC (rev 44193)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-05-04 22:14:01 UTC (rev 44194)
@@ -319,7 +319,7 @@
     hypdvips hyper hypernat hyperref hyperxmp hyph-utf8 hyphen-base 
     hyphenat hyphenex hyplain
   ibycus-babel ibygrk icsv idxcmds idxlayout ieeepes ietfbibs
-    ifetex iffont ifmslide ifmtarg ifnextok ifoddpage ifplatform ifsym
+    ifetex iffont ifmslide ifmtarg ifnextok ifoddpage ifplatform ifptex ifsym
     iftex ifthenx ifxetex
     iitem ijmart ijqc ijsra
     imac image-gallery imakeidx impatient impatient-cn impatient-fr

Modified: trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc	2017-05-04 22:12:59 UTC (rev 44193)
+++ trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc	2017-05-04 22:14:01 UTC (rev 44194)
@@ -10,6 +10,7 @@
 depend bxjalipsum
 depend bxjscls
 depend convbkmk
+depend ifptex
 depend ipaex
 depend japanese-otf
 depend japanese-otf-uptex

Added: trunk/Master/tlpkg/tlpsrc/ifptex.tlpsrc
===================================================================


More information about the tex-live-commits mailing list