[Therion] Person data type with more than two names

Olly Betts olly at survex.com
Sat Jul 15 03:23:37 CEST 2017


On Sat, Jul 15, 2017 at 12:06:43PM +1200, Bruce Mutton via Therion wrote:
> Therion Book says of this data type:
> 
> person ¢¹ a person¡¯s first name and surname separated by whitespace
> characters. Use ¡®/¡¯ to separate first name and surname if there are more
> names.

Perhaps more clearly: a person can have at most two names (name1 and name2).
If there's a "/" then that separates the name1 and name2 (which can then
contain spaces), otherwise whitespace separates name1 and name2.  So
multiple "/" is an error, as is multiple whitespace without a "/".

At least that's what the code appears to do, and it's consistent with all
your examples.

I guess it's up to the user how best to separate a person's fairly arbitrary
number of names into at most two groups.

Just be careful never to go surveying with someone with a "/" in their name...

Cheers,
    Olly



More information about the Therion mailing list