Skip to content

Instantly share code, notes, and snippets.

@ctrlcctrlv
Created July 17, 2020 15:50
Show Gist options
  • Select an option

  • Save ctrlcctrlv/eef0dfa13dc137396ee538fb156815c8 to your computer and use it in GitHub Desktop.

Select an option

Save ctrlcctrlv/eef0dfa13dc137396ee538fb156815c8 to your computer and use it in GitHub Desktop.
Possible IDC sequence OpenType class names
names = {
'⿰': ("Left", "Right"),
'⿱': ("Above", "Below"),
'⿲': ("LeftOf3", "HMiddleOf3", "RightOf3"),
'⿳': ("TopOf3", "VMiddleOf3", "BottomOf3"),
'⿴': ("Surrounding", "Surrounded"),
'⿵': ("SurroundingFromAbove", "SurroundedFromAbove"),
'⿶': ("SurroundingFromBelow", "SurroundedFromBelow"),
'⿷': ("SurroundingFromLeft", "SurroundedFromLeft"),
'⿸': ("SurroundingFromUpperLeft", "SurroundedFromUpperLeft"),
'⿹': ("SurroundingFromUpperRight", "SurroundedFromUpperRight"),
'⿺': ("SurroundingFromLowerLeft", "SurroundedFromLowerLeft"),
'⿻': ("OverlaidA", "OverlaidB")
}
if __name__ == "__main__":
Ltypes = sum((list(v) for k, v in names.items()) , list())
Stypes = set(Ltypes)
assert len(Ltypes) == len(Stypes) # There must be no same class names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment