From be4efcdb2f47821698dc8dbde89722b4f0c2e4b0 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 4 Nov 2022 03:01:54 +0000 Subject: CTAN sync 202211040301 --- support/TeX4ht/source/ChangeLog | 10 +++++-- support/TeX4ht/source/tex4ht-mathml.tex | 4 +-- support/luafindfont/CHANGELOG | 3 ++ support/luafindfont/README.md | 9 ++++-- support/luafindfont/doc/Examples/exa01.txt | 11 +++++++ support/luafindfont/doc/Examples/exa02.txt | 16 ++++++++++ support/luafindfont/doc/Examples/exa03.txt | 34 +++++++++++++++++++++ support/luafindfont/doc/Examples/exa04.txt | 14 +++++++++ support/luafindfont/doc/Examples/exa05.txt | 26 ++++++++++++++++ support/luafindfont/doc/Examples/exa06.txt | 19 ++++++++++++ support/luafindfont/doc/luafindfont-doc.pdf | Bin 92140 -> 98556 bytes support/luafindfont/doc/luafindfont-doc.tex | 32 ++++++++++++++++---- support/luafindfont/man/luafindfont.1 | 7 ++++- support/luafindfont/scripts/luafindfont.lua | 45 +++++++++++++++++++++++----- 14 files changed, 209 insertions(+), 21 deletions(-) create mode 100644 support/luafindfont/doc/Examples/exa01.txt create mode 100644 support/luafindfont/doc/Examples/exa02.txt create mode 100644 support/luafindfont/doc/Examples/exa03.txt create mode 100644 support/luafindfont/doc/Examples/exa04.txt create mode 100644 support/luafindfont/doc/Examples/exa05.txt create mode 100644 support/luafindfont/doc/Examples/exa06.txt (limited to 'support') diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 2c88db2ad7..f65184fe92 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,10 +1,16 @@ +2022-11-02 Michal Hoftich + + * tex4ht-mathml.tex (mathml.4ht): added extra group for \mathcal, to + prevent errors in subscripts etc. + https://github.com/michal-h21/make4ht/issues/95 + 2022-11-01 Michal Hoftich - * tex4ht-4ht.tex (mathml.4ht): don't add elements for math + * tex4ht-mathml.tex (mathml.4ht): don't add elements for math array vspace, as it can lead to wrong size of the table. https://github.com/michal-h21/make4ht/issues/91 - * tex4ht-mathml.tex(mathml.4ht): prevent use of Unicode characters + * tex4ht-mathml.tex (mathml.4ht): prevent use of Unicode characters inside \mathcal. https://github.com/michal-h21/make4ht/issues/95 diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 4326b08ecc..2b498005a7 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1233 2022-11-01 13:36:13Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1234 2022-11-02 22:09:27Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -4493,7 +4493,7 @@ The Script style is required using the mathvariant attribute, so it should be rendered correctly. \<<< -\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}} +\def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}\egroup} \HLet\mathcal\:tempa >>> diff --git a/support/luafindfont/CHANGELOG b/support/luafindfont/CHANGELOG index 2dde2ffbc7..9c2bf6debf 100644 --- a/support/luafindfont/CHANGELOG +++ b/support/luafindfont/CHANGELOG @@ -1,3 +1,6 @@ +0.11 2022-11-03 - added option -V (--version) and -I (--Info), + -I uses mtxrun for a long list of features, + corresponding languages and font names 0.10 2022-09-02 - fix for Windows and path setting 0.09 2022-05-07 - load first a luc.gz database, if present 0.08 2022-05-05 - added --no-symbolic-names as a synonym diff --git a/support/luafindfont/README.md b/support/luafindfont/README.md index 6298fc3f95..90229178e4 100644 --- a/support/luafindfont/README.md +++ b/support/luafindfont/README.md @@ -12,12 +12,15 @@ luafindfont [options] parameter handling - -h,--help +- -n,--nosymbolicnames +- ,--no-symbolic-names - -o,--otfinfo (default 0) - -i,--info (default 0) -- -x,--xetex -- -v,--verbose +- -I,--Info (default 0) +- -x, --xetex +- -v, --verbose +- -V, --version - -m,--max_string (default 90) -- -n,--nosymbolicnames - (string) diff --git a/support/luafindfont/doc/Examples/exa01.txt b/support/luafindfont/doc/Examples/exa01.txt new file mode 100644 index 0000000000..e530f26082 --- /dev/null +++ b/support/luafindfont/doc/Examples/exa01.txt @@ -0,0 +1,11 @@ +We are using Lua 5.3 +Check for file /usr/local/texlive/2021/texmf-var/luatex-cache/generic/names/luaotfload-names + 1. Segoe UI Symbol.ttf segoeuisymbol /Users/voss/Library/Fonts/Segoe/Segoe UI Symbol.ttf + 2. Segoe_Print.ttf segoeprint /Users/voss/Library/Fonts/Segoe/Segoe_Print.ttf + 3. Segoe_Print_Bold.ttf segoeprint /Users/voss/Library/Fonts/Segoe/Segoe_Print_Bold.ttf + 4. Segoe_Script.ttf segoescript /Users/voss/Library/Fonts/Segoe/Segoe_Script.ttf + 5. Segoe_Script_Bold.ttf segoescript /Users/voss/Library/Fonts/Segoe/Segoe_Script_Bold.ttf + 6. Segoe_UI.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI.ttf + 7. Segoe_UI_Bold.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Bold.ttf + 8. Segoe_UI_Bold_Italic.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Bold_Italic.ttf + 9. Segoe_UI_Italic.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Italic.ttf diff --git a/support/luafindfont/doc/Examples/exa02.txt b/support/luafindfont/doc/Examples/exa02.txt new file mode 100644 index 0000000000..8c113341de --- /dev/null +++ b/support/luafindfont/doc/Examples/exa02.txt @@ -0,0 +1,16 @@ +We are using Lua 5.3 +Check for file /usr/local/texlive/2021/texmf-var/luatex-cache/generic/names/luaotfload-names + 1. LibertinusKeyboard-Regular.otf libertinuskeyboard /usr/local/texlive/2021/te...Regular.otf + 2. LibertinusMath-Regular.otf libertinusmath /usr/local/texlive/2021/te...Regular.otf + 3. LibertinusMono-Regular.otf libertinusmono /usr/local/texlive/2021/te...Regular.otf + 4. LibertinusSans-Bold.otf libertinussans /usr/local/texlive/2021/te...ns-Bold.otf + 5. LibertinusSans-Italic.otf libertinussans /usr/local/texlive/2021/te...-Italic.otf + 6. LibertinusSans-Regular.otf libertinussans /usr/local/texlive/2021/te...Regular.otf + 7. LibertinusSerif-Bold.otf libertinusserif /usr/local/texlive/2021/te...if-Bold.otf + 8. LibertinusSerif-BoldItalic.otf libertinusserif /usr/local/texlive/2021/te...dItalic.otf + 9. LibertinusSerif-Italic.otf libertinusserif /usr/local/texlive/2021/te...-Italic.otf +10. LibertinusSerif-Regular.otf libertinusserif /usr/local/texlive/2021/te...Regular.otf +11. LibertinusSerif-Semibold.otf libertinusserif /usr/local/texlive/2021/te...emibold.otf +12. LibertinusSerif-SemiboldItalic.otf libertinusserif /usr/local/texlive/2021/te...dItalic.otf +13. LibertinusSerifDisplay-Regular.otf libertinusserifdisplay /usr/local/texlive/2021/te...Regular.otf +14. LibertinusSerifInitials-Regular.otf libertinusserifinitials /usr/local/texlive/2021/te...Regular.otf diff --git a/support/luafindfont/doc/Examples/exa03.txt b/support/luafindfont/doc/Examples/exa03.txt new file mode 100644 index 0000000000..2bb02df1a6 --- /dev/null +++ b/support/luafindfont/doc/Examples/exa03.txt @@ -0,0 +1,34 @@ +We are using Lua 5.3 +Check for file /usr/local/texlive/2021/texmf-var/luatex-cache/generic/names/luaotfload-names + 1. Arial Black.ttf arialblack /System/Library/Fonts/Supplemental/Arial Black.ttf + 2. Arial Bold Italic.ttf arial /System/Library/Fonts/Supplemental/Arial Bold Italic.ttf + 3. Arial Bold.ttf arial /System/Library/Fonts/Supplemental/Arial Bold.ttf + 4. Arial Italic.ttf arial /System/Library/Fonts/Supplemental/Arial Italic.ttf + 5. Arial Narrow Bold Italic.ttf arialnarrow /System/Library/Fonts/Supplemental/Arial Narrow Bold Italic.ttf + 6. Arial Narrow Bold.ttf arialnarrow /System/Library/Fonts/Supplemental/Arial Narrow Bold.ttf + 7. Arial Narrow Italic.ttf arialnarrow /System/Library/Fonts/Supplemental/Arial Narrow Italic.ttf + 8. Arial Narrow.ttf arialnarrow /System/Library/Fonts/Supplemental/Arial Narrow.ttf + 9. Arial Rounded Bold.ttf arialroundedmtbold /System/Library/Fonts/Supplemental/Arial Rounded Bold.ttf +10. Arial Unicode.ttf arialunicodems /Library/Fonts/Arial Unicode.ttf +11. Arial Unicode.ttf arialunicodems /System/Library/Fonts/Supplemental/Arial Unicode.ttf +12. Arial.ttf arial /System/Library/Fonts/Supplemental/Arial.ttf +13. Arial.ttf arial /Users/voss/Library/Fonts/Arial/Arial.ttf +14. ArialHB.ttc arialhebrew /System/Library/Fonts/ArialHB.ttc +15. ArialHB.ttc arialhebrewdeskinterface /System/Library/Fonts/ArialHB.ttc +16. ArialHB.ttc arialhebrewscholar /System/Library/Fonts/ArialHB.ttc +17. ArialHB.ttc arialhebrew /System/Library/Fonts/ArialHB.ttc + +Run otfinfo:6 +Family: Arial Narrow +Subfamily: Bold +Full name: Arial Narrow Bold +PostScript name: ArialNarrow-Bold +Version: Version 2.38.1x +Unique ID: Arial Narrow Bold : 2007 +Description: Monotype Drawing Office 1982. A contemporary sans serif design, Arial contains more humanist characteristics than many of its predecessors and as such is more in tune with the mood of the last decades of the twentieth century. The overall treatment of curves is softer and fuller than in most industrial-style sans serif faces. Terminal strokes are cut on the diagonal which helps to give the face a less mechanical appearance. Arial is an extremely versatile family of typefaces which can be used with equal success for text setting in reports, presentations, magazines etc, and for display use in newspapers, advertising and promotions. +Designer: Robin Nicholas, Patricia Saunders +Manufacturer: The Monotype Corporation +Trademark: Arial is a trademark of The Monotype Corporation in the United States and/or other countries. +Copyright: © 2007 The Monotype Corporation. All Rights Reserved. +License Description: You may use this font to display and print content as permitted by the license terms for the product in which this font is included. You may only (i) embed this font in content as permitted by the embedding restrictions included in this font; and (ii) temporarily download this font to a printer or other output device to help print content. +Vendor ID: TMC \ No newline at end of file diff --git a/support/luafindfont/doc/Examples/exa04.txt b/support/luafindfont/doc/Examples/exa04.txt new file mode 100644 index 0000000000..5de45e30c6 --- /dev/null +++ b/support/luafindfont/doc/Examples/exa04.txt @@ -0,0 +1,14 @@ +We are using Lua 5.3 +Check for file /usr/local/texlive/2021/texmf-var/luatex-cache/generic/names/luaotfload-names + 1. Segoe UI Symbol.ttf segoeuisymbol /Users/voss/Library/Fonts/Segoe/Segoe UI Symbol.ttf + 2. Segoe_Print.ttf segoeprint /Users/voss/Library/Fonts/Segoe/Segoe_Print.ttf + 3. Segoe_Print_Bold.ttf segoeprint /Users/voss/Library/Fonts/Segoe/Segoe_Print_Bold.ttf + 4. Segoe_Script.ttf segoescript /Users/voss/Library/Fonts/Segoe/Segoe_Script.ttf + 5. Segoe_Script_Bold.ttf segoescript /Users/voss/Library/Fonts/Segoe/Segoe_Script_Bold.ttf + 6. Segoe_UI.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI.ttf + 7. Segoe_UI_Bold.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Bold.ttf + 8. Segoe_UI_Bold_Italic.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Bold_Italic.ttf + 9. Segoe_UI_Italic.ttf segoeui /Users/voss/Library/Fonts/Segoe/Segoe_UI_Italic.ttf + +Font: segoeui +Fonttype ttf(system) --> | Regular | Bold | Italic | BoldItalic | diff --git a/support/luafindfont/doc/Examples/exa05.txt b/support/luafindfont/doc/Examples/exa05.txt new file mode 100644 index 0000000000..d2353f923d --- /dev/null +++ b/support/luafindfont/doc/Examples/exa05.txt @@ -0,0 +1,26 @@ +Looking for font "*" + Nr. Filename Path + 1. Aboensis-Regular.otf /usr/local/texlive/texmf-dist/fonts/opentype/public/aboensis/ + 2. academicons.ttf /usr/local/texlive/texmf-dist/fonts/truetype/public/academicons/ + 3. Academy Engraved LET Fonts.ttf /System/Library/Fonts/Supplemental/ + 4. ACaslonPro-Bold.otf /Users/voss/Library/Fonts/Caslon/ + 5. ACaslonPro-BoldItalic.otf /Users/voss/Library/Fonts/Caslon/ + 6. ACaslonPro-Italic.otf /Users/voss/Library/Fonts/Caslon/ + 7. ACaslonPro-Regular.otf /Users/voss/Library/Fonts/Caslon/ + 8. ACaslonPro-Semibold.otf /Users/voss/Library/Fonts/Caslon/ + 9. ACaslonPro-SemiboldItalic.otf /Users/voss/Library/Fonts/Caslon/ + 10. Acathist-Regular.otf /usr/local/texlive/texmf-dist/fonts/opentype/public/fonts-churchslavonic/ + 11. AccanthisADFStdNo3-Bold.otf /usr/local/texlive/texmf-dist/fonts/opentype/arkandis/accanthis/ + 12. AccanthisADFStdNo3-BoldItalic.otf /usr/local/texlive/texmf-dist/fonts/opentype/arkandis/accanthis/ + 13. AccanthisADFStdNo3-Italic.otf /usr/local/texlive/texmf-dist/fonts/opentype/arkandis/accanthis/ + 14. AccanthisADFStdNo3-Regular.otf /usr/local/texlive/texmf-dist/fonts/opentype/arkandis/accanthis/ + 15. ACE.ttc /Users/voss/Library/Fonts/AppleSymbols/ + 16. ACE.ttc /Users/voss/Library/Fonts/AppleSymbols/ + 17. AdineKirnberg-Script.otf /Users/voss/Library/Fonts/AdineScript/ + 18. AdobeArabic-Bold.otf /Users/voss/Library/Fonts/Adobe/ + 19. AdobeArabic-BoldItalic.otf /Users/voss/Library/Fonts/Adobe/ +[...] [...] [...] +6847. 儷宋_Pro.ttf /Users/voss/Library/Fonts/KozukaPro/ +6848. 华文仿宋.ttf /Users/voss/Library/Fonts/KozukaPro/ +6849. 华文宋体.ttf /Users/voss/Library/Fonts/KozukaPro/ +6850. 华文楷体.ttf /Users/voss/Library/Fonts/KozukaPro/ diff --git a/support/luafindfont/doc/Examples/exa06.txt b/support/luafindfont/doc/Examples/exa06.txt new file mode 100644 index 0000000000..c076ffffd3 --- /dev/null +++ b/support/luafindfont/doc/Examples/exa06.txt @@ -0,0 +1,19 @@ +We are using Lua 5.3 +Looking for font "minion" +Check for file /usr/local/texlive/2021/texmf-var/luatex-cache/generic/names/luaotfload-names + Nr. Fontname Path + 1. MinionMath-Bold.otf /Users/voss/Library/Fonts/MinionMath/ + 2. MinionMath-Regular.otf /Users/voss/Library/Fonts/MinionMath/ + 3. MinionPro-Bold.otf /Users/voss/Library/Fonts/MinionPro/ + 4. MinionPro-BoldCn.otf /Users/voss/Library/Fonts/MinionPro/ + 5. MinionPro-BoldCnIt.otf /Users/voss/Library/Fonts/MinionPro/ + 6. MinionPro-BoldIt.otf /Users/voss/Library/Fonts/MinionPro/ + 7. MinionPro-Capt.otf /Users/voss/Library/Fonts/MinionPro/ + 8. MinionPro-Disp.otf /Users/voss/Library/Fonts/MinionPro/ + 9. MinionPro-It.otf /Users/voss/Library/Fonts/MinionPro/ + 10. MinionPro-Medium.otf /Users/voss/Library/Fonts/MinionPro/ + 11. MinionPro-MediumIt.otf /Users/voss/Library/Fonts/MinionPro/ + 12. MinionPro-Regular.otf /Users/voss/Library/Fonts/MinionPro/ + 13. MinionPro-Semibold.otf /Users/voss/Library/Fonts/MinionPro/ + 14. MinionPro-SemiboldIt.otf /Users/voss/Library/Fonts/MinionPro/ + 15. MinionPro-Subh.otf /Users/voss/Library/Fonts/MinionPro/ diff --git a/support/luafindfont/doc/luafindfont-doc.pdf b/support/luafindfont/doc/luafindfont-doc.pdf index f63d3e5ebc..80155cf2bd 100644 Binary files a/support/luafindfont/doc/luafindfont-doc.pdf and b/support/luafindfont/doc/luafindfont-doc.pdf differ diff --git a/support/luafindfont/doc/luafindfont-doc.tex b/support/luafindfont/doc/luafindfont-doc.tex index 8222523152..259af15f03 100644 --- a/support/luafindfont/doc/luafindfont-doc.tex +++ b/support/luafindfont/doc/luafindfont-doc.tex @@ -81,7 +81,7 @@ \def\setVersion#1{\setVVersion#1!!} \def\setVVersion#1=#2!!{\def\luafindfontVersion{#2}} -\setVersion{version = 0.10}% can be automatically changed by perl +\setVersion{version = 0.11}% can be automatically changed by perl \setkeys{hv}{cleanup={},force} @@ -148,11 +148,14 @@ long form which, of course, can be mixed: \begin{Verbatim}[frame=lines,label=Parameter] parameter handling -h,--help + -n,--nosymbolicnames + ,--no-symbolic-names -o,--otfinfo (default 0) -i,--info (default 0) - -x,--xetex - -n,--no-symbolic-names - -v... Verbosity output + -I,--Info (default 0) + -x, --xetex + -v, --verbose + -V, --version -m,--max_string (default 90) <(partial) fontname> \end{Verbatim} @@ -187,6 +190,12 @@ are the same. It is possible to combine two search strings which will act like a \texttt{"Myriad \& bold"} (in quotes) will list all files which have \texttt{myriad} \emph{and} \texttt{bold} in its name. + +\subsection{Option \texttt{-V}} +Prints the version number and exits. + + + \subsection{Option \texttt{-o}}\label{otfinfo} This needs an installed program \Lprog{otfinfo}, which should be the default for all \TeX\ distributions. This program lists some useful informations of a given fontnumber. The fontnumber can be combined by an @@ -232,11 +241,24 @@ luafindfont -i 4 "myriad & semibold" \end{externalDocument} - For the font number 4 there also exists a Regular, Bold, and a Italic font. The font no 4 itself is a BoldItalic version. +\subsection{Option \texttt{-I}} +This similiar to option \texttt{-i}, but uses \texttt{mtxrun} to get a long list of all informations +of the font, including features and corresponding languages. The list can be very long! + +\begin{externalDocument}[redirect,includegraphic=false,force,code,docType=sh,ext=sh,compiler=sh]{exa} +#StartVisibleMain +luafindfont -I 4 "myriad & semibold" +#StopVisibleMain +\end{externalDocument} + + + + + \subsection{Option \texttt{-x}}\label{xetex} \XeTeX\ will find OpenType and TrueType fonts only, if they are part of the system fonts or diff --git a/support/luafindfont/man/luafindfont.1 b/support/luafindfont/man/luafindfont.1 index 26f976c403..fb944166f7 100644 --- a/support/luafindfont/man/luafindfont.1 +++ b/support/luafindfont/man/luafindfont.1 @@ -1,6 +1,6 @@ .\" Manpage for luafindfont. .\" Contact hvoss@tug.org to correct errors or typos. -.TH luafindfont 1 "02 sep 2022" "0.10" "luafindfont man page" +.TH luafindfont 1 "03 nov 2022" "0.11" "luafindfont man page" .SH NAME luafindfont \- retrieve font informations of all installed system and TeX fonts. @@ -12,6 +12,8 @@ installed by the system and by the TeX distribution .SH OPTIONS .IP -h,--help obvious ... :-) +.IP -V,--version +obvious ... :-) .IP -o,--otfinfo (default 0) Use the program otfinfo for the font with the given number. The number can be followed by an optional argument for otfinfo, e.g. -o 2f, list @@ -20,6 +22,9 @@ called with -i .IP -i,--info (default 0) List the given fontstyles (regular, bold, italic, bolditalic) for the font with the given number +.IP -I,--Info (default 0) +Siliar to i but uses the program mtxrun to get ll informations +including features and corresponding languages. List can be very long. .IP -v,--verbose Verbosity level Give more informations, by now only -v works .IP -x,--xetex diff --git a/support/luafindfont/scripts/luafindfont.lua b/support/luafindfont/scripts/luafindfont.lua index f1d513a508..bf1804db02 100755 --- a/support/luafindfont/scripts/luafindfont.lua +++ b/support/luafindfont/scripts/luafindfont.lua @@ -7,7 +7,7 @@ -- AUTHOR: Herbert Voß (C) 2022-09-02 ----------------------------------------------------------------------- luafindfont = luafindfont or { } - local version = 0.10 + local version = 0.11 luafindfont.version = version --[[ @@ -50,6 +50,7 @@ local args_xetex = 0 local args_max_string = 90 local otfinfo_arg = "" +local mtxrun = 0 local fontNo = 0 local i = 1 @@ -66,10 +67,15 @@ while i <= #arg do ,--no-symbolic-names -o,--otfinfo (default 0) -i,--info (default 0) + -I,--Info (default 0) -x, --xetex -v, --verbose + -V, --version -m,--max_string (default 90) (string) ]]) + elseif arg[i] == "-V" or arg[i] == "--version" then + print("version "..version) + os.exit() elseif arg[i] == "-v" or arg[i] == "--verbose" then args_verbose = 1 elseif (arg[i] == "-n") or (arg[i] == "--nosymbolicnames") or (arg[i] == "--no-symbolic-names") then @@ -98,6 +104,15 @@ while i <= #arg do print("Option -i needs a following fontnumber!") args_info = 0 end + elseif arg[i] == "-I" or arg[i] == "--Info" then + mtxrun = 1 + local I_arg = arg[i+1] + fontNo = tonumber(I_arg) + if not fontNo then + print("Option -I needs a following fontnumber!") + fontNo = 0 + end + i = i + 1 elseif arg[i] == "-m" or arg[i] == "--max_string" then local string_len = tonumber(arg[i+1]) if string_len then @@ -121,12 +136,12 @@ end if vlevel > 0 then print("Parameter:") - print("args_verbose = "..args_verbose) - print("args_nosymbolicnames = "..tostring(args_nosymbolicnames)) - print("args_xetex = "..args_xetex) - print("otfinfo_arg = "..otfinfo_arg) - print("fontNo = "..fontNo) - print("args_max_string = "..args_max_string) + print(" args_verbose = "..args_verbose) + print(" args_nosymbolicnames = "..tostring(args_nosymbolicnames)) + print(" args_xetex = "..args_xetex) + print(" otfinfo_arg = "..otfinfo_arg) + print(" fontNo = "..fontNo) + print(" args_max_string = "..args_max_string) end if not args_font then @@ -136,6 +151,7 @@ end --local otfinfo = args_otfinfo local info = args_info +local Info = args_Info local noSymbolicNames = args_nosymbolicnames local maxStrLength = args_max_string local font_str = args_font:lower():gsub("%s+", ""):split("&") @@ -392,7 +408,7 @@ for i, v in ipairs(fontList) do end end -if fontNo > 0 then +if fontNo > 0 and mtxrun == 0 then print() print("Running otfinfo -"..otfinfo_arg.." on font no."..fontNo) local font = fontList[fontNo]["fullpath"] @@ -433,6 +449,19 @@ if info > 0 then end end end + +if mtxrun > 0 then + print() + print("Running mtxrun on font no."..fontNo) +-- local font = fontList[fontNo]["fullpath"] + local font = fontList[fontNo]["basename"] + print("mtxrun --script fonts --list --info --file \""..font.."\"") + local exrun = io.popen("mtxrun --script fonts --list --info --file \""..font.."\"", 'r') -- ".." font may have spaces + local output = exrun:read('*all') + print(output) + exrun:close() +end + --print(require 'xindex-pretty'.dump(fontData["families"]["system"]["otf"])) --["families"]["system"]["otf"])) -- cgit v1.2.3