googlefonts / nam-files

Unicode ranges used to subset fonts in the Google Fonts CSS API
Apache License 2.0
3 stars 0 forks source link

Quick and dirty script to compare slicing strategies #16

Closed rsheeter closed 6 months ago

rsheeter commented 6 months ago

Meant to help compare CJK subsets.

$ python3 scripts/slice_cpdiff.py slices/traditional-chinese_default.txt slices/hongkong-chinese_default.txt
17704 match
0 only in traditional-chinese_default.txt
3360 only in hongkong-chinese_default.txt
  CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B 1683
  CJK_UNIFIED_IDEOGRAPHS 1112
  CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A 552
  CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT 11
  CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C 1
  CJK_COMPATIBILITY_IDEOGRAPHS 1