aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/sampledata/UWG/SOURCES
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2026-07-17 07:16:51 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2026-07-17 07:16:51 +0200
commit99511a961d741e2dc06113cf5f24180bfea2b26b (patch)
treee2f122bbb26bef6b69f72baf7901907a1084ed19 /src/main/resources/sampledata/UWG/SOURCES
parent6311227992ba509b5e5e3256504980bf4632742d (diff)
Classify line breaks geometrically via PDFBox coordinates and support list indentation
Replaces the heuristic character-count full-width check with real geometric layout analysis. FontgroessenFilter collects the right-edge X coordinate of the text runs on each page and classifies line endings against the local 90th percentile of page margins (using a 20-line sliding window) into soft, hard, or unclassified breaks. TextBereiniger uses this classification to reflow only soft line wraps (WEICH) and keep deliberate ones (HART or UNBEKANNT). Also aligns quote normalization and GII-XML flattening to indent continuation lines in lists (e.g., hanging definitions in UWG Anhang): - BefehlAnwender.normalisiereZitatText applies to single-unit Neufassung and indents continuation lines deeper (4 spaces) than list items (2 spaces). - ContentFlattener generates the same structure for sibling <LA> elements inside <DD>. This ensures the paragraph parser correctly groups these lines as child lines. Change-Id: I1fd7039d4933a273cc2dc55f958d34b439e2302c
Diffstat (limited to 'src/main/resources/sampledata/UWG/SOURCES')
0 files changed, 0 insertions, 0 deletions