I'm using XeLaTeX, imakeidx and xindy, and I'd like to use shorthand like "-
and "=
in the index entries (soft and hard hyphen allowing hyphenation within component words, from [ngerman]babel
). I guess I'll need to add something to my local xindy style file, but I can't figure out what.
The indexes are lists of recipes in a cookbook, the recipe names are added automatically, they contain expressions like Wirsing"=Kartoffel"=Bett
, which xindy turns into Wirsing=Kartoffel=Bett
instead of Wirsing-Kartoffel-Bett
with breakpoints at the hyphens and possible hyphenation Wir-sing
and Kar-tof-fel
. When I say Wirsing-Kartoffel-Bett
in the recipe name it turns into a very long unbreakable compound that disrupts the proper linebreaking considerably.
So what happens is that xindy looses the double quotes and leaves the rest of the shorthand character pair as it is. What I want xindy to do, however, is to ignore the shorthand characters while sorting and to put them back when writing the .ind
file.