unicode char feature 1199
svn: r8903
This commit is contained in:
parent
adf6bf9cd8
commit
7e63c15d06
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user