texlive[44173] Master/texmf-dist: bxnewfont (3may17)

commits+karl at tug.org commits+karl at tug.org
Wed May 3 23:29:00 CEST 2017


Revision: 44173
          http://tug.org/svn/texlive?view=revision&revision=44173
Author:   karl
Date:     2017-05-03 23:29:00 +0200 (Wed, 03 May 2017)
Log Message:
-----------
bxnewfont (3may17)

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

Modified: trunk/Master/texmf-dist/doc/latex/bxnewfont/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxnewfont/LICENSE	2017-05-03 21:28:45 UTC (rev 44172)
+++ trunk/Master/texmf-dist/doc/latex/bxnewfont/LICENSE	2017-05-03 21:29:00 UTC (rev 44173)
@@ -1,12 +1,6 @@
-$BK\%=%U%H%&%'%"$O(B MIT $B%i%$%;%s%9$N2<$GG[I[$5$l$^$9!#(B
-$BCx:n8"$O:n<T$G$"$k!VH,EP(B $B?rG7!JJLL>(B ZR$B!K!W$KB0$7$^$9!#(B
-$B$^$?K\%=%U%H%&%'%"$OL5J]>Z$G$9!#(B
-
-This software is distributed under the MIT License.
-
 The MIT License
 
-Copyright (c) 2016 Takayuki YATO (aka. "ZR")
+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

Modified: trunk/Master/texmf-dist/doc/latex/bxnewfont/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxnewfont/README.md	2017-05-03 21:28:45 UTC (rev 44172)
+++ trunk/Master/texmf-dist/doc/latex/bxnewfont/README.md	2017-05-03 21:29:00 UTC (rev 44173)
@@ -70,6 +70,9 @@
 Revision History
 ----------------
 
+  * Version 0.2b ‹2017/05/01›
+      - Change the rule for automatic quoting. Namely, names which are
+        judged as illegal by mktextfm should be quoted.
   * Version 0.2a ‹2016/08/08›
       - Now “TFM” names can contain spaces with suitable quoting.
         This enables one to specify OpenType fonts on Unicode engines.

Modified: trunk/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty	2017-05-03 21:28:45 UTC (rev 44172)
+++ trunk/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty	2017-05-03 21:29:00 UTC (rev 44173)
@@ -1,8 +1,16 @@
-% bxnewfont.sty
+%%
+%% This is file 'bxnewfont.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.
+%%
 
 %% package declaration
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxnewfont}[2016/08/08 v0.2a]
+\ProvidesPackage{bxnewfont}[2017/05/01 v0.2b]
 
 %% preparation
 \def\bxnf at pkgname{bxnewfont}
@@ -94,11 +102,12 @@
 \def\bxnf at check@param{%
   \bxnf at oktrue
   \bxnf at get@tfm at info
-  \unless\ifdim\bxnf at size>\z@
+  \unless\ifnum\bxnf at type=\z@ \unless\ifdim\bxnf at size>\z@
     \chardef\bxnf at type\z@
-  \fi
+  \fi\fi
   \ifnum\bxnf at type=\z@
     \bxnf at error{Failed in getting TFM info}\@eha
+    \let\bxnf at enc\cf at encoding
     \bxnf at okfalse
   \else
     \ifx\bxnf at enc\@empty
@@ -213,8 +222,8 @@
   \edef\bxnf at tmpb{{"}{\bxnf at tmpa}}%
   \expandafter\bxnf at split@at\bxnf at tmpb
   \ifx\bxnf at pre\relax
-    \edef\bxnf at tmpb{{ }{\bxnf at tmpa}}%
-    \expandafter\bxnf at split@at\bxnf at tmpb
+    \edef\bxnf at tmpb{{\bxnf at tmpa}}%
+    \expandafter\bxnf at find@unsafe at char\bxnf at tmpb
     \unless\ifx\bxnf at pre\relax
       \edef\bxnf at tmpa{"\bxnf at tmpa"}%
     \fi
@@ -222,6 +231,45 @@
   \let#1\bxnf at tmpa
 }
 
+%% \bxnf at find@unsafe at char
+\def\bxnf at find@unsafe at char#1{%
+  \bxnf at find@unsafe at char@a#1\bxnf at end
+}
+\def\bxnf at find@unsafe at char@a{%
+  \futurelet\bxnf at tok\bxnf at find@unsafe at char@b
+}
+\def\bxnf at find@unsafe at char@b{%
+  \ifx\bxnf at tok\bxnf at end
+    \let\bxnf at tok\relax
+    \let\bxnf at tmpb\bxnf at find@unsafe at char@c
+  \else\ifcat A\noexpand\bxnf at tok
+    \let\bxnf at tmpb\bxnf at find@unsafe at char@d
+  \else\ifcat 0\noexpand\bxnf at tok
+    \let\bxnf at tmpb\bxnf at find@unsafe at char@e
+  \else\ifcat _\noexpand\bxnf at tok
+    \let\bxnf at tmpb\bxnf at find@unsafe at char@e
+  \else
+    \let\bxnf at tmpb\bxnf at find@unsafe at char@c
+  \fi\fi\fi\fi
+  \bxnf at tmpb
+}
+\def\bxnf at find@unsafe at char@c#1\bxnf at end{%
+  \let\bxnf at pre= \bxnf at tok
+}
+\def\bxnf at find@unsafe at char@d#1{%
+  \bxnf at find@unsafe at char@a
+}
+\def\bxnf at find@unsafe at char@e#1{%
+  \ifcsundef{bxnf at sc/#1}{%
+    \bxnf at find@unsafe at char@c
+  }{%else
+    \bxnf at find@unsafe at char@a
+  }%
+}
+\@tfor\bxnf at tmpa:=0123456789.-_+\do{%
+  \cslet{bxnf at sc/\bxnf at tmpa}{t}%
+}
+
 %% \bxnf at split@name
 % Parses \bxnf at font and sets \bxnf at tfm and \bxnf at atcl.
 \def\bxnf at split@name{%
@@ -360,6 +408,7 @@
 
 %% \bxnf at get@tfm at info
 \def\bxnf at get@tfm at info{%
+  \bxDebug{name=\bxnf at tfm}%
   \begingroup
     \chardef\bxnf at type=0 \let\bxnf at size\@empty
     \font\bxnf at tmpa=\bxnf at tfm\space scaled 2000\relax



More information about the tex-live-commits mailing list