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

Method analyze

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

Source from the content-addressed store, hash-verified

432class LTTextGroupLRTB(LTTextGroup):
433
434 def analyze(self, laparams):
435 LTTextGroup.analyze(self, laparams)
436 # reorder the objects from top-left to bottom-right.
437 self._objs = csort(self._objs, key=lambda obj:
438 (1-laparams.boxes_flow)*(obj.x0) -
439 (1+laparams.boxes_flow)*(obj.y0+obj.y1))
440 return
441
442class LTTextGroupTBRL(LTTextGroup):
443

Callers

nothing calls this directly

Calls 2

csortFunction · 0.90
analyzeMethod · 0.45

Tested by

no test coverage detected