TMG-L Archives

Archiver > TMG > 2004-04 > 1082381047


From: Terry Reigel <>
Subject: Re: [TMG] TMG - Name Variables for Parents problem?
Date: Mon, 19 Apr 2004 09:24:07 -0400
In-Reply-To: <002701c42602$15219910$ad002cd9@collyprt>


On Mon, 19 Apr 2004 12:33:05 +0100, Peter R Thompson wrote:
> One way is to use witnesses and roles.
>
> In the birth tag make two roles: Father & Mother.
>
> Add the father and mother as witnesses using the
> appropiate role. When addding the mother select the name
> you wish to appear from the drop down list (If the name
> you want is not here you will need to add a name-var tag
> to the mother with the name required.
>
> Amend sentence to something like: [P]<, daughter of>
> [R:Father] and><[R:Mother],> was born etc

Peter's suggestion should solve the problem. But you will need to take
some care to deal with cases where only one parent is known. If you
modify his suggestion above to:

[P]<, daughter of [R:Father]>< and [R:Mother],> was born etc

you deal with the case of neither or both parents or father only known
(except there is a missing comma if only the father is known). To deal
with only the mother known, and to clean up the comma, you could
either edit locally, or create separate roles for the child, such as
"Father only" and "mother only" with sentences that correctly deal
with those cases.

Terry Reigel



This thread: