From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41228 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: mapper and xml Date: Tue, 27 May 2008 17:43:57 +0200 Message-ID: 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: ger.gmane.org 1211903601 3860 80.91.229.12 (27 May 2008 15:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 15:53:21 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue May 27 17:54:01 2008 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 1K11Uh-0004UX-Um for gctc-ntg-context-518@m.gmane.org; Tue, 27 May 2008 17:53:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E1FF1FC36; Tue, 27 May 2008 17:52:59 +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 16760-01-16; Tue, 27 May 2008 17:52:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 873971FB7E; Tue, 27 May 2008 17:52:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 863221FB7E for ; Tue, 27 May 2008 17:52:01 +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 17269-01-5 for ; Tue, 27 May 2008 17:51:16 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.157]) by ronja.ntg.nl (Postfix) with ESMTP id 2DD931FB30 for ; Tue, 27 May 2008 17:50:44 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so1758385ywm.74 for ; Tue, 27 May 2008 08:50:43 -0700 (PDT) Original-Received: by 10.142.252.11 with SMTP id z11mr564618wfh.232.1211903037043; Tue, 27 May 2008 08:43:57 -0700 (PDT) Original-Received: by 10.142.162.19 with HTTP; Tue, 27 May 2008 08:43:57 -0700 (PDT) Content-Disposition: inline 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:41228 Archived-At: hi, from mail "Greek in luatex" (Date: 2007-09-13 19:24:15 GMT ) following snippet works good, but I'm not able to make it work under xml processing with \startxmlsetups mynode .... \stopxmlsetups In particulary, I have \u2022 unicode char utf-8 encoding which I would like to map to \item. Replacing \u2022 with \item in xml source cause a literal \item to appear in text node, and hence in pdf output. Using mapper above produce only a literal \stopbabelgreek with no text at all. Thanks in advance \defineremapper[babelgreek] \remapcharacter[babelgreek][`a]{\alpha} \remapcharacter[babelgreek][`b]{\beta} \remapcharacter[babelgreek][`c]{\gamma} \remapcharacter[babelgreek][`d]{OEPS} \starttext [\startbabelgreek a b c some stuff here \blank[big] oeps b d \stopbabelgreek] [\babelgreek{some stuff here}] \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________