Re: [Therion] Person data type with more than two names

2017-07-14 Thread Bruce Mutton via Therion
Thanks Olly

Can rely on you for a clear and rational explanation!

I've added a bit on the  wiki

https://therion.speleo.sk/wiki/drawingchecklist#scrap 

 

and plagiarised your text on the FAQ page as well.

https://therion.speleo.sk/wiki/faq#how_do_i_add_peoples_names_if_they_have_more_than_two_words_names
 

 

Bruce

 

-Original Message-

From: Olly Betts [mailto:o...@survex.com] 

Sent: Saturday, 15 July 2017 1:24 PM

To: Bruce Mutton via Therion 

Cc: Bruce Mutton 

Subject: Re: [Therion] Person data type with more than two names

 

On Sat, Jul 15, 2017 at 12:06:43PM +1200, Bruce Mutton via Therion wrote:

> Therion Book says of this data type:

> 

> persona 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

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Person data type with more than two names

2017-07-14 Thread Olly Betts via Therion
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
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Person data type with more than two names

2017-07-14 Thread Bruce Mutton via Therion
Some of our cave surveyors have more than two word names, and previously I
have had mixed success getting their names reported correctly by Therion.
Some worked, some did not.

 

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.

 

So although this seems a little ambiguous to me, it works for three word
names, but not always for four.  Many combinations result in an error --
invalid name format -- "Bruce van/der/Mutton"

 

So by trial and error…

 

These are OK:

  -author 2017 "Bruce Mutton"

  -author 2017 "Bruce/Mutton"

  -author 2017 "Bruce van/Mutton" 

  -author 2017 "Bruce van/der Mutton"

 

But these are not:

  -author 2017 "Bruce/van/Mutton" 

  -author 2017 "Bruce van/der/Mutton"

  -author 2017 "Bruce/van/der/Mutton"

 

Rather than testing exhaustively, I’m wondering if anyone can shed light
on this.  Is the condition as simple as ‘only one of the spaces between
the names should have a /’?  

I have only checked what Therion reports in pdf outputs, and not for
example html or sql outputs.

I have not yet checked 5 or six word names.

 

Bruce

 

 

 

 

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion