16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2001-2002 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# TextUtils.py |
# TextUtils.py |
63 |
value = float(text) / {'pt':72, 'in':1, 'cm':2.54, |
value = float(text) / {'pt':72, 'in':1, 'cm':2.54, |
64 |
'mm': 25.4}[unit.lower()] * multiplier |
'mm': 25.4}[unit.lower()] * multiplier |
65 |
|
|
66 |
return value |
return value |