summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-03 21:29:00 +0000
committerKarl Berry <karl@freefriends.org>2017-05-03 21:29:00 +0000
commitae344469d5fb8eb60460be3f0769bb7b9bee7f0e (patch)
tree24a256e23fc542a7dfeb4e633fc9b209fff5e1d8 /Master/texmf-dist
parent4173c34b74281e437b531eaaeb760d011ddac776 (diff)
bxnewfont (3may17)
git-svn-id: svn://tug.org/texlive/trunk@44173 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/bxnewfont/LICENSE8
-rw-r--r--Master/texmf-dist/doc/latex/bxnewfont/README.md3
-rw-r--r--Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty61
3 files changed, 59 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/bxnewfont/LICENSE b/Master/texmf-dist/doc/latex/bxnewfont/LICENSE
index 49f803e083e..8ada757fbc8 100644
--- a/Master/texmf-dist/doc/latex/bxnewfont/LICENSE
+++ b/Master/texmf-dist/doc/latex/bxnewfont/LICENSE
@@ -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
diff --git a/Master/texmf-dist/doc/latex/bxnewfont/README.md b/Master/texmf-dist/doc/latex/bxnewfont/README.md
index 3f7248931ef..34ba546697e 100644
--- a/Master/texmf-dist/doc/latex/bxnewfont/README.md
+++ b/Master/texmf-dist/doc/latex/bxnewfont/README.md
@@ -70,6 +70,9 @@ Available options:
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.
diff --git a/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty b/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty
index e2d04f7ad53..16c5dfd3002 100644
--- a/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty
+++ b/Master/texmf-dist/tex/latex/bxnewfont/bxnewfont.sty
@@ -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@pkgname{bxnewfont}
@@ -94,11 +102,12 @@
\def\bxnf@check@param{%
\bxnf@oktrue
\bxnf@get@tfm@info
- \unless\ifdim\bxnf@size>\z@
+ \unless\ifnum\bxnf@type=\z@ \unless\ifdim\bxnf@size>\z@
\chardef\bxnf@type\z@
- \fi
+ \fi\fi
\ifnum\bxnf@type=\z@
\bxnf@error{Failed in getting TFM info}\@eha
+ \let\bxnf@enc\cf@encoding
\bxnf@okfalse
\else
\ifx\bxnf@enc\@empty
@@ -213,8 +222,8 @@ __\bxnf@select@family{#1}}%
\edef\bxnf@tmpb{{"}{\bxnf@tmpa}}%
\expandafter\bxnf@split@at\bxnf@tmpb
\ifx\bxnf@pre\relax
- \edef\bxnf@tmpb{{ }{\bxnf@tmpa}}%
- \expandafter\bxnf@split@at\bxnf@tmpb
+ \edef\bxnf@tmpb{{\bxnf@tmpa}}%
+ \expandafter\bxnf@find@unsafe@char\bxnf@tmpb
\unless\ifx\bxnf@pre\relax
\edef\bxnf@tmpa{"\bxnf@tmpa"}%
\fi
@@ -222,6 +231,45 @@ __\bxnf@select@family{#1}}%
\let#1\bxnf@tmpa
}
+%% \bxnf@find@unsafe@char
+\def\bxnf@find@unsafe@char#1{%
+ \bxnf@find@unsafe@char@a#1\bxnf@end
+}
+\def\bxnf@find@unsafe@char@a{%
+ \futurelet\bxnf@tok\bxnf@find@unsafe@char@b
+}
+\def\bxnf@find@unsafe@char@b{%
+ \ifx\bxnf@tok\bxnf@end
+ \let\bxnf@tok\relax
+ \let\bxnf@tmpb\bxnf@find@unsafe@char@c
+ \else\ifcat A\noexpand\bxnf@tok
+ \let\bxnf@tmpb\bxnf@find@unsafe@char@d
+ \else\ifcat 0\noexpand\bxnf@tok
+ \let\bxnf@tmpb\bxnf@find@unsafe@char@e
+ \else\ifcat _\noexpand\bxnf@tok
+ \let\bxnf@tmpb\bxnf@find@unsafe@char@e
+ \else
+ \let\bxnf@tmpb\bxnf@find@unsafe@char@c
+ \fi\fi\fi\fi
+ \bxnf@tmpb
+}
+\def\bxnf@find@unsafe@char@c#1\bxnf@end{%
+ \let\bxnf@pre= \bxnf@tok
+}
+\def\bxnf@find@unsafe@char@d#1{%
+ \bxnf@find@unsafe@char@a
+}
+\def\bxnf@find@unsafe@char@e#1{%
+ \ifcsundef{bxnf@sc/#1}{%
+ \bxnf@find@unsafe@char@c
+ }{%else
+ \bxnf@find@unsafe@char@a
+ }%
+}
+\@tfor\bxnf@tmpa:=0123456789.-_+\do{%
+ \cslet{bxnf@sc/\bxnf@tmpa}{t}%
+}
+
%% \bxnf@split@name
% Parses \bxnf@font and sets \bxnf@tfm and \bxnf@atcl.
\def\bxnf@split@name{%
@@ -360,6 +408,7 @@ __\bxnf@select@family{#1}}%
%% \bxnf@get@tfm@info
\def\bxnf@get@tfm@info{%
+ \bxDebug{name=\bxnf@tfm}%
\begingroup
\chardef\bxnf@type=0 \let\bxnf@size\@empty
\font\bxnf@tmpa=\bxnf@tfm\space scaled 2000\relax