Revert "fix: _split_broad_columns nur bei maximal 1 breiter Spalte ausfuehren"
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 25s
CI / test-go-edu-search (push) Successful in 26s
CI / test-python-klausur (push) Failing after 1m57s
CI / test-python-agent-core (push) Successful in 14s
CI / test-nodejs-website (push) Successful in 15s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 25s
CI / test-go-edu-search (push) Successful in 26s
CI / test-python-klausur (push) Failing after 1m57s
CI / test-python-agent-core (push) Successful in 14s
CI / test-nodejs-website (push) Successful in 15s
This reverts commit d98359fceb.
This commit is contained in:
@@ -2097,14 +2097,6 @@ def _split_broad_columns(
|
||||
logger.info(f"SplitBroadCols: input {len(geometries)} cols: "
|
||||
f"{[(g.index, g.x, g.width, g.word_count, round(g.width_ratio, 3)) for g in geometries]}")
|
||||
|
||||
# Count how many broad content columns exist. If there are already 2+,
|
||||
# the layout is likely already correctly split into EN / DE — skip.
|
||||
broad_count = sum(1 for g in geometries
|
||||
if g.width_ratio > _broad_threshold and len(g.words) >= 10)
|
||||
if broad_count >= 2:
|
||||
logger.info(f"SplitBroadCols: {broad_count} broad cols already → skip")
|
||||
return geometries
|
||||
|
||||
for geo in geometries:
|
||||
if geo.width_ratio <= _broad_threshold or len(geo.words) < 10:
|
||||
result.append(geo)
|
||||
|
||||
Reference in New Issue
Block a user