diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-09 03:00:53 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-09 03:00:53 +0000 |
commit | 8363587176bd1746ab2d65ee183b196e6d3458cf (patch) | |
tree | 64a89e6416d2b23d149b3dd918af467ae0b7441a /support/luafindfont/scripts | |
parent | 98810f6d7d064e61186d0ce674c4ee9de47a1f55 (diff) |
CTAN sync 202202090300
Diffstat (limited to 'support/luafindfont/scripts')
-rwxr-xr-x | support/luafindfont/scripts/luafindfont.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/support/luafindfont/scripts/luafindfont.lua b/support/luafindfont/scripts/luafindfont.lua index fc7a6b6577..2008194bb7 100755 --- a/support/luafindfont/scripts/luafindfont.lua +++ b/support/luafindfont/scripts/luafindfont.lua @@ -1,5 +1,4 @@ #!/usr/bin/env texlua --- % $Id: luafindfont.lua 330 2021-11-28 13:47:56Z herbert $ ----------------------------------------------------------------------- -- FILE: luafindfont.lua @@ -8,7 +7,7 @@ -- AUTHOR: Herbert Voß (C) 2021-11-27 ----------------------------------------------------------------------- luafindfont = luafindfont or { } - local version = 0.05 + local version = 0.06 luafindfont.version = version --[[ @@ -55,7 +54,7 @@ local i = 1 while i <= #arg do if arg[i] == "-h" or arg[i] == "--help" then print("Version "..version..", Copyright 2021 by Herbert Voß") - print([[Syntax: luafintfont [options] <font> + print([[Syntax: luafindfont [options] <font> By default the Lua program 'luafindfont' creates a list of the fonts which have in its names the given string. @@ -123,7 +122,7 @@ if #font_str == 1 then font_str[2] = "" end local luaVersion = _VERSION print("We are using "..luaVersion) -if #font_str > 1 then +if font_str[2] ~= "" then print('Looking for font \"'..font_str[1]..' & '..font_str[2]..'\"') else print('Looking for font \"'..font_str[1]..'\"') |