This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import gzip | |
from typing import Dict | |
from unicodedata_parser import * | |
class UnicodeDataCompressor(object): | |
def add(self, code_and_values): | |
buffer = bytearray() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import shlex | |
import subprocess | |
import uharfbuzz as hb | |
font_dir = 'fonts/g/mac/10.15.7/' | |
font_path = f'{font_dir}Hiragino Kaku Gothic W4.ttc' | |
font_path = f'{font_dir}Hiragino MaruGothic ProN W4.ttc' | |
font_path = f'{font_dir}Hiragino Mincho ProN.ttc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code Bidi_Paired_Bracket_Type East_Asian_Width Script Script_Extensions | |
# Basic Latin | |
0028 o Na Common [] # LEFT PARENTHESIS | |
0029 c Na Common [] # RIGHT PARENTHESIS | |
005B o Na Common [] # LEFT SQUARE BRACKET | |
005D c Na Common [] # RIGHT SQUARE BRACKET | |
007B o Na Common [] # LEFT CURLY BRACKET | |
007D c Na Common [] # RIGHT CURLY BRACKET | |
# Tibetan | |
0F3A o N Tibetan [] # TIBETAN MARK GUG RTAGS GYON |