From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57765 Path: news.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: learning LuaTeX (was: Hans' presentation: using plain TEX (from TUG 2009) [apologies if OT]) Date: Sat, 3 Apr 2010 21:10:35 +0200 Message-ID: <62E67905-1A07-4932-8D20-D863E356A92D@gundla.ch> References: <4BB78638.4060908@wxs.nl> <4BB78F49.2070703@readytext.co.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270321849 7434 80.91.229.12 (3 Apr 2010 19:10:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 19:10:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 03 21:10:44 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 1Ny8k0-0005ev-Ib for gctc-ntg-context-518@m.gmane.org; Sat, 03 Apr 2010 21:10:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF3EAC9EE6; Sat, 3 Apr 2010 21:10:43 +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 iX1wRHd+hwMd; Sat, 3 Apr 2010 21:10:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5392CC9EDD; Sat, 3 Apr 2010 21:10:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B33FAC9EDD for ; Sat, 3 Apr 2010 21:10:39 +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 IeRX5+ZeXyGb for ; Sat, 3 Apr 2010 21:10:36 +0200 (CEST) Original-Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by balder.ntg.nl (Postfix) with ESMTP id C4320C9EDA for ; Sat, 3 Apr 2010 21:10:36 +0200 (CEST) Original-Received: from [192.168.1.100] (d120049.adsl.hansenet.de [80.171.120.49]) (authenticated bits=0) by unimail.uni-dortmund.de (8.14.4/8.14.4) with ESMTP id o33JAZ7H008480 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sat, 3 Apr 2010 21:10:36 +0200 (CEST) In-Reply-To: <4BB78F49.2070703@readytext.co.uk> X-Mailer: Apple Mail (2.1078) 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:57765 Archived-At: Hello Graham, > Thank you for your commnts. Oh, for sure, tinkering with > plain is just an interim step along the (long...) road. A very minimal "harness setup" to write minimal code --- to play with the various LuaTeX API functions via GNU's gdb debugger. By building a small test environment/playground from scratch, including compiling LuaTeX, and > hacking together a basic TDS, gives me a way to learn about stuff like kpathsea etc. Besides the gdb part, this is pretty much how I "learned" LuaTeX (still on my path). I suggest you stay with plain, then add features as you go along: * write your own font handler (see the bluewiki page) - LuaTeX supports many different kinds of fonts * write your own kpathsea module (and thus replace kpathsea) * do a nodelist traversal and find out about the different node types * create a nodelist and write it out to TeX (node.write(...)) * use tex.linebreak() for creating a paragraph. ... Hans' font stuff is rather advanced and therefore complex (IIRC > 10000 lines of code), so don't try to understand it as your first exercise. There is no need to use ConTeXt if all you want is knowledge of the LuaTeX API. If you understand german or use google translate, have a look at http://www.luatex.de Patrick ___________________________________________________________________________________ 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 ___________________________________________________________________________________