- From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
- Date: Fri, 12 Oct 2018 23:32:58 +0000
- To: public-css-archive@w3.org
For reference, below is the script I wrote for this: <details> ```python #!/usr/bin/env python3 mappings = """ ぁ U+3041 あ U+3042 ぃ U+3043 い U+3044 ぅ U+3045 う U+3046 ぇ U+3047 え U+3048 ぉ U+3049 お U+304A ゕ U+3095 か U+304B ゖ U+3096 け U+3051 っ U+3063 つ U+3064 ゃ U+3083 や U+3084 ゅ U+3085 ゆ U+3086 ょ U+3087 よ U+3088 ゎ U+308E わ U+308F ァ U+30A1 ア U+30A2 ィ U+30A3 イ U+30A4 ゥ U+30A5 ウ U+30A6 ェ U+30A7 エ U+30A8 ォ U+30A9 オ U+30AA ヵ U+30F5 カ U+30AB ㇰ U+31F0 ク U+30AF ヶ U+30F6 ケ U+30B1 ㇱ U+31F1 シ U+30B7 ㇲ U+31F2 ス U+30B9 ッ U+30C3 ツ U+30C4 ㇳ U+31F3 ト U+30C8 ㇴ U+31F4 ヌ U+30CC ㇵ U+31F5 ハ U+30CF ㇶ U+31F6 ヒ U+30D2 ㇷ U+31F7 フ U+30D5 ㇸ U+31F8 ヘ U+30D8 ㇹ U+31F9 ホ U+30DB ㇺ U+31FA ム U+30E0 ャ U+30E3 ヤ U+30E4 ュ U+30E5 ユ U+30E6 ョ U+30E7 ヨ U+30E8 ㇻ U+31FB ラ U+30E9 ㇼ U+31FC リ U+30EA ㇽ U+31FD ル U+30EB ㇾ U+31FE レ U+30EC ㇿ U+31FF ロ U+30ED ヮ U+30EE ワ U+30EF ァ U+FF67 ア U+FF71 ィ U+FF68 イ U+FF72 ゥ U+FF69 ウ U+FF73 ェ U+FF6A エ U+FF74 ォ U+FF6B オ U+FF75 ッ U+FF6F ツ U+FF82 ャ U+FF6C ヤ U+FF94 ュ U+FF6D ユ U+FF95 ョ U+FF6E ヨ U+FF96 """ mappings = [m.split() for m in mappings.strip().split('\n')] mappings.sort(key=lambda m: m[1]) for m in mappings: print(m[0], m[1]) print() for m in mappings: print(m[2], m[3]) smalls = "ぁぃぅぇぉゕゖっゃゅょゎァィゥェォヵㇰヶㇱㇲッㇳㇴㇵㇶㇷㇸㇹㇺャュョㇻㇼㇽㇾㇿヮァィゥェォャュョ" for s in smalls: found = False for m in mappings: if s == m[0]: found = True break if not found: print("not found in spec: " + s) for m in mappings: found = False for s in smalls: if s == m[0]: found = True break if not found: print("not found in tt: " + m[0]) def to_u(c): code = hex(ord(c)).upper() return 'U+' + code[2:] for m in mappings: if to_u(m[0]) != m[1]: print("wrong matching: " + m[0] + " " + m[1]) if to_u(m[2]) != m[3]: print("wrong matching: " + m[2] + " " + m[3]) ``` </details> The two long strings are copied from the two specs correspondingly, and the first part of ordering the mapping is for easier reviewing in the Gecko bug. -- GitHub Notification of comment by upsuper Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3209#issuecomment-429489426 using your GitHub account
Received on Friday, 12 October 2018 23:32:59 UTC