Hi, return is OK with: mtxrun --script font --list --spec --filter="fontname=ibm*" but removing the m from the pattern mtxrun --script font --list --spec --filter="fontname=ib*" I get : lua error : function call: ...0-app_context-linux-64/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to 'format' (number expected, got string) mtxrun --version mtxrun | ConTeXt TDS Runner Tool 1.32 mtxrun | source path
while also on linux platform: mtxrun --script font --list --spec --filter="fontname=ibm*" mtxrun --script font --list --spec --filter="fontname=ple*" give correct result (as in listing the available installed ibmplex fonts) mtxrun --script font --list --spec --filter="fontname=*" mtxrun --script font --list --spec --filter="fontname=p*" mtxrun --script font --list --spec --filter="fontname=pl*" lua error : function call: /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to 'format' (number expected, got string) apparently you need at least three characters in the the filter template. $ mtxrun --script font --list --spec --filter="fontname=ple" table: 0x3bc80550ac0 table: 0x3bc80550b00 [01:32] vm @ vmz: ~ $ mtxrun --script font --list --spec --filter="fontname=ibm" table: 0x51012550ac0 table: 0x51012550b00
On 29 Jan 2024, at 01:36, vm via ntg-context
wrote: while also on linux platform:
mtxrun --script font --list --spec --filter="fontname=ibm*" mtxrun --script font --list --spec --filter="fontname=ple*"
give correct result (as in listing the available installed ibmplex fonts)
mtxrun --script font --list --spec --filter="fontname=*" mtxrun --script font --list --spec --filter="fontname=p*" mtxrun --script font --list --spec --filter="fontname=pl*"
lua error : function call: /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to 'format' (number expected, got string)
apparently you need at least three characters in the the filter template.
Hi, I changed line 10066 in mtxrun.lua to templates[i]="%-"..w.."s"..between from templates[i]=“% "..w..”i"..between and that fixed it. The problem here is that the “big" results contain both ttc fonts (with subfont ids, which are numbers) and non-ttc fonts (with empty subfont ids, and those are strings). This means the output template gets confused about whether it should use “%s” or “%i” as format string.
$ mtxrun --script font --list --spec --filter="fontname=ple" table: 0x3bc80550ac0 table: 0x3bc80550b00
This is what happens if there are no matches, apparently. Best wishes, Taco — Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
On 1/29/2024 12:08 PM, Taco Hoekwater wrote:
Hi,
I changed line 10066 in mtxrun.lua to
templates[i]="%-"..w.."s"..between
from
templates[i]=“% "..w..”i"..between
and that fixed it.
thanks, I also changed util-fmt.lua line 79 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi, it seems that line 10066 in mtxrun.lua (now 10070) has not been updated for today's update. What is the command line to rebuild mtxrun locally without downloading update from internet ? (I only know "sh install.sh"...) Thanks
On 2/14/2024 10:05 PM, Garulfo wrote:
Hi,
it seems that line 10066 in mtxrun.lua (now 10070) has not been updated for today's update.
What is the command line to rebuild mtxrun locally without downloading update from internet ? (I only know "sh install.sh"...) can you copy the 'bad line' in the mail
(there's also a mtxrun.lua in scripts/context/lua) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
I don't wanna delay... :)
On Wed, Feb 14, 2024 at 11:05 PM Hans Hagen
On 2/14/2024 10:05 PM, Garulfo wrote:
Hi,
it seems that line 10066 in mtxrun.lua (now 10070) has not been updated for today's update.
What is the command line to rebuild mtxrun locally without downloading update from internet ? (I only know "sh install.sh"...) can you copy the 'bad line' in the mail
(there's also a mtxrun.lua in scripts/context/lua)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Oh, that mail went wrong, sorry.
/MIkael
On Wed, Feb 14, 2024 at 11:27 PM Mikael Sundqvist
I don't wanna delay... :)
On Wed, Feb 14, 2024 at 11:05 PM Hans Hagen
wrote: On 2/14/2024 10:05 PM, Garulfo wrote:
Hi,
it seems that line 10066 in mtxrun.lua (now 10070) has not been updated for today's update.
What is the command line to rebuild mtxrun locally without downloading update from internet ? (I only know "sh install.sh"...) can you copy the 'bad line' in the mail
(there's also a mtxrun.lua in scripts/context/lua)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
The line number was 10066 as of Jan 28th, and now 10070. According to Taco's proposal, 2 chars should be changed: the bad line: templates[i]=“% "..w..”i"..between should be switched to: templates[i]="%-"..w.."s"..between A similar changed as been done on util-fmt.lua line 79
participants (5)
-
Garulfo
-
Hans Hagen
-
Mikael Sundqvist
-
Taco Hoekwater
-
vm