unicode char feature 1199
svn: r8908
This commit is contained in:
parent
d9d1ca34c4
commit
3d792b9f38
@ -1,3 +1,6 @@
|
|||||||
|
2007-08-31 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
|
* src/PlaceUtils.py: request #1199: replace unicode symbols with u codes
|
||||||
|
|
||||||
2007-08-31 Don Allingham <don@gramps-project.org>
|
2007-08-31 Don Allingham <don@gramps-project.org>
|
||||||
* src/ExportAssistant.py (ExportAssistant.pulse_progressbar): fix
|
* src/ExportAssistant.py (ExportAssistant.pulse_progressbar): fix
|
||||||
display value, crashed if text wasn't specified
|
display value, crashed if text wasn't specified
|
||||||
|
@ -176,15 +176,15 @@ def conv_lat_lon(latitude, longitude, format="D.D4"):
|
|||||||
#allow to input " as ''
|
#allow to input " as ''
|
||||||
val = val.replace( r"''",r'"')
|
val = val.replace( r"''",r'"')
|
||||||
#allow some special unicode symbols
|
#allow some special unicode symbols
|
||||||
val = val.replace( u"″",r'"')
|
val = val.replace( u'\u2033',r'"')
|
||||||
val = val.replace( u"′",r"'")
|
val = val.replace( u'\u2032',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
|
||||||
if val.find(r'_') != -1:
|
if val.find(r'_') != -1:
|
||||||
l = val.split('_')
|
l = val.split('_')
|
||||||
if len(l) != 2:
|
if len(l) != 2:
|
||||||
error = True
|
error = True
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
degs = int(l[0]) #degrees must be integer value
|
degs = int(l[0]) #degrees must be integer value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user