Update name scheme examples, adapt addressing system for Japan

This commit is contained in:
Hijiri
2025-01-13 18:51:24 +09:00
committed by GitHub
parent d92e82a133
commit 57f5eeff82

View File

@@ -3557,8 +3557,8 @@ PERSON_NAME_SCHEMES = OrderedDict([
str(p) for p in [d.get('family_name', ''), d.get('given_name', '')] if p str(p) for p in [d.get('family_name', ''), d.get('given_name', '')] if p
), ),
'sample': { 'sample': {
'given_name': '泽东', 'family_name': '',
'family_name': '', 'given_name': '',
'_scheme': 'family_nospace_given', '_scheme': 'family_nospace_given',
}, },
}), }),
@@ -3609,8 +3609,8 @@ PERSON_NAME_SCHEMES = OrderedDict([
'concatenation': lambda d: str(d.get('full_name', '')), 'concatenation': lambda d: str(d.get('full_name', '')),
'concatenation_all_components': lambda d: str(d.get('full_name', '')) + " (" + d.get('latin_transcription', '') + ")", 'concatenation_all_components': lambda d: str(d.get('full_name', '')) + " (" + d.get('latin_transcription', '') + ")",
'sample': { 'sample': {
'full_name': '庄司', 'full_name': '山田花子',
'latin_transcription': 'Shōji', 'latin_transcription': 'Yamada Hanako',
'_scheme': 'full_transcription', '_scheme': 'full_transcription',
}, },
}), }),
@@ -3701,6 +3701,7 @@ COUNTRIES_WITH_STATE_IN_ADDRESS = {
'BR': (['State'], 'short'), 'BR': (['State'], 'short'),
'CA': (['Province', 'Territory'], 'short'), 'CA': (['Province', 'Territory'], 'short'),
# 'CN': (['Province', 'Autonomous region', 'Munincipality'], 'long'), # 'CN': (['Province', 'Autonomous region', 'Munincipality'], 'long'),
'JP': (['Prefecture'], 'long'),
'MY': (['State', 'Federal territory'], 'long'), 'MY': (['State', 'Federal territory'], 'long'),
'MX': (['State', 'Federal district'], 'short'), 'MX': (['State', 'Federal district'], 'short'),
'US': (['State', 'Outlying area', 'District'], 'short'), 'US': (['State', 'Outlying area', 'District'], 'short'),