[the following is just some brainstorming] On Sat, Aug 21, 2010 at 13:48, Taco Hoekwater wrote:
Hi all,
Today I started preparations for my activities at the ConTeXt meeting.
There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts.
For both, I am looking for input on what subjects I should cover?
For fonts, agreed with Luigi, it would be nice to see some lua code that a) takes a bunch of fonts as input (like: regular/italic/bold/bolditalic/script) and writes some simple sentence with all variants; switching options on and off (after thinking a bit, this can just as well be done in almost-plain-TeX in LuaTeX, so maybe it's not such a good idea) b) takes a font as input and makes a really nice graphical representation: - font name (under different OS systems?), file name, ... - available features - glyph repertoire (index/Unicode point/name/big drawing) - alternatives of the same glyph (under small caps or when alternative styles play some role), ... [i know it's incomplete] - ... - takes some input string and writes out that sentence under different permutations of available features (with some user's help) c) shows some OpenType math tricks (visually?) or even does the same as showttf/poin b, but for math (challenge :) :) :) One of possible ideas for an advanced example (just brainstorming; you need to judge whether it makes sense or not; it might be too long & complicated, but it would be instructive to see both parsing and drawing at the same time): - parse some very simple text input - draw the image with mplib For example, one could try to parse: http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html (but with some strict restrictions, like: no cycles allowed, no reactions, ... only element names, =, # and parenthesis with at most one branch; no nested ones) and then try to draw a full circle for every element and connect the circles with single/double/triple lines (no attempt for optimal placement and nothing complicated). Mojca