Skip to content

Instantly share code, notes, and snippets.

View kojiishi's full-sized avatar

Koji Ishii kojiishi

View GitHub Profile
#!/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()
#!/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'
# 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