diff options
author | Karl Berry <karl@freefriends.org> | 2024-10-08 20:01:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-10-08 20:01:09 +0000 |
commit | f794ed08df0dc7fd09efa93a44416ac6867c4fc6 (patch) | |
tree | 6b9807550d663dff805c5541003665eb6b8ce11c /Master/texmf-dist | |
parent | 33454bfc6b57d079869c55aa0a6ef9ad005b8ce4 (diff) |
unimath-plain-xetex (8oct24)
git-svn-id: svn://tug.org/texlive/trunk@72498 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/xetex/unimath-plain-xetex/README.md | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-genmap.lua | 130 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf | bin | 62969 -> 74760 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex | 17 |
4 files changed, 11 insertions, 141 deletions
diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/README.md b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/README.md index b8b335a7a63..0100ea02cb5 100644 --- a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/README.md +++ b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/README.md @@ -1,8 +1,7 @@ # unimath-plain-xetex -This package provides OpenType math support in (plain) XeTeX. See `unimath-plain-xetex-doc.pdf` for more information. - -If anybody wants to maintain this package, please email `alphaztx at 163 dot com`. +This package provides OpenType math support in (plain) XeTeX. +See `unimath-plain-xetex-doc.pdf` for more information. Happy TeXing! diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-genmap.lua b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-genmap.lua deleted file mode 100644 index af465f87f38..00000000000 --- a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-genmap.lua +++ /dev/null @@ -1,130 +0,0 @@ --- Run this Lua script to generate "unimath-plain-xetex-alphabet.tex". --- This script needs kpathsea library which is provided by LuaTeX. --- You can "luatex" a file including --- \directlua{dofile("unimath-plain-genalphabet.lua")} - -tex_info = [===[%% <FILE> unimath-plain-xetex-alphabet -%% ****************************************************** -%% * This work may be distributed and/or modified under * -%% * the conditions of the LaTeX Project Public License * -%% * http://www.latex-project.org/lppl.txt * -%% * either version 1.3c of this license or any later * -%% * version. * -%% ******************************************************]===] - -Latin = { {"A", "0041", "A"}, {"B", "0042", "B"}, {"C", "0043", "C"}, {"D", "0044", "D"}, - {"E", "0045", "E"}, {"F", "0046", "F"}, {"G", "0047", "G"}, {"H", "0048", "H"}, - {"I", "0049", "I"}, {"J", "004A", "J"}, {"K", "004B", "K"}, {"L", "004C", "L"}, - {"M", "004D", "M"}, {"N", "004E", "N"}, {"O", "004F", "O"}, {"P", "0050", "P"}, - {"Q", "0051", "Q"}, {"R", "0052", "R"}, {"S", "0053", "S"}, {"T", "0054", "T"}, - {"U", "0055", "U"}, {"V", "0056", "V"}, {"W", "0057", "W"}, {"X", "0058", "X"}, - {"Y", "0059", "Y"}, {"Z", "005A", "Z"}, {"a", "0061", "a"}, {"b", "0062", "b"}, - {"c", "0063", "c"}, {"d", "0064", "d"}, {"e", "0065", "e"}, {"f", "0066", "f"}, - {"g", "0067", "g"}, {"h", "0068", "h"}, {"i", "0069", "i"}, {"j", "006A", "j"}, - {"k", "006B", "k"}, {"l", "006C", "l"}, {"m", "006D", "m"}, {"n", "006E", "n"}, - {"o", "006F", "o"}, {"p", "0070", "p"}, {"q", "0071", "q"}, {"r", "0072", "r"}, - {"s", "0073", "s"}, {"t", "0074", "t"}, {"u", "0075", "u"}, {"v", "0076", "v"}, - {"w", "0077", "w"}, {"x", "0078", "x"}, {"y", "0079", "y"}, {"z", "007A", "z"} } - -Greek = { {"Α", "0391", "Alpha"}, {"Β", "0392", "Beta"}, {"Γ", "0393", "Gamma"}, - {"Δ", "0394", "Delta"}, {"Ε", "0395", "Epsilon"}, {"Ζ", "0396", "Zeta"}, - {"Η", "0397", "Eta"}, {"Θ", "0398", "Theta"}, {"Ι", "0399", "Iota"}, - {"Κ", "039A", "Kappa"}, {"Λ", "039B", "Lambda"}, {"Μ", "039C", "Mu"}, - {"Ν", "039D", "Nu"}, {"Ξ", "039E", "Xi"}, {"Ο", "039F", "Omicron"}, - {"Π", "03A0", "Pi"}, {"Ρ", "03A1", "Rho"}, {"Σ", "03A3", "Sigma"}, - {"Τ", "03A4", "Tau"}, {"Υ", "03A5", "Upsilon"}, {"Φ", "03A6", "Phi"}, - {"Χ", "03A7", "Chi"}, {"Ψ", "03A8", "Psi"}, {"Ω", "03A9", "Omega"}, - {"α", "03B1", "alpha"}, {"β", "03B2", "beta"}, {"γ", "03B3", "gamma"}, - {"δ", "03B4", "delta"}, {"ε", "03B5", "varepsilon"}, {"ζ", "03B6", "zeta"}, - {"η", "03B7", "eta"}, {"θ", "03B8", "theta"}, {"ι", "03B9", "iota"}, - {"κ", "03BA", "kappa"}, {"λ", "03BB", "lambda"}, {"μ", "03BC", "mu"}, - {"ν", "03BD", "nu"}, {"ξ", "03BE", "xi"}, {"ο", "03BF", "omicron"}, - {"π", "03C0", "pi"}, {"ρ", "03C1", "rho"}, {"ς", "03C2", "varsigma"}, - {"σ", "03C3", "sigma"}, {"τ", "03C4", "tau"}, {"υ", "03C5", "upsilon"}, - {"φ", "03C6", "varphi"}, {"χ", "03C7", "chi"}, {"ψ", "03C8", "psi"}, - {"ω", "03C9", "omega"}, {"ϑ", "03D1", "vartheta"}, {"ϕ", "03D5", "phi"}, - {"ϖ", "03D6", "varpi"}, {"ϰ", "03F0", "varkappa"}, {"ϱ", "03F1", "varrho"}, - {"ϴ", "03F4", "varTheta"}, {"ϵ", "03F5", "epsilon"} } - -Digit = { {"0", "0030", "zero"}, {"1", "0031", "one"}, {"2", "0032", "two"}, - {"3", "0033", "three"}, {"4", "0034", "four"}, {"5", "0035", "five"}, - {"6", "0036", "six"}, {"7", "0037", "seven"}, {"8", "0038", "eight"}, - {"9", "0039", "nine"}} - -Partial = { {"∂", "2202", "partial"}, {"∇", "2207", "nabla"} } - -um_table = assert(kpse.find_file('unicode-math-table', tex)) -tmp_alpha_table = "unimath-plain-alphabet.temp" - -tmp_out = io.open(tmp_alpha_table, "w") - -for templine in io.lines(um_table) do - if string.match(templine, "\\[mB][bfitsu].*\\mathalpha") then - tmp_out:write(templine.."\n") - elseif string.match(templine, "\\m[bfitsu].*\\mathord") then - tmp_out:write(templine.."\n") - elseif string.match(templine, "\\Planckconst") then - tmp_out:write(templine:gsub("\\Planckconst", "\\mith ").."\n") - end -end -tmp_out:close() - -cs_head = { -- {"rm","\\mup","\\tenrm"}, -- this pair can be ignored - {"it","\\mit","\\tenit"}, - {"bf","\\mbf","\\tenbf"}, {"sf","\\msans","\\tensf"}, - {"tt","\\mtt","\\tentt"}, {"bfit","\\mbfit","\\tenbfit"}, - {"sfit","\\mitsans","\\tensfit"}, - {"sfbf","\\mbfsans","\\tensfbf"}, - {"sfbfit","\\mbfitsans","\\tensfbfit"}, - -- The tables below do not contain a text command as the 3rd item: - {"scr","\\mscr"}, {"bb","\\Bbb"}, {"frak","\\mfrak"}, - {"scrbf","\\mbfscr"}, {"frakbf","\\mbffrak"}, {"bbit","\\mitBbb"} } - -map_head = [===[pass(Unicode) - -LHSName "ascii_char" -RHSName "unicode_char" - -]===] - -function gen_symbol(file, font, alphabet) - for line in io.lines(file) do - for _, letter_pair in ipairs(alphabet) do - if string.match(line, font..letter_pair[3].."[^%a]") then - -- Format: \UnicodeMathSymbol{<slot>}{<cs>}{<alpha|ord>}{<description>}% - local char_slot = (string.match(line, "{(.-)}")):gsub("\"","") - if ("0"..letter_pair[2]) ~= char_slot then - out:write("U+"..letter_pair[2].." <> U+"..char_slot.."\n") - end - end - end - end -end - -for _, cs_pair in ipairs(cs_head) do - out = io.open("unimath-"..cs_pair[1]..".map", "w+") - out:write(map_head) - gen_symbol(tmp_alpha_table, cs_pair[2], Digit) - gen_symbol(tmp_alpha_table, cs_pair[2], Latin) - gen_symbol(tmp_alpha_table, cs_pair[2], Greek) - gen_symbol(tmp_alpha_table, cs_pair[2], Partial) - out:close() -end - -os.remove(tmp_alpha_table) - -batch_command = [===[teckit_compile unimath-it.map -o unimath-it.tec -teckit_compile unimath-bf.map -o unimath-bf.tec -teckit_compile unimath-sf.map -o unimath-sf.tec -teckit_compile unimath-tt.map -o unimath-tt.tec -teckit_compile unimath-bfit.map -o unimath-bfit.tec -teckit_compile unimath-sfit.map -o unimath-sfit.tec -teckit_compile unimath-sfbf.map -o unimath-sfbf.tec -teckit_compile unimath-sfbfit.map -o unimath-sfbfit.tec -teckit_compile unimath-scr.map -o unimath-scr.tec -teckit_compile unimath-bb.map -o unimath-bb.tec -teckit_compile unimath-frak.map -o unimath-frak.tec -teckit_compile unimath-scrbf.map -o unimath-scrbf.tec -teckit_compile unimath-frakbf.map -o unimath-frakbf.tec -teckit_compile unimath-bbit.map -o unimath-bbit.tec -]===]
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf Binary files differindex efebebee725..effe15929e3 100644 --- a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf +++ b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex index d8b207df796..db99f073b8f 100644 --- a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex +++ b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex @@ -6,10 +6,11 @@ %% * either version 1.3c of this license or any later * %% * version. * %% ****************************************************** -\def\mainfontname{erewhon} -\def\sansfontname{Fira Sans Book} -\def\monofontname{Noto Sans Mono} -\def\mathfontname{Erewhon Math} +\overfullrule0pt +\def\mainfontname{Latin Modern Roman} +\def\sansfontname{Latin Modern Sans} +\def\monofontname{Latin Modern Mono} +\def\mathfontname{Latin Modern Math} \def\textfontopt{mapping=tex-text,} \input unimath-plain-xetex @@ -112,15 +113,15 @@ \centerline{Zhang Tingxuan} \medskip -\centerline{2023/03/06\quad Version 0.2b} +\centerline{2024/10/08\quad Version 0.2c} \biggskip \begingroup\parskip0pt \centerline{\bf Abstract} \smallskip \leftskip=4pc\rightskip=4pc\parindent=1.5pc\relax -{\sf\umpx} package provides OpenType math font support in {\it plain \tex\/} -format. The {\sf\umpx} package needs \xetex.\par +The {\sf\umpx} package provides OpenType math font support in +{\it plain \tex\/} format. The {\sf\umpx} package needs \xetex.\par % TOC \bigskip @@ -342,4 +343,4 @@ like ``"+"'' and ``"="''. \closeout\tocout -\bye
\ No newline at end of file +\bye |