summaryrefslogtreecommitdiff
path: root/unidecode
diff options
context:
space:
mode:
authorTomaz Solc <tomaz.solc@tablix.org>2018-06-19 20:31:23 +0200
committerTomaz Solc <tomaz.solc@tablix.org>2018-06-19 20:36:53 +0200
commit2fcca2e2c6c37c59af173c5eb372f47bdaae3c65 (patch)
tree5bb5edd83d057626b243b2af96b2b6835d696a1a /unidecode
parent332dd87900a5d917c0a6b6dbbdbc2ed19ca6b3d0 (diff)
downloadunidecode-2fcca2e2c6c37c59af173c5eb372f47bdaae3c65.tar.gz
Use uA instead of microampere, etc.
These codepoints are defined as "Greek small letter mu" and a Latin capital letter, not with spelled-out unit names. "u" is a common way of representing "micro" SI prefix in ASCII.
Diffstat (limited to 'unidecode')
-rw-r--r--unidecode/x033.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/unidecode/x033.py b/unidecode/x033.py
index b953683..97f3b0a 100644
--- a/unidecode/x033.py
+++ b/unidecode/x033.py
@@ -129,7 +129,7 @@ data = (
'Inc.', # 0x7f
'pA', # 0x80
'nA', # 0x81
-'microamp', # 0x82
+'uA', # 0x82
'mA', # 0x83
'kA', # 0x84
'kB', # 0x85
@@ -139,8 +139,8 @@ data = (
'kcal', # 0x89
'pF', # 0x8a
'nF', # 0x8b
-'microFarad', # 0x8c
-'microgram', # 0x8d
+'uF', # 0x8c
+'ug', # 0x8d
'mg', # 0x8e
'kg', # 0x8f
'Hz', # 0x90
@@ -148,13 +148,13 @@ data = (
'MHz', # 0x92
'GHz', # 0x93
'THz', # 0x94
-'microliter', # 0x95
+'ul', # 0x95
'ml', # 0x96
'dl', # 0x97
'kl', # 0x98
'fm', # 0x99
'nm', # 0x9a
-'micrometer', # 0x9b
+'um', # 0x9b
'mm', # 0x9c
'cm', # 0x9d
'km', # 0x9e
@@ -177,17 +177,17 @@ data = (
'rad/s^2', # 0xaf
'ps', # 0xb0
'ns', # 0xb1
-'microsecond', # 0xb2
+'us', # 0xb2
'ms', # 0xb3
'pV', # 0xb4
'nV', # 0xb5
-'microvolt', # 0xb6
+'uV', # 0xb6
'mV', # 0xb7
'kV', # 0xb8
'MV', # 0xb9
'pW', # 0xba
'nW', # 0xbb
-'microwatt', # 0xbc
+'uW', # 0xbc
'mW', # 0xbd
'kW', # 0xbe
'MW', # 0xbf