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 : [email protected] / 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
___________________________________________________________________________________