From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50754 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: defineremapper as default (in style file) Date: Mon, 25 May 2009 12:02:29 +0200 Message-ID: References: <4A16EADB.9060209@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0901298293==" X-Trace: ger.gmane.org 1243245846 13934 80.91.229.12 (25 May 2009 10:04:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 10:04:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 25 12:03:59 2009 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 1M8X2E-0004XI-Cx for gctc-ntg-context-518@m.gmane.org; Mon, 25 May 2009 12:03:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7C581FDD8; Mon, 25 May 2009 12:03:54 +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 26034-06-2; Mon, 25 May 2009 12:02:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA5D51FDCA; Mon, 25 May 2009 12:02:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7B38A1FDCA for ; Mon, 25 May 2009 12:02:50 +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 25732-05-4 for ; Mon, 25 May 2009 12:02:33 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id A05BF1FD7D for ; Mon, 25 May 2009 12:02:33 +0200 (CEST) Original-Received: from mail-ew0-f180.google.com (mail-ew0-f180.google.com [209.85.219.180]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4PA2QLR017349 for ; Mon, 25 May 2009 12:02:26 +0200 Original-Received: by ewy28 with SMTP id 28so3032097ewy.2 for ; Mon, 25 May 2009 03:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=c73UvmtB0w440+I9mD370jF1Ujviruny+UnQ7WAFI98=; b=IAwZyuWpq6hLjE570nc9aEUWEsH7szrgPwe8VGqJQjJLlC/7VpLtZv3uoaF6XBnx0+ K3AaB7dh4KDfqF1tzbT3Z5XiOYqUnc8xDMtnTwd9Xbn8fUc8hAES0Hr512s1841yDuh9 cG9I/xkz8MlX2G1H++Dmm/YjLYiY4xG/0gL68= 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=MzcPAvs+c2+smmcKG2A2vAD67RhiBceqGwGiJ6QRRsiSbGFCalgthSEBMb8VpwqTYi v2+xN77HMAWHKf+H7BTgLf/U3IgXLnbDadYFg5K4UKx6ruoTX1yilHAk4sj4zELE+J3m aelPl2pmsbYW0Y44XDKjYEBGeMViI8ca1bMPw= Original-Received: by 10.216.54.207 with SMTP id i57mr1522513wec.114.1243245749613; Mon, 25 May 2009 03:02:29 -0700 (PDT) In-Reply-To: <4A16EADB.9060209@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.180; 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: 231112610 - fd4eb1df7566 - 20090525 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50754 Archived-At: --===============0901298293== Content-Type: multipart/alternative; boundary=0016e6dbea5b4634bc046ab9b549 --0016e6dbea5b4634bc046ab9b549 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, May 22, 2009 at 8:11 PM, Hans Hagen wrote: > Peter M=C3=BCnster wrote: > >> Hello, >> >> I would like to activate a remapper in a style or module file. How could >> this be done? >> >> I tried this without success: >> >> \defineremapper[filterItem] >> \remapcharacter[filterItem][`=E2=80=A2]{\item} >> \appendtoks \startfilterItem \to \everystarttext >> \prependtoks \stopfilterItem \to \everystoptext >> > > > kep in mind that the remapper is just a hack and will not be extended etc > etc; i'm not going to handle interferences with other mechanisms > > Hans > I think the point is this : in some situations one find useful to convert things like =E2=80=A2 in macr= os like \item . Of course, it can be done with preprocessing , or with some ad-hoc macros in lua code , etc So, apart \remapcharacter, are there any other safe ways to "remap character" ? --=20 luigi --0016e6dbea5b4634bc046ab9b549 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--
luigi

--0016e6dbea5b4634bc046ab9b549-- --===============0901298293== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0901298293==--