Beispiel #1
0
 def to_triple_list(self):
     res_list = []
     res_list.extend(self.base_me_group.to_triple_list())
     res_list.extend(self.under_me_group.to_triple_list())
     attached_obj = self.base_me_group.attach_point_object()
     under_attacher_obj = self.under_me_group.attacher_object()
     assert is_basic_elem(attached_obj)
     assert is_basic_elem(under_attacher_obj)
     res_list.append(
         (under_attacher_obj, attached_obj, layout_marco.REL_UNDER))
     return res_list
Beispiel #2
0
 def to_triple_list(self):
     res_list = []
     res_list.extend(self.base_me_group.to_triple_list())
     res_list.extend(self.sub_me_group.to_triple_list())
     base_attached_obj = self.base_me_group.attach_point_object()
     sub_attacher_obj = self.sub_me_group.attacher_object()
     assert is_basic_elem(base_attached_obj)
     assert is_basic_elem(sub_attacher_obj)
     res_list.append(
         (sub_attacher_obj, base_attached_obj, layout_marco.REL_RSUB))
     return res_list
Beispiel #3
0
 def to_triple_list(self):
     res_list = []
     for mg in self.me_groups:
         res_list.extend(mg.to_triple_list())
     for i in range(1, len(self.me_groups)):
         attached_obj = self.me_groups[i - 1].attach_point_object()
         attacher_obj = self.me_groups[i].attacher_object()
         assert is_basic_elem(attacher_obj)
         assert is_basic_elem(attached_obj)
         res_list.append((attacher_obj, attached_obj, layout_marco.REL_HOR))
     return res_list
Beispiel #4
0
 def to_triple_list(self):
     res_list = []
     res_list.extend(self.up_me_group.to_triple_list())
     res_list.extend(self.down_me_group.to_triple_list())
     up_attacher_obj = self.up_me_group.attacher_object()
     down_attacher_obj = self.down_me_group.attacher_object()
     assert is_basic_elem(up_attacher_obj)
     assert is_basic_elem(down_attacher_obj)
     res_list.append(
         (up_attacher_obj, self.frac_path, layout_marco.REL_UPPER))
     res_list.append(
         (down_attacher_obj, self.frac_path, layout_marco.REL_UNDER))
     return res_list
Beispiel #5
0
    def to_triple_list(self):
        res_list = self.hs_group.to_triple_list()

        attacher_obj = self.hs_group.attacher_object()
        assert is_basic_elem(attacher_obj)

        attached_obj = self.hs_group.attach_point_object()
        assert is_basic_elem(attached_obj)

        res_list.append(
            (attacher_obj, self.open_fence_symbol, layout_macro.REL_HOR))
        res_list.append(
            (self.close_fence_symbol, attached_obj, layout_macro.REL_HOR))

        return res_list
Beispiel #6
0
 def to_triple_list(self):
     res_list = []
     res_list.extend(self.me_group.to_triple_list())
     attacher_obj = self.me_group.attacher_object()
     assert is_basic_elem(attacher_obj)
     from pdfxml.me_taxonomy.math_resources import under_name_list
     if str(self.accent_symbol) in under_name_list:
         res_list.append(
             (self.accent_symbol, attacher_obj, layout_marco.REL_UNDER))
     else:
         res_list.append(
             (self.accent_symbol, attacher_obj, layout_marco.REL_UPPER))
     return res_list
Beispiel #7
0
 def to_triple_list(self):
     res_list = self.me_group.to_triple_list()
     attacher_obj = self.me_group.attacher_object()
     assert is_basic_elem(attacher_obj)
     res_list.append((attacher_obj, self.sqrt_symbol, layout_macro.REL_HOR))
     return res_list