MCPcopy Index your code
hub / github.com/clips/pattern / LTTextGroupLRTB

Class LTTextGroupLRTB

pattern/web/pdf/layout.py:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 return
431
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 1

group_textboxesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…