From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36449 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Greek in luatex Date: Tue, 11 Sep 2007 08:47:43 +0200 Message-ID: <7EFEDA40-D45B-4A94-A9CC-2599CF5CF462@uni-bonn.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189493305 7271 80.91.229.12 (11 Sep 2007 06:48:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 06:48:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 11 16:48:08 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IV725-00053t-3d for gctc-ntg-context-518@m.gmane.org; Tue, 11 Sep 2007 16:48:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B4611FB30; Tue, 11 Sep 2007 08:48:17 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03369-09-6; Tue, 11 Sep 2007 08:48:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B26F1FA70; Tue, 11 Sep 2007 08:48:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 232781FA70 for ; Tue, 11 Sep 2007 08:48:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03369-09-5 for ; Tue, 11 Sep 2007 08:47:58 +0200 (CEST) Original-Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.de [194.25.134.18]) by ronja.ntg.nl (Postfix) with ESMTP id 2D6F61FA63 for ; Tue, 11 Sep 2007 08:47:58 +0200 (CEST) Original-Received: from fwd33.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1IUzXR-0005Pu-08; Tue, 11 Sep 2007 08:47:57 +0200 Original-Received: from [192.168.0.2] (E45WpeZfweC155Z+rAZZHhw9kRbfDglq1JzyGI3szFXg9JDz7LNbQz@[91.18.102.233]) by fwd33.aul.t-online.de with esmtp id 1IUzXH-06WDtQ0; Tue, 11 Sep 2007 08:47:47 +0200 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-ID: E45WpeZfweC155Z+rAZZHhw9kRbfDglq1JzyGI3szFXg9JDz7LNbQz@t-dialin.net X-TOI-MSGID: 493df0ac-d79a-4069-afc0-6cf2a7e49807 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36449 Archived-At: OK, the message below didn't get too many responses, so maybe I can rephrase my quiestions in a more precise manner: 1. For otftotfm, there's the "unicoding" command where you can replace a character in a certain slot with another unicode character, so you could say unicoding "A = uni03D1" Is anything like this possible in luatex? 2. I see this code in font-otf.lua: fonts.otf.features.data.tex = { { "endash", "hyphen hyphen" }, { "emdash", "hyphen hyphen hyphen" }, { "quotedblleft", "quoteleft quoteleft" }, { "quotedblright", "quoteright quoteright" }, { "quotedblleft", "grave grave" }, { "quotedblright", "quotesingle quotesingle" }, { "quotedblbase", "comma comma" } } and this list is used in the function function fonts.initializers.base.otf.texligatures(tfm,value) How is it possible to write a similar list and function for just a single font or fonts in a specific typescript? Thanks a lot! Thomas On Sep 1, 2007, at 12:56 PM, Thomas A. Schmitz wrote: > Hi all, > > I've been experimenting with my Greek stuff in luatex, and I think > I'm making nice progress. Things pretty much work with Unicode input, > and as soon as the kerning problem is solved, I'm very optimistic. > Two questions came up for me; I assume the answers are > straightforward, but couldn't find anything: > > 1. How can I remap single characters? Let's say that we have a > Unicode character in the input stream that maps to 0x03c3, but I want > it remapped to 0x3f2, how can this be achieved? > > 2. Similarly: if I want to support the legacy input method babel, I > need to remap the input stream to the Greek characters (question 1) > and also need to feed the font some ligature rules, such as: the > combination >a needs to be combined into the character 0x1f00. What > would be the syntax and the way to do this? > > All best > > Thomas > ___________________________________________________________________________________ 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 ___________________________________________________________________________________