- From: Simon Pieters <notifications@github.com>
- Date: Tue, 17 Jan 2017 06:42:40 -0800
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 17 January 2017 14:43:13 UTC
zcorpan 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) I *think* I got it from Apple, but I don't really know. -- 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 Tuesday, 17 January 2017 14:43:13 UTC