fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
473 stars 301 forks source link

Suggestions on Optimizing Input Methods of Place Names #2975

Open DaPoHou opened 4 years ago

DaPoHou commented 4 years ago

Place names should be entered as a comma-separated list, starting with the smallest place and ending with the country. For example, “Westminster, London, England”.

Chinese commas are full-width characters and English commas are half-width characters,. In the process of CJK character input, punctuation marks are all full-width character input by default. Therefore, when entering the place name, it is easy to make mistakes and cannot be recognized. I Hope change the place name input to the same as the date? Whether spaces or full-width commas between words are automatic changed to half-width character storage ?

DaPoHou commented 4 years ago

@fisharebest For example, the address is: 启阳路,徐州市,江苏省 Still doesn't work.

fisharebest commented 4 years ago

We need to do this in two places.

1) in the form (when typing data) 2) on the server (when saving/importing data)

The change https://github.com/fisharebest/webtrees/commit/c08d7baf56d5a2b3182f75d237bc83b6860e0646 was only for (2).

If you: 1) enter "启阳路,徐州市,江苏省" 2) save and accept changes 3) view/edit 4) you will see 启阳路, 徐州市, 江苏省

DaPoHou commented 4 years ago

Thanks.It was my fault that the code was not updated successfully.