summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-22 21:15:59 +0000
committerKarl Berry <karl@freefriends.org>2019-07-22 21:15:59 +0000
commit082598cd88d19d1ec7485528d017f45169af207c (patch)
treeb2a11bd4b3148b9bd264bf6c3d048aa9a7a2dff1 /Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty
parent8e445d770882e75d0a3993b5927f2f2b42120fe3 (diff)
unicode-alphabets (22jul19)
git-svn-id: svn://tug.org/texlive/trunk@51706 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty')
-rw-r--r--Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty39
1 files changed, 23 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty b/Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty
index 147336e2d73..c6551761a30 100644
--- a/Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty
+++ b/Master/texmf-dist/tex/latex/unicode-alphabets/unicode-alphabets.sty
@@ -1,6 +1,6 @@
-\ProvidesPackage{unicode-alphabets}[2019/07/17 Unicode alphabets in the Private Use Area]
+\ProvidesPackage{unicode-alphabets}[2019/07/22 Unicode alphabets in the Private Use Area]
-% License: CC-BY-4.0
+% License: CC-BY-SA 4.0
% Author: Mikkel Eide Eriksen <mikkel.eriksen@gmail.com>
\RequirePackage{pgfkeys}
@@ -8,10 +8,11 @@
\RequirePackage{etoolbox}
\RequirePackage{xparse}
+\RequirePackage{stringstrings}
\RequirePackage{csvsimple}
-\include{csvsimple.tmp.patch}
+\input{csvsimple.tmp.patch}
\makeatletter
@@ -26,22 +27,26 @@
disableentitymacros=false,
}
-\newcommand\alph@setup[2]{
+\newcommand\alph@setup[1]{
+ \caselower[q]{#1}
+ \csxdef{#1code}{\thestring}
\edef\temp{%
\noexpand\alph@keys{
- fonts/#1/.store in=\unexpanded\expandafter{\csname alph@font@#2\endcsname},
+ fonts/#1/.store in=\unexpanded\expandafter{\csname alph@font@\csuse{#1code}\endcsname},
}%
}\temp%
\alph@keys{
- #1/.default={#2},
- #1/.code={\alph@make@set{#2}{##1}},
+ #1/.default={\csuse{#1code}},
+ #1/.code={\alph@make@set{\csuse{#1code}}{##1}},
}
}
-\alph@setup{CYFI}{cyfi}
-\alph@setup{MUFI}{mufi}
-\alph@setup{SIL}{sil}
-\alph@setup{TITUS}{titus}
-\alph@setup{UNZ}{unz}
+\alph@setup{AGL}
+\alph@setup{CYFI}
+\alph@setup{MUFI}
+\alph@setup{SIL}
+\alph@setup{TITUS}
+\alph@setup{UCSUR}
+\alph@setup{UNZ}
\alph@keys{
LINCUA/.style={CYFI,MUFI,TITUS}
}
@@ -51,13 +56,15 @@
% #2 = macro name
\alph@make@main{#1}{#2}%
\csvloop{
- file={unicode-alphabets.#1.tsv},
- separator=tab,
+ file={unicode-alphabets.#1.csv},
head to column names,
head to column names prefix=alph@,
command={
- \csxdef{alph@#1@\alph@name}{\alph@codepoint}%
- %\csshow{alph@entity}%
+ \ifcsdef{alph@name}{%
+ \ifcsempty{alph@name}{}{%
+ \csxdef{alph@#1@\alph@name}{\alph@codepoint}%
+ }%
+ }{}%
\ifcsdef{alph@entity}{%
\ifcsempty{alph@entity}{}{%
\csxdef{alph@#1@\alph@entity}{\alph@codepoint}%