registers, how to ignore quote marks
I have an issue that has been raised at least twice in this list but as far as I can see it has not received an answer. Perhaps someone can help with the following? I have an index entry that has unicode quote marks either side: ‘Innovative Beings’. I need to retain those quote marks. If I put \index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of under the letter I. How do I get my indexing to ignore the quote marks, at the very least the initial one? My index setup at the moment is as follows: \defineregister[index][compress=yes] \setupregister[index][n=1] \defineprocessor[special][style=italic] The only hint I could gain from the wiki was that it might depend on using a method key in \setupregister, but I could not see which to use. Tried a few and got weird results. Julian
Hi Julian,
Have you tried \index[Innovative]{‘Innovative’}?
See wiki entry: https://wiki.contextgarden.net/Registers
- To sort a word (such as "ConTeXt" under "C"), use: \index
https://wiki.contextgarden.net/Command/index[CONTEXT]{\ConTeXt}
You would have to change each index call though.
Adam
On Sat, Jan 29, 2022 at 2:42 AM jbf via ntg-context
I have an issue that has been raised at least twice in this list but as far as I can see it has not received an answer. Perhaps someone can help with the following?
I have an index entry that has unicode quote marks either side: ‘Innovative Beings’. I need to retain those quote marks. If I put \index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of under the letter I. How do I get my indexing to ignore the quote marks, at the very least the initial one?
My index setup at the moment is as follows:
\defineregister[index][compress=yes]
\setupregister[index][n=1]
\defineprocessor[special][style=italic]
The only hint I could gain from the wiki was that it might depend on using a method key in \setupregister, but I could not see which to use. Tried a few and got weird results.
Julian
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Adam Reviczky
-
jbf