def to_tree(self): t = Tree() for mg in self.me_groups: tmp_t = mg.to_tree() tmp_t.info['rel'] = 'HOR' t.add_children(tmp_t) return t
def to_tree(self): t = Tree() t1 = self.base_me_group.to_tree() t1.info['rel'] = 'HOR' t2 = self.sub_me_group.to_tree() t2.info['rel'] = 'SUB' t.add_children(t1) t.add_children(t2) return t
def to_tree(self): t = Tree("") t1 = Tree("") t1.info['rel'] = "HOR" t1.info['cid'] = self.sqrt_symbol.get_info("cid") t1.info['me_sym'] = self.sqrt_symbol t2 = self.me_group.to_tree() t.add_children(t1) t.add_children(t2) return t
def to_tree(self): t = Tree() t1 = self.bind_var_symbol.to_tree() t1.info['rel'] = 'HOR' t.add_children(t1) t2 = self.up_me_group.to_tree() t2.info['rel'] = 'BIND_UPPER' t.add_children(t2) t3 = self.down_me_group.to_tree() t3.info['rel'] = 'BIND_UNDER' t.add_children(t3) return t
def to_tree(self): t = Tree() t1 = self.base_me_group.to_tree() t1.info['rel'] = 'HOR' t.add_children(t1) t2 = self.upper_me_group.to_tree() t2.info['rel'] = 'UPPER' t.add_children(t2) t3 = self.under_me_group.to_Tree() t3.info['rel'] = 'UNDER' t.add_children(t3) return t
def to_tree(self): t = Tree() t1 = self.up_me_group.to_tree() t1.info['rel'] = 'FRAC_UP' t.add_children(t1) t2 = self.down_me_group.to_tree() t2.info['rel'] = 'FRAC_DOWN' t.add_children(t2) return t
def to_tree(self): t = Tree("") return t # nothing here
def to_tree(self): t = Tree("") t.info['rel'] = 'HOR' t.info['cid'] = self.get_info('cid') t.info['me_sym'] = self return t
def to_tree(self): t = Tree() t1 = self.me_group.to_tree() t1.info['rel'] = 'HOR' t.add_children(t1) t2 = Tree() t2.info['cid'] = self.accent_symbol.get_info('cid') t2.info['me_sym'] = self.accent_symbol from pdfxml.me_taxonomy.math_resources import under_name_list if str(self.accent_symbol) in under_name_list: t2.info['rel'] = 'ACCENT_DOWN' else: t2.info['rel'] = 'ACCENT_UP' t.add_children(t2) return t
def to_tree(self): t = Tree("") t1 = Tree("") t1.info['rel'] = "HOR" t1.info['cid'] = self.open_fence_symbol.get_info("cid") t1.info['me_sym'] = self.open_fence_symbol t2 = self.hs_group.to_tree() t3 = Tree("") t3.info['rel'] = "HOR" t3.info['cid'] = self.close_fence_symbol.get_info("cid") t3.info['me_sym'] = self.close_fence_symbol t.add_children(t1) t.add_children(t2) t.add_children(t3) return t