From 70be1b8a96369d064cea7fc3ac7c944b31d34a51 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 2 Aug 2017 18:47:39 +0200 Subject: [PATCH] fix is_asian_name --- ox/text.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ox/text.py b/ox/text.py index ef3b5a6..f136395 100644 --- a/ox/text.py +++ b/ox/text.py @@ -307,6 +307,9 @@ def get_sort_name(name): if is_asian_name(name): names = name.split(' ') + if '-' in names[0]: + firstnames = names[0].split('-') + names[0] = '-'.join(firstnames[0], firstnames[1].lower()) return names[-1] + ' ' + ' '.join(names[:-1]) first_names = name.split(' ')