On Wed, May 5, 2010 at 6:36 AM, Michael Saunders <odrad...@gmail.com> wrote: > About glossaries: > > Thank you, everyone. I'm not much of a TeXpert and certainly not a > lua expert, but I'm trying to understand your different solutions and > integrate them into a working system. There seem to be three > approaches: > > I. Willi Egger---synonym-based > II. Marius---modified index > III. Philipp Gesang---lua-based > > I. So far, Willi's synonym-based solution looks simple and promising. > I imagine something like this: > > \definesynonyms[gloss][glosses][\infull][\inshort]%to make short > glosses available for tooltips > \definesynonyms[gentry][gentries][\infull][\inshort]%to connect > headwords to entries > \def\gdef#1#2#3{\gloss{#1}{#2}\gentry{#1}{#3}} > \def\hint#1{\tooltip[middle]{#1}{\infull{#1}}} > > > %then you have a file of definitions like this one: > > \gdef{vibrato}{a periodic fluctuation in pitch}{A periodic fluctuation > of pitch, typically in the range 6--12~Hz.} Synonyms are defined in strc-syn.mkii (or strc-syn.mkiv, if you are using mkiv) ; maybe it can help you in defining your own macros (just to avoid to reinvent the wheel, possibly)
-- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________