From: Philipp Gesang <Philipp.Gesang@alumni.uni-heidelberg.de>
To: ConTeXt ML <ntg-context@ntg.nl>
Subject: [font-chk.lua] missing glyph tracker
Date: Thu, 20 Jun 2013 13:59:05 +0200 [thread overview]
Message-ID: <20130620115905.GA4047@phlegethon> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1024 bytes --]
Hi Hans,
in font-chk.lua, the function checkers.missing fails to assign
the var “lastfont”, leading to a meaningless test for equivalence
with “font”. See patch below.
Also, may I ask you to include the unicode character in the
tracker message? This would make the output more legible, imo.
Something like this (line 71):
- report_fonts("char %U in font %a with id %a: %s",char,tfmdata.properties.fullname,font,message)
+ report_fonts("char %U (%s) in font %a with id %a: %s",char,utf.char(char),tfmdata.properties.fullname,font,message)
Best regards,
Philipp
--- font-chk.lua.orig 2013-06-20 13:46:56.282164831 +0200
+++ font-chk.lua 2013-06-20 13:47:15.224965072 +0200
@@ -210,6 +210,7 @@
local char = n.char
if font ~= lastfont then
characters = fontcharacters[font]
+ lastfont = font
end
if not characters[char] and is_character[chardata[char].category] then
if action == "remove" then
[-- Attachment #1.2: Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2013-06-20 11:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 11:59 Philipp Gesang [this message]
2013-06-20 14:09 ` Hans Hagen
2013-06-20 14:53 ` Philipp Gesang
2013-06-20 16:46 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130620115905.GA4047@phlegethon \
--to=philipp.gesang@alumni.uni-heidelberg.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).