Re: making address formatting more flexible

2011-02-09 Thread Luca Capello
Hi there! Please do not Cc: me, I read the list. On Tue, 08 Feb 2011 22:13:39 +0100, Johnny wrote: > Luca Capello writes: > >> I do not think there is even a *used* standard within a single country, >> at least here in Switzerland I saw different layouts sometime according >> to where the sender

Re: making address formatting more flexible

2011-02-08 Thread Johnny
Luca Capello writes: > I do not think there is even a *used* standard within a single country, > at least here in Switzerland I saw different layouts sometime according > to where the sender lives (French/German/Italian part). And none of the > examples at the UPU website uses this ISO-3166 supp

Re: making address formatting more flexible

2011-02-07 Thread Luca Capello
Hi there! On Thu, 03 Feb 2011 05:31:50 +0100, Roland Winkler wrote: > On Wed Feb 2 2011 Johnny wrote: >> This is a good idea; the current BBDB handling seems very >> US-centered. For one, I think "Postal code" should replace the American >> term "Zip code" as default naming, as this seems to be th

Re: making address formatting more flexible

2011-02-02 Thread Roland Winkler
On Wed Feb 2 2011 Johnny wrote: > This is a good idea; the current BBDB handling seems very > US-centered. For one, I think "Postal code" should replace the American > term "Zip code" as default naming, as this seems to be the generic > term. This becomes yet more complicated. I vaguely remember t

Re: making address formatting more flexible

2011-02-02 Thread Roland Winkler
On Thu Feb 3 2011 Leo wrote: > > It appears to me that the room number could become a second street > > part. (The street part of a BBDB address is really just a list of > > strings.) > > > > Also, newlines would become part of the format specification. So if > > the format specification for chines

Re: making address formatting more flexible

2011-02-02 Thread Leo
On 2011-02-03 00:41 +0800, Roland Winkler wrote: >> This is still awkward for Chinese addresses. In bbdb2 it was so awkward >> to put address in the address field that I have to put them in the notes >> field. >> >> This is because we tend to use one line for the address and it is >> specified fro

Re: making address formatting more flexible

2011-02-02 Thread Roland Winkler
On Wed Feb 2 2011 Leo wrote: > > One could have the format specifiers > > > > %s streets (used repeatedly for each street part) > > %c city > > %z zip code > > %S state > > %C country > > This is still awkward for Chinese addresses. In bbdb2 it was so awkward > to put address in the address f

Re: making address formatting more flexible

2011-02-02 Thread Johnny
"Roland Winkler" writes: > I am thinking about ways to make the formatting of snail mail > addresses more flexible. This is a good idea; the current BBDB handling seems very US-centered. For one, I think "Postal code" should replace the American term "Zip code" as default naming, as this seems t

Re: making address formatting more flexible

2011-02-02 Thread Leo
On 2011-02-02 23:15 +0800, Roland Winkler wrote: > Yet currently BBDB has only two hard-coded functions > bbdb-format-address-default and bbdb-format-address-continental. > I am thinking about replacing this scheme by a generic function > bbdb-format-address that uses some kind of format strings fo

making address formatting more flexible

2011-02-02 Thread Roland Winkler
I am thinking about ways to make the formatting of snail mail addresses more flexible. In my BBDB I have addresses from a few countries in the world, and each goes with slightly different formatting styles, in particular for city, zip code and state. Yet currently BBDB has only two hard-coded func