def __init__(self, uids, basename, logger): self.logger = logger self.uids = uids self.basename = basename if Char.isdefined(uids[0]): self.general = Char.charType(uids[0]) self.cc = Char.getCombiningClass(uids[0]) else: self.logger.log( 'USV %04X not in ICU; no properties known' % uids[0], 'W') self.feats = set() # feat tags that affect this char self.langs = set() # lang tags that affect this char
def __init__(self, uid, basename, logger): self.logger = logger self.uid = uid self.basename = basename if Char.isdefined(uid): self.general = Char.charType(uid) self.cc = Char.getCombiningClass(uid) self.icuGC = Char.charType(uid) self.icuJT = Char.getIntPropertyValue(uid, UProperty.JOINING_TYPE) else: self.logger.log('USV %04X not in ICU; no properties known' % uid, 'W') self.feats = set() # feat tags that affect this char self.langs = set() # lang tags that affect this char # Additional info from UFO: self.takesMarks = self.isMark = self.isBase = False