From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52175 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: lpeg substitution Date: Tue, 11 Aug 2009 13:21:54 +0200 Message-ID: References: <00765789-37D5-4318-9055-898AAA792135@uni-bonn.de> <4A814EF6.60101@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249989757 23510 80.91.229.12 (11 Aug 2009 11:22:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 11:22:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 11 13:22:30 2009 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.50) id 1MapQy-0004nJ-5E for gctc-ntg-context-518@m.gmane.org; Tue, 11 Aug 2009 13:22:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56C7CC9A90; Tue, 11 Aug 2009 13:22:26 +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 OuIRdxtzu-r3; Tue, 11 Aug 2009 13:22:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE510C9A7C; Tue, 11 Aug 2009 13:22:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA2E2C9A7C for ; Tue, 11 Aug 2009 13:22:19 +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 K7de6PF89Fxf for ; Tue, 11 Aug 2009 13:22:15 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id 5C584C9A77 for ; Tue, 11 Aug 2009 13:22:10 +0200 (CEST) Original-Received: from [87.178.69.110] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 21728378 for ntg-context@ntg.nl; Tue, 11 Aug 2009 13:22:09 +0200 In-Reply-To: <4A814EF6.60101@wxs.nl> X-Mailer: Apple Mail (2.935.3) 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:52175 Archived-At: On Aug 11, 2009, at 12:59 PM, Hans Hagen wrote: > Thomas A. Schmitz wrote: >> Hi all, >> I'm working on my Greek module again and am trying to filter and >> massage the input via lpeg, but there's something I don't quite >> get. As a minimal example: suppose I want to substitute A and B in >> my input with X and leave all other letters alone. Here's my attempt: > > brrr ... massaging input ... can be dangerous ... anyhow, here you go Thanks Hans! I know it's not a good thing, but I do want to find a method to support ASCII transliteration in mkiv. I have learnt lots of interesting things about fea files in the past, the most important being that they are not the way to go (something that Taco had told me very early in my attempts; I should have listened to him...) So now I try to transform the input via lpeg. It's just a stopgap, but maybe better than nothing. Thanks, 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 ___________________________________________________________________________________