gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] Error with placeholder $<gender_mapper>$


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] Error with placeholder $<gender_mapper>$
Date: Mon, 15 Aug 2011 09:24:09 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Aug 14, 2011 at 03:46:19PM -0700, Jim Busser wrote:

> > In German we've got a lot of male/female words and phrases,
> > say, "Patient" vs. "Patientin" which one may wish to use in
> > a piece of paperwork, say "Dear Patient" -> "Lieber Patient"
> > or "Liebe Patientin".
> 
> A creative use of the flexibility provided by the mapper.

No, that's the exact use case this placeholder was written for.

> People who would be thinking basic usage such as
> 
>       Patient name: <lastname> , <first_names>
>       Date of birth: <date_of_birth>
>       Gender: <whatever_would_be_passed_from_the _backend>
> 
> might be happy with a "raw" value.

IOW, hand out m/f/tf/tm/h ?

I do think it should be used to map.

You can already omit the values but you'll still have to go
by the format.

>       # the following, when used,  must satisfy the pattern 
> "$<name::args::optional character length restriction>$"

The character length is 8 bit, or, to be more precise, unknown.

>       u'gender_mapper',                       # "args" holds: value when 
> person is male // is female //  is other
>                                                               # e.g. Male // 
> Female // Alternative or 
>                                                               # Lieber 
> Patient // Liebe Patientin

Note that those spaces will make spacing-when-replaced
depend on the gender.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]