ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bad names
@ 2019-02-08 21:22 Marco Patzer
  2019-02-08 22:26 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Patzer @ 2019-02-08 21:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi!

I was wondering what context considers a “bad” file name and what consequences
that might have. From workflows-mkiv.pdf:

  “Bad names are reported and suitable action can be taken”

Indeed, every run context tells me how many files are badly named:

  mkiv lua stats  > graphics processing time: 0.021 seconds including tex, 14 processed images, 14 unique asked, 7 bad names

A small test:

\starttext
  \externalfigure [a]           %% good
  \externalfigure [a.png]       %% good
  \externalfigure [a.b.png]     %% good
  \externalfigure [a.1.png]     %% bad
  \externalfigure [a-1.png]     %% good
  \externalfigure [a-.1.png]    %% bad
  \externalfigure [a-b.1.png]   %% bad
  \externalfigure [a-1.b.png]   %% good
  \externalfigure [A]           %% good
  \externalfigure [A.B]         %% good
  \externalfigure [A.b]         %% bad
  \externalfigure [A.B.png]     %% bad
  \externalfigure [A.png]       %% bad
  \externalfigure [a.c-b.b.png] %% bad

  %% bad names are reported in red
  \usemodule [s-figures-names]
\stoptext

I note that “A.png” and “a.1.png” are bad file names and “a-1.b.png” and
“a-1.png” are good file names. What's the idea behind that logic? “A.png” and
“a.1.png” seem perfectly fine file names to me.

The files are included without issues, regardless of context's opinion about
the name.

What is a bad name for context? Does it have any consequences if badly named
files are used? Just being curious.

Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-09 19:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-08 21:22 Bad names Marco Patzer
2019-02-08 22:26 ` Hans Hagen
2019-02-08 23:15   ` Alan Braslau
2019-02-09 19:47     ` Hans Hagen
2019-02-09 11:37   ` Marco Patzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).