texlive[64270] trunk: luafindfont (2sep22)
commits+karl at tug.org
commits+karl at tug.org
Fri Sep 2 21:48:04 CEST 2022
Revision: 64270
http://tug.org/svn/texlive?view=revision&revision=64270
Author: karl
Date: 2022-09-02 21:48:04 +0200 (Fri, 02 Sep 2022)
Log Message:
-----------
luafindfont (2sep22)
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/luafindfont-doc.pdf
trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex
trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua
Modified: trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua 2022-09-02 19:47:34 UTC (rev 64269)
+++ trunk/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua 2022-09-02 19:48:04 UTC (rev 64270)
@@ -4,10 +4,10 @@
-- FILE: luafindfont.lua
-- DESCRIPTION: search for fonts in the database
-- REQUIREMENTS: luatex v.0.80 or later; packages lualibs, xindex-lapp
--- AUTHOR: Herbert Voß (C) 2022-05-05
+-- AUTHOR: Herbert Voß (C) 2022-09-02
-----------------------------------------------------------------------
luafindfont = luafindfont or { }
- local version = 0.09
+ local version = 0.10
luafindfont.version = version
--[[
@@ -146,11 +146,10 @@
print("We are using "..luaVersion)
if font_str[2] ~= "" then
print('Looking for font \"'..font_str[1]..' & '..font_str[2]..'\"')
+ else
+ print('Looking for font \"'..font_str[1]..'\"')
end
end
-if font_str[1] == "*" or vlevel > 0 then
- print('Looking for font \"'..font_str[1]..'\"')
-end
function getFileParts(fullpath,part)
local path, file, ext = string.match(fullpath, "(.-)([^/]-([^%.]+))$")
@@ -172,17 +171,24 @@
print("No cache path found ... ")
return ""
end
- if os.type == "windows" then
+ local windows = (os.type == "windows")
+ if windows then logprint ("System: Windows")
+ else logprint ("System: macOS or Linux")
+ end
+ if windows then
paths = string.split(cachepaths,";")
else
paths = string.split(cachepaths,":")
end
- logprint ("Pathes: "..paths[1]..", "..paths[2])
+ logprint ("Paths: [1]"..paths[1])
+ if #paths > 1 then
+ logprint(" [2]"..paths[2])
+ end
local file = paths[1].."/luatex-cache/generic/names"
logprint("try path: "..file)
local f,err = io.open (file.."/test.tmp", "w")
if not f and #paths > 1 then
- logprint("first path has no file, I'll try the second one ...")
+ logprint("first path has no file, I'll try the second one, if exists ...")
file = paths[2].."/luatex-cache/generic/names"
logprint("try path: "..file)
f,err = io.open (file.."/test.tmp", "w")
Modified: trunk/Master/texmf-dist/doc/man/man1/luafindfont.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/luafindfont.1 2022-09-02 19:47:34 UTC (rev 64269)
+++ trunk/Master/texmf-dist/doc/man/man1/luafindfont.1 2022-09-02 19:48:04 UTC (rev 64270)
@@ -1,6 +1,6 @@
.\" Manpage for luafindfont.
.\" Contact hvoss at tug.org to correct errors or typos.
-.TH luafindfont 1 "07 may 2022" "0.09" "luafindfont man page"
+.TH luafindfont 1 "02 sep 2022" "0.10" "luafindfont man page"
.SH NAME
luafindfont
\- retrieve font informations of all installed system and TeX fonts.
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-09-02 19:47:34 UTC (rev 64269)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/CHANGELOG 2022-09-02 19:48:04 UTC (rev 64270)
@@ -1,3 +1,4 @@
+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
- edited some output messages
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-09-02 19:47:34 UTC (rev 64269)
+++ trunk/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.tex 2022-09-02 19:48:04 UTC (rev 64270)
@@ -1,4 +1,4 @@
- %% $Id: luafindfont-doc.tex 545 2022-05-08 14:21:52Z herbert $
+ %% $Id: luafindfont-doc.tex 599 2022-09-02 09:48:32Z herbert $
%
\listfiles\setcounter{errorcontextlines}{100}
\documentclass[paper=a4,fontsize=11pt,DIV=14,parskip=half-,
@@ -81,7 +81,7 @@
\def\setVersion#1{\setVVersion#1!!}
\def\setVVersion#1=#2!!{\def\luafindfontVersion{#2}}
-\setVersion{version = 0.09}% can be automatically changed by perl
+\setVersion{version = 0.10}% can be automatically changed by perl
\setkeys{hv}{cleanup={},force}
@@ -98,6 +98,7 @@
Thanks to: \\
Gerhard Bachmaier;
Karl Berry;
+{\setmainfont[Scale=MatchUppercase]{NotoSerifGeorgian-Medium.ttf} მამუკა ჯიბლაძე} (Mamuka Jibladze);
Rolf Niepraschk;
\clearpage
Modified: trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua 2022-09-02 19:47:34 UTC (rev 64269)
+++ trunk/Master/texmf-dist/scripts/luafindfont/luafindfont.lua 2022-09-02 19:48:04 UTC (rev 64270)
@@ -4,10 +4,10 @@
-- FILE: luafindfont.lua
-- DESCRIPTION: search for fonts in the database
-- REQUIREMENTS: luatex v.0.80 or later; packages lualibs, xindex-lapp
--- AUTHOR: Herbert Voß (C) 2022-05-05
+-- AUTHOR: Herbert Voß (C) 2022-09-02
-----------------------------------------------------------------------
luafindfont = luafindfont or { }
- local version = 0.09
+ local version = 0.10
luafindfont.version = version
--[[
@@ -146,11 +146,10 @@
print("We are using "..luaVersion)
if font_str[2] ~= "" then
print('Looking for font \"'..font_str[1]..' & '..font_str[2]..'\"')
+ else
+ print('Looking for font \"'..font_str[1]..'\"')
end
end
-if font_str[1] == "*" or vlevel > 0 then
- print('Looking for font \"'..font_str[1]..'\"')
-end
function getFileParts(fullpath,part)
local path, file, ext = string.match(fullpath, "(.-)([^/]-([^%.]+))$")
@@ -172,17 +171,24 @@
print("No cache path found ... ")
return ""
end
- if os.type == "windows" then
+ local windows = (os.type == "windows")
+ if windows then logprint ("System: Windows")
+ else logprint ("System: macOS or Linux")
+ end
+ if windows then
paths = string.split(cachepaths,";")
else
paths = string.split(cachepaths,":")
end
- logprint ("Pathes: "..paths[1]..", "..paths[2])
+ logprint ("Paths: [1]"..paths[1])
+ if #paths > 1 then
+ logprint(" [2]"..paths[2])
+ end
local file = paths[1].."/luatex-cache/generic/names"
logprint("try path: "..file)
local f,err = io.open (file.."/test.tmp", "w")
if not f and #paths > 1 then
- logprint("first path has no file, I'll try the second one ...")
+ logprint("first path has no file, I'll try the second one, if exists ...")
file = paths[2].."/luatex-cache/generic/names"
logprint("try path: "..file)
f,err = io.open (file.."/test.tmp", "w")
More information about the tex-live-commits
mailing list.