- From: Henri Sivonen <notifications@github.com>
- Date: Wed, 18 Jan 2017 00:16:19 -0800
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 18 January 2017 08:16:52 UTC
hsivonen commented on this pull request. > + label += ", Unified Ideograph" + elif code_point >= 0xAC00 and code_point <= 0xD7AF: + label += ", Hangul" + if contiguous: + label += ", contiguous" + if duplicate: + label += ", duplicate" + return label + + +def format_code_point(code_point): + if code_point >= 0x80 and code_point < 0xA0: + # HTML prohibits C1 controls + # TODO draw some fancy SVG hex inside the square + return "<svg><rect x=1 y=1 width=14 height=14 stroke=black stroke-width=2 fill=none /></svg>" + as_str = unichr(code_point) It now works with Apple-shipped Python, too. (Actually tested on a Mac and diffed the output with Ubuntu's wide Python output.) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/encoding/pull/89
Received on Wednesday, 18 January 2017 08:16:52 UTC