From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61154 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt meeting Lua tutorials Date: Mon, 23 Aug 2010 18:37:11 +0200 Message-ID: References: <4C6FBCFE.4030904@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282581449 26012 80.91.229.12 (23 Aug 2010 16:37:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Aug 2010 16:37:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 23 18:37:25 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ona1T-0003x3-KA for gctc-ntg-context-518@m.gmane.org; Mon, 23 Aug 2010 18:37:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99B09CA5B9; Mon, 23 Aug 2010 18:37:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k8YfhkqyRC8p; Mon, 23 Aug 2010 18:37:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76532CA5AA; Mon, 23 Aug 2010 18:37:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A219CA5AA for ; Mon, 23 Aug 2010 18:37:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CLemx2EmkJkY for ; Mon, 23 Aug 2010 18:37:13 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id D7114CA5A1 for ; Mon, 23 Aug 2010 18:37:13 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7NGbCwq030520 for ; Mon, 23 Aug 2010 18:37:13 +0200 Original-Received: by qyk2 with SMTP id 2so6360050qyk.14 for ; Mon, 23 Aug 2010 09:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=8OjDb8jghxO3jCfv78Or+tY3AumAHYQg8qbBCY1up+4=; b=A4Q+UPhGvnVoVao74G/LQz6z9JM2vWCFJ1PdIqdwTncYcpjxd77fUmTSkAavsnM2pK xZIoX3AkX9XDiI8zoBnsXS0HEnhH5nIlqKyTAtTfuS1nln83qnvviVjqz/h/1oCaghTY Oq+k1m0HQDXWub14PBsWDfOkNV5y+mnBpER9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PS9uK6D8j/inbQPwu7NgarF+iR8gvXoeWFwqeCdKnTv27Ar9638lJpnWqFMC1FbEnK uvgn/RtNcKhRHgSYTfo9Rr4JrPaP1f5iWEASRtXKE6APlzXcrPJES2z+r+NLLdExpBVZ rcLjgwvh0YLLL20nJZrgRXnOvBV91t3IrGjMk= Original-Received: by 10.224.102.146 with SMTP id g18mr3517184qao.200.1282581431742; Mon, 23 Aug 2010 09:37:11 -0700 (PDT) Original-Received: by 10.229.217.74 with HTTP; Mon, 23 Aug 2010 09:37:11 -0700 (PDT) In-Reply-To: <4C6FBCFE.4030904@elvenkind.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bCVQBcxx - 2078c3396ab0 - 20100823 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61154 Archived-At: [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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________