@Herbert The need is that international addressing (= what postal addresses with countries are used for) requires the country in upper case.
I think this is rather unofficial.
It’s at least the case for:Germany (Post AG): “[Zielland] in Großbuchstaben ausgeschrieben, keine Länderkürzel” Austria: “Bei Auslandssendungen Bestimmungsort und Bestimmungsland immer in Großbuchstaben” all examples on the Royal Mail homepage and many others, but I couldn’t find it as a general rule, and there seem to be some exceptions.
The question is of course, whether DAVdroid should do such processing.
What has to be considered:It’s questionable whether DAVdroid should prepare for “international addressing” or whether Android’s formattedAddress is rather a “display address”. Maybe DAVdroid shouldn’t even try to fill formattedAddress and let Android do that. The formattedAddress is exported as ADR LABEL, which is clearly a “delivery address”. Maybe the formattedAddress shouldn’t be exported as ADR LABEL, because there are (little) semantic differences? Until now, I have considered Android’s formattedAddress and ADR LABEL as the same thing. The problem goes even further: Android speaks about “structured addresses”, whereas VCard 4 is about “delivery addresses”. If DAVdroid does not prepare the formattedAddress, which may be exported as an ADR LABEL, people might say that DAVdroid generates invalid “delivery addresses” (which it already does in many cases, because every country has specific addressing guidelines; but at least the country would be correct).
The best solution would of course be a user-configurable template engine + GUI for country-specific delivery addresses, including the ability to transform between Android “formatted addresses” and VCard “delivery addresses” 😉
If someone wants the country in upper cases he may create addresses like that. Others - like me - create the country in mixed case or maybe in lower cases. DAVdroid should generate it the way the user has created it.
If the user creates an ADR LABEL, DAVdroid won’t change it.