# [NTG-context] definesynonyms

Taco Hoekwater taco at elvenkind.com
Mon Jul 24 11:11:37 CEST 2006


Bernd Militzer wrote:
> Hi all,
>
> for a large ancestor-project I defined a set of informations for a
> lot of persons like you can see below.
>
> QUESTION: how many synonyms  can I  max. define? I need about 4000 defs.

If you need only 4000 separate PIDs, that should work ok.

> or has someone a better idea to handle those informations.

But it is probably easier to write a small database interface
layer. Somewhat like this (note that I had to change \doGeTPID
as well).

\def\PID[#1][#2]{\getparameters[PID#1][#2]}

\def\doGetPID#1#2{\getvalue{PID#2#1}}

\def\getPID#1{\doGetPID{Fam}{#1}, \doGetPID{Vor}{#1}~(#1)}

\PID[268]
[Fam=Rudolph,
Nam=Rudluffen,