unicode char feature 1199

svn: r8903
This commit is contained in:
Benny Malengier 2007-08-31 10:02:00 +00:00
parent adf6bf9cd8
commit 7e63c15d06
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2007-08-31 Benny Malengier <benny.malengier@gramps-project.org>
* src/PlaceUtils.py: request #1199
2007-08-31 Stephane Charette <stephanecharette@gmail.com> 2007-08-31 Stephane Charette <stephanecharette@gmail.com>
* src/Filters/Rules/_HasReferenceCountBase.py: move some filter code * src/Filters/Rules/_HasReferenceCountBase.py: move some filter code
from ::apply() into ::prepare() to ensure it executes only once from ::apply() into ::prepare() to ensure it executes only once

View File

@ -175,6 +175,9 @@ def conv_lat_lon(latitude, longitude, format="D.D4"):
val = val.replace( r'#',r'_') val = val.replace( r'#',r'_')
#allow to input " as '' #allow to input " as ''
val = val.replace( r"''",r'"') val = val.replace( r"''",r'"')
#allow some special unicode symbols
val = val.replace( u"",r'"')
val = val.replace( u"",r"'")
#ignore spaces #ignore spaces
val = val.replace(r'\s*', r'') val = val.replace(r'\s*', r'')
# get the degrees, must be present # get the degrees, must be present