texlive[64936] trunk: luafindfont (4nov22)

commits+karl at tug.org commits+karl at tug.org
Fri Nov 4 21:00:59 CET 2022


Revision: 64936
          http://tug.org/svn/texlive?view=revision&revision=64936
Author:   karl
Date:     2022-11-04 21:00:59 +0100 (Fri, 04 Nov 2022)
Log Message:
-----------
luafindfont (4nov22)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua
    trunk/Master/texmf-dist/doc/man/man1/luafindfont.1
    trunk/Master/texmf-dist/doc/man/man1/luafindfont.man1.pdf
    trunk/Master/texmf-dist/doc/support/luafindfont/CHANGELOG
    trunk/Master/texmf-dist/doc/support/luafindfont/README.md
    trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf
    trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex
    trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/support/luafindfont/exa01.txt
    trunk/Master/texmf-dist/doc/support/luafindfont/exa02.txt
    trunk/Master/texmf-dist/doc/support/luafindfont/exa03.txt
    trunk/Master/texmf-dist/doc/support/luafindfont/exa04.txt
    trunk/Master/texmf-dist/doc/support/luafindfont/exa05.txt
    trunk/Master/texmf-dist/doc/support/luafindfont/exa06.txt

Modified: trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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_max_string = 90
 
 local otfinfo_arg = ""
+local mtxrun = 0
 local fontNo = 0
 
 local i = 1
@@ -66,10 +67,15 @@
       ,--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)
     <font> (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 @@
       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 @@
 
 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 @@
 
 --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 @@
   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 @@
     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"]))
 
 

Modified: trunk/Master/texmf-dist/doc/man/man1/luafindfont.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/luafindfont.1	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Master/texmf-dist/doc/man/man1/luafindfont.1	2022-11-04 20:00:59 UTC (rev 64936)
@@ -1,6 +1,6 @@
 .\" Manpage for luafindfont.
 .\" Contact hvoss at 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 @@
 .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 @@
 .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  

Modified: trunk/Master/texmf-dist/doc/man/man1/luafindfont.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/luafindfont/CHANGELOG
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/CHANGELOG	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/CHANGELOG	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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

Modified: trunk/Master/texmf-dist/doc/support/luafindfont/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/README.md	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/README.md	2022-11-04 20:00:59 UTC (rev 64936)
@@ -12,12 +12,15 @@
 
 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
 -    <font> (string)  
 
 

Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa01.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa01.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa01.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa01.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa02.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa02.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa02.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa02.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa03.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa03.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa03.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa03.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa04.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa04.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa04.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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 |


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa04.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa05.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa05.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa05.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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/


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa05.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/luafindfont/exa06.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/exa06.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/exa06.txt	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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/


Property changes on: trunk/Master/texmf-dist/doc/support/luafindfont/exa06.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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 @@
 \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 @@
 \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 @@
 \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 

Modified: trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua	2022-11-04 20:00:03 UTC (rev 64935)
+++ trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua	2022-11-04 20:00:59 UTC (rev 64936)
@@ -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_max_string = 90
 
 local otfinfo_arg = ""
+local mtxrun = 0
 local fontNo = 0
 
 local i = 1
@@ -66,10 +67,15 @@
       ,--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)
     <font> (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 @@
       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 @@
 
 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 @@
 
 --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 @@
   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 @@
     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"]))
 
 



More information about the tex-live-commits mailing list.