FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add U+2103 and U+2109 · IMGillusion/unidecode@bc391ef · GitHub

Repository navigation

Commit bc391ef

Browse files
committed
Add U+2103 and U+2109
Transliterate same as U+00B0 + C and U+00B0 + F. Closes avian2#94
1 parent 21d0ea2 commit bc391ef

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎tests/test_unidecode.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ def test_errors_invalid(self):
523523
# "During handling of the above exception, another exception occurred")
524524
self.assertIsNone(e.exception.__context__)
525525

526+
def test_degree(self):
527+
self.assertEqual(self.unidecode('\u2109'), self.unidecode('\u00b0F'))
528+
self.assertEqual(self.unidecode('\u2103'), self.unidecode('\u00b0C'))
529+
526530
class TestUnidecode(BaseTestUnidecode, unittest.TestCase):
527531
unidecode = staticmethod(unidecode)
528532

‎unidecode/x021.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
' a/c ', # 0x00
33
' a/s ', # 0x01
44
'C', # 0x02
5-
'', # 0x03
5+
'degC', # 0x03
66
'', # 0x04
77
' c/o ', # 0x05
88
' c/u ', # 0x06
99
'', # 0x07
1010
'', # 0x08
11-
'', # 0x09
11+
'degF', # 0x09
1212
'g', # 0x0a
1313
'H', # 0x0b
1414
'H', # 0x0c

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL