branch: master commit 44000fd344ae2234665c095f214c88bb818efc73 Author: Eric Abrahamsen <e...@ericabrahamsen.net> Commit: Eric Abrahamsen <e...@ericabrahamsen.net>
Safer to check script of address locality And bump version * packages/ebdb-i18n-chn/ebdb-i18n-chn.el (ebdb-string-i18n): Check the script of the locality, not the street address. --- packages/ebdb-i18n-chn/ebdb-i18n-chn.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ebdb-i18n-chn/ebdb-i18n-chn.el b/packages/ebdb-i18n-chn/ebdb-i18n-chn.el index e9b7d6d..141b550 100644 --- a/packages/ebdb-i18n-chn/ebdb-i18n-chn.el +++ b/packages/ebdb-i18n-chn/ebdb-i18n-chn.el @@ -4,7 +4,7 @@ ;; Author: Eric Abrahamsen <e...@ericabrahamsen.net> ;; Maintainer: Eric Abrahamsen <e...@ericabrahamsen.net> -;; Version: 1.1 +;; Version: 1.2 ;; Package-Requires: ((pyim "1.6.0") (ebdb "0.2")) ;; This program is free software; you can redistribute it and/or modify @@ -73,7 +73,7 @@ (cl-defmethod ebdb-string-i18n ((adr ebdb-field-address) (_cc (eql chn))) (with-slots (streets locality region postcode) adr - (if (eql (aref char-script-table (aref (car streets) 0)) 'han) + (if (eql (aref char-script-table (aref locality 0)) 'han) (concat ;; There are four municipalities, we don't need to repeat ;; city-plus-province for them.