MCPcopy Create free account
hub / github.com/clips/pattern / analyze

Method analyze

pattern/web/pdf/layout.py:444–450  ·  view source on GitHub ↗
(self, laparams)

Source from the content-addressed store, hash-verified

442class LTTextGroupTBRL(LTTextGroup):
443
444 def analyze(self, laparams):
445 LTTextGroup.analyze(self, laparams)
446 # reorder the objects from top-right to bottom-left.
447 self._objs = csort(self._objs, key=lambda obj:
448 -(1+laparams.boxes_flow)*(obj.x0+obj.x1)
449 -(1-laparams.boxes_flow)*(obj.y1))
450 return
451
452
453## LTLayoutContainer

Callers

nothing calls this directly

Calls 2

csortFunction · 0.90
analyzeMethod · 0.45

Tested by

no test coverage detected