From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ansi codes
Date: Fri, 14 Nov 2008 16:25:55 +0100 [thread overview]
Message-ID: <BC7A7FCE-7E04-49F2-9382-AF147746BB07@uni-bonn.de> (raw)
In-Reply-To: <48E3D6D9.5000609@wxs.nl>
On Oct 1, 2008, at 10:00 PM, Hans Hagen wrote:
> lesser geeks loom in s-fnt-10.tex -)
>
> Hans
Hi Hans,
the file s-fnt-10.lua needs to be added to the distribution.
Best
Thomas
function fonts.otf.show_all()
local tfmdata = fonts.tfm.id[font.current()]
if tfmdata and tfmdata.shared then
local otfdata = tfmdata.shared.otfdata
if otfdata and otfdata.luatex then
local unicodes = otfdata.luatex.unicodes
tex.sprint(tex.ctxcatcodes,string.format("\\starttabulate[|
l|r|c|]"))
for i, name in ipairs(table.sortedkeys(unicodes)) do
local unicode = unicodes[name]
if unicode >= 0 then
tex.sprint(tex.ctxcatcodes,string.format("\\NC %s \
\NC %s \\NC \\char%s \\NC\\NR",name,unicode,unicode))
end
end
tex.sprint(tex.ctxcatcodes,string.format("\\stoptabulate"))
end
end
end
function fonts.show_all()
local tfmdata = fonts.tfm.id[font.current()]
if tfmdata and tfmdata.shared then
local chars = tfmdata.characters
tex.sprint(tex.ctxcatcodes,string.format("\\starttabulate[|l|r|
r|c|]"))
for k, v in ipairs(table.sortedkeys(chars)) do
tex.sprint(tex.ctxcatcodes,string.format("\\NC %s\\NC %s\
\NC \\char%s\\NC %s\\NC\\NR",chars[v].name or
"unknown",v,v,chars[v].index))
end
tex.sprint(tex.ctxcatcodes,string.format("\\stoptabulate"))
end
end
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2008-11-14 15:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 10:23 Alan Stone
2008-09-30 11:37 ` Taco Hoekwater
2008-09-30 14:01 ` Alan Stone
2008-09-30 14:16 ` Taco Hoekwater
2008-10-01 12:57 ` Alan Stone
2008-10-01 13:05 ` Taco Hoekwater
2008-10-01 18:30 ` Mojca Miklavec
2008-10-01 20:00 ` Hans Hagen
2008-10-03 20:15 ` Alan Stone
2008-11-14 15:25 ` Thomas A. Schmitz [this message]
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=BC7A7FCE-7E04-49F2-9382-AF147746BB07@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.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).