From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77331 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \seeindex and processors Date: Sat, 14 Jul 2012 17:05:49 +0200 Message-ID: References: <5000599A.7030506@wxs.nl> <30458FB3-0972-456A-83B8-6818447FC159@imt.uni-luebeck.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342278367 28214 80.91.229.3 (14 Jul 2012 15:06:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2012 15:06:07 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 14 17:06:04 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sq3uy-0003kp-AA for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jul 2012 17:06:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B5EA101EA; Sat, 14 Jul 2012 17:05:59 +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 qUGZvdoGZYXZ; Sat, 14 Jul 2012 17:05:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F541101E3; Sat, 14 Jul 2012 17:05:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9207101E3 for ; Sat, 14 Jul 2012 17:05:55 +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 VyjKcHWaDOHE for ; Sat, 14 Jul 2012 17:05:54 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 934CE101E1 for ; Sat, 14 Jul 2012 17:05:54 +0200 (CEST) Original-Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6EF5rPX013549 for ; Sat, 14 Jul 2012 17:05:53 +0200 Original-Received: by wibhm6 with SMTP id hm6so1147864wib.2 for ; Sat, 14 Jul 2012 08:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=keK0rhFYwrmnIGOEZDU7qbjtvIw2ZwSehzIthGTc3f4=; b=QZTxCzWHfGkdz2Ym/2kPN4G1gR9+YJuMzyBcqIEmIhtv/I04Fw18QatgRe+G07I8Rm JVTzK7qUdOa08dJQrIyzgVE4OOC+oyCHwmLXW6yTGkdxlllqf0SWxtq7srqa8mSVgUz/ pHZv/op2QRYbQSihZ1ekZF5GnJnxB/PQOKE4wVIIw3uhAEf+7W0flC9XCqriOdoeQo/L S+S+ITMIhyH+1I+Zr4IwT6j++eZABGkCKZoMRvYLd+nLJSdnOe7jtpaupF8Cjr0gJaJa ptVmcWixjLrNPq2FawNaniRAiHXddUdh/bjOs2aQIokD0hol0andb/66vRfRx1a97rq8 os7w== Original-Received: by 10.180.81.138 with SMTP id a10mr5928266wiy.7.1342278353206; Sat, 14 Jul 2012 08:05:53 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AF98E6.dip.t-dialin.net. [87.175.152.230]) by mx.google.com with ESMTPS id t8sm10003542wiy.3.2012.07.14.08.05.51 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2012 08:05:52 -0700 (PDT) In-Reply-To: <30458FB3-0972-456A-83B8-6818447FC159@imt.uni-luebeck.de> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.173; 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: 08Hyf5Ryx - e018d93a3c82 - 20120714 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77331 Archived-At: Am 13.07.2012 um 19:56 schrieb Andreas Mang: > Dear Hans & Wolfgang, > > Thanks for looking into this. I know that this has quite low priority. As it seems to me processors do not really seem to provide the behaviour I had in mind. Clearly, I should have thought of a better example in the first place: > > %%%%%%%%%%%%% > \defineprocessor[smallcaps][style=\sc] > > \starttext > > % this works nicely > {\sc Test}\index{smallcaps->Test} > > % this is what I want it to look like > % (which does not work for \seeindex[.]) > \index{{\sc Cauchy}||Problem} > > % this is what I tried after you have suggested > % to use processors, but it does not work (*) > {\sc Cauchy}||Problem\index{{smallcaps->Cauchy}||Problem} > > \placeindex[n=1] > > \stoptext > %%%%%%%%%%%%% > > (*) As you can see I am using smallcaps as an indicator for a "personal name". From looking at the code (I have to admit that I do not know anything about what's beyond the context front end) I think there's no quick solution to get this to work with preprocessors. Am I doing something wrong? With a simple change of the string type in strc-reg.mkiv you can also use commands/style switches in \seeindex: \def\strc_registers_insert_see_indeed#1#2#3#4% register key entry seeword {\begingroup ... entries = { % we need a special one for xml, this is just a single one - "\currentregisterentries", "#2" + \!!bs\currentregisterentries\!!es, "#2" }, seeword = { - text = "\currentregisterseeword" + text = \!!bs\currentregisterseeword\!!es }, } }}% \endgroup} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________