docpluck 2.4.153__tar.gz → 2.4.161__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docpluck-2.4.153 → docpluck-2.4.161}/.gitignore +165 -165
- {docpluck-2.4.153 → docpluck-2.4.161}/LICENSE +21 -21
- {docpluck-2.4.153 → docpluck-2.4.161}/PKG-INFO +14 -6
- {docpluck-2.4.153 → docpluck-2.4.161}/README.md +13 -5
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/__init__.py +194 -163
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/__main__.py +3 -3
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/batch.py +433 -431
- docpluck-2.4.161/docpluck/body.py +314 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract.py +124 -6
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_columns.py +422 -11
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_docx.py +9 -3
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_docx_structured.py +10 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_html.py +10 -3
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_structured.py +5192 -4231
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/glyph_names.py +323 -323
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/normalize.py +10292 -8697
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/quality.py +41 -0
- docpluck-2.4.161/docpluck/references/__init__.py +217 -0
- docpluck-2.4.161/docpluck/references/link.py +345 -0
- docpluck-2.4.161/docpluck/references/parse.py +478 -0
- docpluck-2.4.161/docpluck/references/split.py +481 -0
- docpluck-2.4.161/docpluck/references/types.py +101 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/render.py +8378 -7473
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/resources.py +72 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/__init__.py +281 -234
- docpluck-2.4.161/docpluck/sections/_offsets.py +155 -0
- docpluck-2.4.161/docpluck/sections/_reference_entries.py +84 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/annotators/text.py +135 -2
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/core.py +679 -657
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/taxonomy.py +11 -2
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/__init__.py +33 -4
- docpluck-2.4.161/docpluck/tables/bottom_extend.py +245 -0
- docpluck-2.4.161/docpluck/tables/camelot_cell_join.py +364 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/camelot_extract.py +240 -52
- docpluck-2.4.161/docpluck/tables/camelot_row_ties.py +278 -0
- docpluck-2.4.161/docpluck/tables/caption_rows.py +184 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/captions.py +58 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/cell_cleaning.py +601 -21
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/cell_geometry.py +7 -1
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/column_split.py +8 -6
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/detect.py +529 -1
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/docx_tables.py +0 -1
- docpluck-2.4.161/docpluck/tables/dropped_glyphs.py +197 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/flatten.py +1513 -91
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/whitespace.py +95 -4
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/telemetry.py +22 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tempfiles.py +103 -103
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/version.py +568 -498
- {docpluck-2.4.153 → docpluck-2.4.161}/pyproject.toml +126 -126
- docpluck-2.4.153/docpluck/sections/_offsets.py +0 -65
- docpluck-2.4.153/docpluck/tables/confidence.py +0 -82
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/cli.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/extract_layout.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/figures/__init__.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/glyph_evidence.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/annotators/__init__.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/annotators/docx.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/annotators/html.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/annotators/pdf.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/blocks.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/boundaries.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/sections/types.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/symbols.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/arm_spans.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/bbox_utils.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/cluster.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/notes.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/render.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/tables/rotated.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/testing/__init__.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/testing/_root.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/testing/corpus.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/testing/corpus_manifest.py +0 -0
- {docpluck-2.4.153 → docpluck-2.4.161}/docpluck/testing/regenerate.py +0 -0
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
__pycache__/
|
|
2
|
-
*.py[cod]
|
|
3
|
-
*.egg-info/
|
|
4
|
-
dist/
|
|
5
|
-
build/
|
|
6
|
-
.venv/
|
|
7
|
-
venv/
|
|
8
|
-
.pytest_cache/
|
|
9
|
-
*.egg
|
|
10
|
-
|
|
11
|
-
# =====================================================================
|
|
12
|
-
# THIS IS A PUBLIC REPO (github.com/giladfeldman/docpluck, MIT).
|
|
13
|
-
#
|
|
14
|
-
# Only the docpluck LIBRARY and its PUBLIC documentation belong here.
|
|
15
|
-
# Internal working material — session logs, cross-project correspondence,
|
|
16
|
-
# agent/skill definitions, backlogs, plans, specs — must NEVER be
|
|
17
|
-
# committed. It leaks local filesystem paths, private-repo internals,
|
|
18
|
-
# unreleased plans, and other projects' architecture to the whole world.
|
|
19
|
-
#
|
|
20
|
-
# Purged from the full history on 2026-08-06 (259 files). Do not
|
|
21
|
-
# re-introduce. See LESSONS.md L-006 and /docpluck-cleanup check 0.
|
|
22
|
-
#
|
|
23
|
-
# The PUBLIC doc surface is exactly:
|
|
24
|
-
# README.md CITATION.cff CONTRIBUTING.md docs/README.md docs/NORMALIZATION.md
|
|
25
|
-
# docs/DESIGN.md docs/BENCHMARKS*.md CHANGELOG.md LICENSE
|
|
26
|
-
# Anything else under docs/ is internal by default.
|
|
27
|
-
# =====================================================================
|
|
28
|
-
|
|
29
|
-
# --- Agent / skill working directories (never public) ---
|
|
30
|
-
.claude/
|
|
31
|
-
.worktrees/
|
|
32
|
-
.codex/
|
|
33
|
-
.cursor/
|
|
34
|
-
|
|
35
|
-
# --- Internal session logs, plans, specs, backlogs ---
|
|
36
|
-
docs/superpowers/
|
|
37
|
-
docs/HANDOFF_*
|
|
38
|
-
docs/FINDINGS_*
|
|
39
|
-
docs/TRIAGE_*
|
|
40
|
-
docs/PROMPTS_*
|
|
41
|
-
docs/ITERATION_*
|
|
42
|
-
docs/LIBRARY_*
|
|
43
|
-
HANDOFF_*
|
|
44
|
-
HANDOVER_*
|
|
45
|
-
FINDINGS_*
|
|
46
|
-
TRIAGE_*
|
|
47
|
-
TODO.md
|
|
48
|
-
todo.md
|
|
49
|
-
TODO-archive.md
|
|
50
|
-
|
|
51
|
-
# --- Local convenience launcher (never public) ---
|
|
52
|
-
# `start_app.bat` is a local shim that starts the application which wraps this
|
|
53
|
-
# library. It assumes one machine's directory layout and names a repository that
|
|
54
|
-
# is not public, so it must not reach the public remote. Added 2026-09-17 with
|
|
55
|
-
# the file itself.
|
|
56
|
-
start_app.bat
|
|
57
|
-
|
|
58
|
-
# --- communications/ : the ONE home for all correspondence and handoffs ---
|
|
59
|
-
# 2026-09-17, user directive: every correspondence document -- anything addressed
|
|
60
|
-
# to another reader rather than to the library's users -- lives under
|
|
61
|
-
# `communications/` and NOWHERE ELSE: not the repo root, not `docs/`.
|
|
62
|
-
#
|
|
63
|
-
# This rule is a DIRECTORY, deliberately, because every previous leak in this
|
|
64
|
-
# file came from a prefix nobody had imagined yet (INBOX_ in 2026-08-07,
|
|
65
|
-
# REGISTER/INVENTORY in 2026-08-20). A directory rule does not care what the
|
|
66
|
-
# file is called, so a new naming convention cannot walk past it.
|
|
67
|
-
communications/
|
|
68
|
-
|
|
69
|
-
# --- Cross-project / cross-team correspondence (never public) ---
|
|
70
|
-
# Requests to and replies from the sibling repositories this library is
|
|
71
|
-
# developed alongside, not all of which are public. These files quote
|
|
72
|
-
# internal cross-team coordination and must never be committed here.
|
|
73
|
-
REQUEST_*
|
|
74
|
-
REQUESTS_*
|
|
75
|
-
REPLY_*
|
|
76
|
-
REPLIES_*
|
|
77
|
-
CUSTOMER_UPDATE_*
|
|
78
|
-
# 2026-08-07: INBOX_*/OUTBOX_* were MISSING from this block, and
|
|
79
|
-
# an INBOX_* correspondence file was committed to this public repo across
|
|
80
|
-
# two (fortunately unpushed) commits before it was caught. A denylist of
|
|
81
|
-
# prefixes only covers the naming conventions someone thought of — see
|
|
82
|
-
# LESSONS.md L-011 and the allowlist gate in /docpluck-cleanup Section 0,
|
|
83
|
-
# which is the actual guard. These entries are the belt, not the braces.
|
|
84
|
-
INBOX_*
|
|
85
|
-
OUTBOX_*
|
|
86
|
-
|
|
87
|
-
# --- Internal working registers and audits (added 2026-08-20) ---
|
|
88
|
-
# 2026-08-20: `docs/OVERHAUL_REGISTER.md` (94 KB) and
|
|
89
|
-
# `docs/INVENTORY_2026-08-14_notation_vs_repair.md` reached the PUBLIC remote
|
|
90
|
-
# and sat there for a day. They are internal working documents — they quote the
|
|
91
|
-
# owner's instructions verbatim, cite internal HANDOFF_/FINDINGS_/OUTBOX_ files,
|
|
92
|
-
# and name other private projects. They slipped through because REGISTER and
|
|
93
|
-
# INVENTORY were naming conventions NOBODY HAD THOUGHT OF YET, which is the
|
|
94
|
-
# same failure as INBOX_/OUTBOX_ above and the same failure as 2026-08-06.
|
|
95
|
-
#
|
|
96
|
-
# Adding these prefixes does not fix the class. A denylist can only ever cover
|
|
97
|
-
# the names already imagined. The ACTUAL guard is now
|
|
98
|
-
# `tests/test_public_repo_hygiene.py::test_every_tracked_file_is_on_the_public_allowlist`,
|
|
99
|
-
# which inverts the question — it asks what is ALLOWED to be public and fails on
|
|
100
|
-
# anything else, whatever it is called, on every `pytest` run.
|
|
101
|
-
INVENTORY_*
|
|
102
|
-
docs/INVENTORY_*
|
|
103
|
-
*_REGISTER.md
|
|
104
|
-
REGISTER_*
|
|
105
|
-
docs/REGISTER_*
|
|
106
|
-
AUDIT_*
|
|
107
|
-
docs/AUDIT_*
|
|
108
|
-
POSTMORTEM_*
|
|
109
|
-
RETRO_*
|
|
110
|
-
WORKLOG_*
|
|
111
|
-
PUNCHLIST_*
|
|
112
|
-
BACKLOG_*
|
|
113
|
-
CONSULT_*
|
|
114
|
-
SESSION_*
|
|
115
|
-
|
|
116
|
-
# --- Private benchmark suite (real-corpus results + hardcoded local paths) ---
|
|
117
|
-
benchmarks/
|
|
118
|
-
|
|
119
|
-
# --- Archive of internal design specs and cross-team handoff drafts ---
|
|
120
|
-
archive/
|
|
121
|
-
|
|
122
|
-
# PDFs are never committed to this public MIT repo. Test fixtures use the
|
|
123
|
-
# manifest-with-skip pattern via tests/conftest.py and tests/fixtures/structured/MANIFEST.json
|
|
124
|
-
# referencing PDFs in the local article repository ($ARTICLE_REPOSITORY; no
|
|
125
|
-
# default location).
|
|
126
|
-
*.pdf
|
|
127
|
-
|
|
128
|
-
# Verifier-output artifacts from scripts/verify_corpus.py + ad-hoc test
|
|
129
|
-
# captures. Useful locally during iteration but not committed.
|
|
130
|
-
verify_*.txt
|
|
131
|
-
verify_*.err
|
|
132
|
-
verify_*.log
|
|
133
|
-
pytest_run.txt
|
|
134
|
-
pytest_err.txt
|
|
135
|
-
tmp/
|
|
136
|
-
# Ad-hoc one-shot diagnostic scripts dropped at the repo root during
|
|
137
|
-
# iteration (worktree-aware verify runners, scratch reproducers, etc.).
|
|
138
|
-
tmp_*.py
|
|
139
|
-
|
|
140
|
-
# Verification harness outputs (scripts/harness) — extraction artifacts, not committed.
|
|
141
|
-
verify_out/
|
|
142
|
-
|
|
143
|
-
# NOTE: the whole of .claude/ is ignored above (public-repo rule), which
|
|
144
|
-
# covers the project skills, canary.json, and the machine-local
|
|
145
|
-
# canary-findings-ledger.json written by canary-audit.sh. Those files
|
|
146
|
-
# still live on disk and the skills still run — they are simply never
|
|
147
|
-
# committed to this public repo.
|
|
148
|
-
|
|
149
|
-
# --- Harness document sources (machine-local; PUBLIC repo) ---
|
|
150
|
-
# The non-corpus documents live inside PRIVATE sibling repos. Their directory
|
|
151
|
-
# layout is not this repo's to publish, so `scripts/harness/corpus.py` reads it
|
|
152
|
-
# from here (or DOCPLUCK_HARNESS_SOURCES) instead of carrying literal paths.
|
|
153
|
-
# Written once per machine; never committed.
|
|
154
|
-
scripts/harness/sources.local.json
|
|
155
|
-
|
|
156
|
-
# --- Machine-local corpora in PRIVATE sibling repos (PUBLIC repo) ---
|
|
157
|
-
# Layout of private siblings is not this repo's to publish; see
|
|
158
|
-
# tests/conftest.py::local_corpus. Written once per machine, never committed.
|
|
159
|
-
tests/corpora.local.json
|
|
160
|
-
|
|
161
|
-
# --- The owner's AI-instruction and incident files: LOCAL ONLY ---
|
|
162
|
-
# Untracked 2026-09-27 by owner decision (public-repo cleanup). They stay on
|
|
163
|
-
# disk, where the project skills read them; they are no longer published.
|
|
164
|
-
/CLAUDE.md
|
|
165
|
-
/LESSONS.md
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
dist/
|
|
5
|
+
build/
|
|
6
|
+
.venv/
|
|
7
|
+
venv/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
*.egg
|
|
10
|
+
|
|
11
|
+
# =====================================================================
|
|
12
|
+
# THIS IS A PUBLIC REPO (github.com/giladfeldman/docpluck, MIT).
|
|
13
|
+
#
|
|
14
|
+
# Only the docpluck LIBRARY and its PUBLIC documentation belong here.
|
|
15
|
+
# Internal working material — session logs, cross-project correspondence,
|
|
16
|
+
# agent/skill definitions, backlogs, plans, specs — must NEVER be
|
|
17
|
+
# committed. It leaks local filesystem paths, private-repo internals,
|
|
18
|
+
# unreleased plans, and other projects' architecture to the whole world.
|
|
19
|
+
#
|
|
20
|
+
# Purged from the full history on 2026-08-06 (259 files). Do not
|
|
21
|
+
# re-introduce. See LESSONS.md L-006 and /docpluck-cleanup check 0.
|
|
22
|
+
#
|
|
23
|
+
# The PUBLIC doc surface is exactly:
|
|
24
|
+
# README.md CITATION.cff CONTRIBUTING.md docs/README.md docs/NORMALIZATION.md
|
|
25
|
+
# docs/DESIGN.md docs/BENCHMARKS*.md CHANGELOG.md LICENSE
|
|
26
|
+
# Anything else under docs/ is internal by default.
|
|
27
|
+
# =====================================================================
|
|
28
|
+
|
|
29
|
+
# --- Agent / skill working directories (never public) ---
|
|
30
|
+
.claude/
|
|
31
|
+
.worktrees/
|
|
32
|
+
.codex/
|
|
33
|
+
.cursor/
|
|
34
|
+
|
|
35
|
+
# --- Internal session logs, plans, specs, backlogs ---
|
|
36
|
+
docs/superpowers/
|
|
37
|
+
docs/HANDOFF_*
|
|
38
|
+
docs/FINDINGS_*
|
|
39
|
+
docs/TRIAGE_*
|
|
40
|
+
docs/PROMPTS_*
|
|
41
|
+
docs/ITERATION_*
|
|
42
|
+
docs/LIBRARY_*
|
|
43
|
+
HANDOFF_*
|
|
44
|
+
HANDOVER_*
|
|
45
|
+
FINDINGS_*
|
|
46
|
+
TRIAGE_*
|
|
47
|
+
TODO.md
|
|
48
|
+
todo.md
|
|
49
|
+
TODO-archive.md
|
|
50
|
+
|
|
51
|
+
# --- Local convenience launcher (never public) ---
|
|
52
|
+
# `start_app.bat` is a local shim that starts the application which wraps this
|
|
53
|
+
# library. It assumes one machine's directory layout and names a repository that
|
|
54
|
+
# is not public, so it must not reach the public remote. Added 2026-09-17 with
|
|
55
|
+
# the file itself.
|
|
56
|
+
start_app.bat
|
|
57
|
+
|
|
58
|
+
# --- communications/ : the ONE home for all correspondence and handoffs ---
|
|
59
|
+
# 2026-09-17, user directive: every correspondence document -- anything addressed
|
|
60
|
+
# to another reader rather than to the library's users -- lives under
|
|
61
|
+
# `communications/` and NOWHERE ELSE: not the repo root, not `docs/`.
|
|
62
|
+
#
|
|
63
|
+
# This rule is a DIRECTORY, deliberately, because every previous leak in this
|
|
64
|
+
# file came from a prefix nobody had imagined yet (INBOX_ in 2026-08-07,
|
|
65
|
+
# REGISTER/INVENTORY in 2026-08-20). A directory rule does not care what the
|
|
66
|
+
# file is called, so a new naming convention cannot walk past it.
|
|
67
|
+
communications/
|
|
68
|
+
|
|
69
|
+
# --- Cross-project / cross-team correspondence (never public) ---
|
|
70
|
+
# Requests to and replies from the sibling repositories this library is
|
|
71
|
+
# developed alongside, not all of which are public. These files quote
|
|
72
|
+
# internal cross-team coordination and must never be committed here.
|
|
73
|
+
REQUEST_*
|
|
74
|
+
REQUESTS_*
|
|
75
|
+
REPLY_*
|
|
76
|
+
REPLIES_*
|
|
77
|
+
CUSTOMER_UPDATE_*
|
|
78
|
+
# 2026-08-07: INBOX_*/OUTBOX_* were MISSING from this block, and
|
|
79
|
+
# an INBOX_* correspondence file was committed to this public repo across
|
|
80
|
+
# two (fortunately unpushed) commits before it was caught. A denylist of
|
|
81
|
+
# prefixes only covers the naming conventions someone thought of — see
|
|
82
|
+
# LESSONS.md L-011 and the allowlist gate in /docpluck-cleanup Section 0,
|
|
83
|
+
# which is the actual guard. These entries are the belt, not the braces.
|
|
84
|
+
INBOX_*
|
|
85
|
+
OUTBOX_*
|
|
86
|
+
|
|
87
|
+
# --- Internal working registers and audits (added 2026-08-20) ---
|
|
88
|
+
# 2026-08-20: `docs/OVERHAUL_REGISTER.md` (94 KB) and
|
|
89
|
+
# `docs/INVENTORY_2026-08-14_notation_vs_repair.md` reached the PUBLIC remote
|
|
90
|
+
# and sat there for a day. They are internal working documents — they quote the
|
|
91
|
+
# owner's instructions verbatim, cite internal HANDOFF_/FINDINGS_/OUTBOX_ files,
|
|
92
|
+
# and name other private projects. They slipped through because REGISTER and
|
|
93
|
+
# INVENTORY were naming conventions NOBODY HAD THOUGHT OF YET, which is the
|
|
94
|
+
# same failure as INBOX_/OUTBOX_ above and the same failure as 2026-08-06.
|
|
95
|
+
#
|
|
96
|
+
# Adding these prefixes does not fix the class. A denylist can only ever cover
|
|
97
|
+
# the names already imagined. The ACTUAL guard is now
|
|
98
|
+
# `tests/test_public_repo_hygiene.py::test_every_tracked_file_is_on_the_public_allowlist`,
|
|
99
|
+
# which inverts the question — it asks what is ALLOWED to be public and fails on
|
|
100
|
+
# anything else, whatever it is called, on every `pytest` run.
|
|
101
|
+
INVENTORY_*
|
|
102
|
+
docs/INVENTORY_*
|
|
103
|
+
*_REGISTER.md
|
|
104
|
+
REGISTER_*
|
|
105
|
+
docs/REGISTER_*
|
|
106
|
+
AUDIT_*
|
|
107
|
+
docs/AUDIT_*
|
|
108
|
+
POSTMORTEM_*
|
|
109
|
+
RETRO_*
|
|
110
|
+
WORKLOG_*
|
|
111
|
+
PUNCHLIST_*
|
|
112
|
+
BACKLOG_*
|
|
113
|
+
CONSULT_*
|
|
114
|
+
SESSION_*
|
|
115
|
+
|
|
116
|
+
# --- Private benchmark suite (real-corpus results + hardcoded local paths) ---
|
|
117
|
+
benchmarks/
|
|
118
|
+
|
|
119
|
+
# --- Archive of internal design specs and cross-team handoff drafts ---
|
|
120
|
+
archive/
|
|
121
|
+
|
|
122
|
+
# PDFs are never committed to this public MIT repo. Test fixtures use the
|
|
123
|
+
# manifest-with-skip pattern via tests/conftest.py and tests/fixtures/structured/MANIFEST.json
|
|
124
|
+
# referencing PDFs in the local article repository ($ARTICLE_REPOSITORY; no
|
|
125
|
+
# default location).
|
|
126
|
+
*.pdf
|
|
127
|
+
|
|
128
|
+
# Verifier-output artifacts from scripts/verify_corpus.py + ad-hoc test
|
|
129
|
+
# captures. Useful locally during iteration but not committed.
|
|
130
|
+
verify_*.txt
|
|
131
|
+
verify_*.err
|
|
132
|
+
verify_*.log
|
|
133
|
+
pytest_run.txt
|
|
134
|
+
pytest_err.txt
|
|
135
|
+
tmp/
|
|
136
|
+
# Ad-hoc one-shot diagnostic scripts dropped at the repo root during
|
|
137
|
+
# iteration (worktree-aware verify runners, scratch reproducers, etc.).
|
|
138
|
+
tmp_*.py
|
|
139
|
+
|
|
140
|
+
# Verification harness outputs (scripts/harness) — extraction artifacts, not committed.
|
|
141
|
+
verify_out/
|
|
142
|
+
|
|
143
|
+
# NOTE: the whole of .claude/ is ignored above (public-repo rule), which
|
|
144
|
+
# covers the project skills, canary.json, and the machine-local
|
|
145
|
+
# canary-findings-ledger.json written by canary-audit.sh. Those files
|
|
146
|
+
# still live on disk and the skills still run — they are simply never
|
|
147
|
+
# committed to this public repo.
|
|
148
|
+
|
|
149
|
+
# --- Harness document sources (machine-local; PUBLIC repo) ---
|
|
150
|
+
# The non-corpus documents live inside PRIVATE sibling repos. Their directory
|
|
151
|
+
# layout is not this repo's to publish, so `scripts/harness/corpus.py` reads it
|
|
152
|
+
# from here (or DOCPLUCK_HARNESS_SOURCES) instead of carrying literal paths.
|
|
153
|
+
# Written once per machine; never committed.
|
|
154
|
+
scripts/harness/sources.local.json
|
|
155
|
+
|
|
156
|
+
# --- Machine-local corpora in PRIVATE sibling repos (PUBLIC repo) ---
|
|
157
|
+
# Layout of private siblings is not this repo's to publish; see
|
|
158
|
+
# tests/conftest.py::local_corpus. Written once per machine, never committed.
|
|
159
|
+
tests/corpora.local.json
|
|
160
|
+
|
|
161
|
+
# --- The owner's AI-instruction and incident files: LOCAL ONLY ---
|
|
162
|
+
# Untracked 2026-09-27 by owner decision (public-repo cleanup). They stay on
|
|
163
|
+
# disk, where the project skills read them; they are no longer published.
|
|
164
|
+
/CLAUDE.md
|
|
165
|
+
/LESSONS.md
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Gilad Feldman
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Gilad Feldman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: docpluck
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.161
|
|
4
4
|
Summary: PDF, DOCX, and HTML text extraction and normalization for academic papers
|
|
5
5
|
Project-URL: Homepage, https://docpluck.app
|
|
6
6
|
Project-URL: Documentation, https://docpluck.app/api-docs
|
|
@@ -126,7 +126,7 @@ Requires Python 3.10 or newer.
|
|
|
126
126
|
pip install "docpluck[all] @ git+https://github.com/giladfeldman/docpluck.git"
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
To pin a release, append its tag: `...docpluck.git@v2.4.
|
|
129
|
+
To pin a release, append its tag: `...docpluck.git@v2.4.161`. The package is also on PyPI
|
|
130
130
|
(`pip install docpluck`); the GitHub tags are the release of record and PyPI can trail them,
|
|
131
131
|
so check `pip index versions docpluck` if you need a specific version from PyPI.
|
|
132
132
|
|
|
@@ -274,6 +274,14 @@ of interest, data availability, author contributions), references, appendix, sup
|
|
|
274
274
|
material and footnotes. `SECTIONING_VERSION` versions the algorithm; `sectioning_text_id`
|
|
275
275
|
fingerprints the text buffer the offsets index into.
|
|
276
276
|
|
|
277
|
+
### Body text without the bibliography
|
|
278
|
+
|
|
279
|
+
`extract_pdf_body(pdf_bytes)` returns `(body, report)`: the layout-aware normalized text with
|
|
280
|
+
the reference list removed (headed, German `Literatur`, or an unheaded numbered list), and
|
|
281
|
+
`body_scope_text(text)` does the same cut on text you already have. A references section ends
|
|
282
|
+
where its entry-shaped lines end, so body text placed after the bibliography is kept.
|
|
283
|
+
`report.removed` lists every span taken out. Nothing else changes.
|
|
284
|
+
|
|
277
285
|
### Tables and figures
|
|
278
286
|
|
|
279
287
|
`extract_pdf_structured(pdf_bytes, *, thorough=False, table_text_mode="raw")` and
|
|
@@ -296,7 +304,7 @@ fingerprints the text buffer the offsets index into.
|
|
|
296
304
|
|
|
297
305
|
`flatten_tables_for_paper(tables)` (or `flatten_table(table)` for one) turns each body row of
|
|
298
306
|
each table into a `FlattenedRow`: its table, page, row label, header, cells, an English sentence
|
|
299
|
-
(`"Importance: t(741) = 3.93, p < .001, d = 0.29"`) and parsed `fields`. A confidence interval is stated at the level the table prints (`90% CI`, `95% CrI`; a bare `CI` when none is stated), and `fields["CI_level"]` carries that level when present. This is the input
|
|
307
|
+
(`"Importance: t(741) = 3.93, p < .001, d = 0.29"`) and parsed `fields`. A confidence interval is stated at the level the table prints (`90% CI`, `95% CrI`; a bare `CI` when none is stated), and `fields["CI_level"]` carries that level when present, with `fields["CI_kind"]` (`CI`, `CrI` or `HDI`); `fields["p_text"]` carries the p-value exactly as printed (`".050"` beside `p` = 0.05), and `fields_raw` carries every typed number as printed, keyed like `fields` (`fields_raw["t"]` = `"-1.40"`); descriptive cells (`M (SD)`, `b (SE)`, `n (%)`) are typed as `M`/`SD`, `est`/`SE` or `count`/`pct` only when the table states what the parentheses hold, one record per arm column with its `group`; a printed inequality on any other statistic travels as `<key>_op` (`fields["eta2_op"]` = `"<"` for `< 0.001`). This is the input
|
|
300
308
|
format for downstream statistics checkers; the CLI writes it as JSON Lines with
|
|
301
309
|
`render --tables-jsonl`. `render_flattened_inline(rows, table_id=...)` renders rows back as a
|
|
302
310
|
Markdown block.
|
|
@@ -365,13 +373,13 @@ Options for `render`:
|
|
|
365
373
|
## Configuration
|
|
366
374
|
|
|
367
375
|
docpluck reads no configuration files. These environment variables change behaviour; all
|
|
368
|
-
default to off
|
|
376
|
+
default to off except `DOCPLUCK_COLUMN_CORRECT_GENERAL`, which is on unless set to `0`.
|
|
369
377
|
|
|
370
378
|
| variable | effect when set to `1` |
|
|
371
379
|
|---|---|
|
|
372
380
|
| `DOCPLUCK_FALLBACK_LOG` | print every fallback event to standard error as it happens |
|
|
373
381
|
| `DOCPLUCK_DISABLE_CAMELOT` | skip Camelot; tables then come only from the non-Camelot paths |
|
|
374
|
-
| `DOCPLUCK_COLUMN_CORRECT_GENERAL` |
|
|
382
|
+
| `DOCPLUCK_COLUMN_CORRECT_GENERAL` | on by default; `0` turns it off. Re-orders a two-column page that pdftotext interleaved, left column then right, only when the page has a clean central gutter and every word survives. A full-width table above or below the columns is read in place; a page that is a table across the gutter, or two-column blocks stacked apart or in different type, keeps its order |
|
|
375
383
|
| `DOCPLUCK_COLUMN_CORRECT_BANDED` | experimental: per-band re-extraction for mixed-layout pages the whole-page corrector skips |
|
|
376
384
|
| `DOCPLUCK_RCT_L2_BYPASS` | diagnostic only: disables two table-region guards, for measuring their effect |
|
|
377
385
|
|
|
@@ -423,7 +431,7 @@ default to off.
|
|
|
423
431
|
If you use docpluck in research, cite the version you used (from `get_version_info()`):
|
|
424
432
|
|
|
425
433
|
> Feldman, G. (2026). *docpluck: Text and statistic extraction from academic papers*
|
|
426
|
-
> (Version 2.4.
|
|
434
|
+
> (Version 2.4.161) [Computer software]. https://github.com/giladfeldman/docpluck
|
|
427
435
|
|
|
428
436
|
Machine-readable metadata is in [CITATION.cff](CITATION.cff); GitHub's "Cite this repository"
|
|
429
437
|
button reads it.
|
|
@@ -75,7 +75,7 @@ Requires Python 3.10 or newer.
|
|
|
75
75
|
pip install "docpluck[all] @ git+https://github.com/giladfeldman/docpluck.git"
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
To pin a release, append its tag: `...docpluck.git@v2.4.
|
|
78
|
+
To pin a release, append its tag: `...docpluck.git@v2.4.161`. The package is also on PyPI
|
|
79
79
|
(`pip install docpluck`); the GitHub tags are the release of record and PyPI can trail them,
|
|
80
80
|
so check `pip index versions docpluck` if you need a specific version from PyPI.
|
|
81
81
|
|
|
@@ -223,6 +223,14 @@ of interest, data availability, author contributions), references, appendix, sup
|
|
|
223
223
|
material and footnotes. `SECTIONING_VERSION` versions the algorithm; `sectioning_text_id`
|
|
224
224
|
fingerprints the text buffer the offsets index into.
|
|
225
225
|
|
|
226
|
+
### Body text without the bibliography
|
|
227
|
+
|
|
228
|
+
`extract_pdf_body(pdf_bytes)` returns `(body, report)`: the layout-aware normalized text with
|
|
229
|
+
the reference list removed (headed, German `Literatur`, or an unheaded numbered list), and
|
|
230
|
+
`body_scope_text(text)` does the same cut on text you already have. A references section ends
|
|
231
|
+
where its entry-shaped lines end, so body text placed after the bibliography is kept.
|
|
232
|
+
`report.removed` lists every span taken out. Nothing else changes.
|
|
233
|
+
|
|
226
234
|
### Tables and figures
|
|
227
235
|
|
|
228
236
|
`extract_pdf_structured(pdf_bytes, *, thorough=False, table_text_mode="raw")` and
|
|
@@ -245,7 +253,7 @@ fingerprints the text buffer the offsets index into.
|
|
|
245
253
|
|
|
246
254
|
`flatten_tables_for_paper(tables)` (or `flatten_table(table)` for one) turns each body row of
|
|
247
255
|
each table into a `FlattenedRow`: its table, page, row label, header, cells, an English sentence
|
|
248
|
-
(`"Importance: t(741) = 3.93, p < .001, d = 0.29"`) and parsed `fields`. A confidence interval is stated at the level the table prints (`90% CI`, `95% CrI`; a bare `CI` when none is stated), and `fields["CI_level"]` carries that level when present. This is the input
|
|
256
|
+
(`"Importance: t(741) = 3.93, p < .001, d = 0.29"`) and parsed `fields`. A confidence interval is stated at the level the table prints (`90% CI`, `95% CrI`; a bare `CI` when none is stated), and `fields["CI_level"]` carries that level when present, with `fields["CI_kind"]` (`CI`, `CrI` or `HDI`); `fields["p_text"]` carries the p-value exactly as printed (`".050"` beside `p` = 0.05), and `fields_raw` carries every typed number as printed, keyed like `fields` (`fields_raw["t"]` = `"-1.40"`); descriptive cells (`M (SD)`, `b (SE)`, `n (%)`) are typed as `M`/`SD`, `est`/`SE` or `count`/`pct` only when the table states what the parentheses hold, one record per arm column with its `group`; a printed inequality on any other statistic travels as `<key>_op` (`fields["eta2_op"]` = `"<"` for `< 0.001`). This is the input
|
|
249
257
|
format for downstream statistics checkers; the CLI writes it as JSON Lines with
|
|
250
258
|
`render --tables-jsonl`. `render_flattened_inline(rows, table_id=...)` renders rows back as a
|
|
251
259
|
Markdown block.
|
|
@@ -314,13 +322,13 @@ Options for `render`:
|
|
|
314
322
|
## Configuration
|
|
315
323
|
|
|
316
324
|
docpluck reads no configuration files. These environment variables change behaviour; all
|
|
317
|
-
default to off
|
|
325
|
+
default to off except `DOCPLUCK_COLUMN_CORRECT_GENERAL`, which is on unless set to `0`.
|
|
318
326
|
|
|
319
327
|
| variable | effect when set to `1` |
|
|
320
328
|
|---|---|
|
|
321
329
|
| `DOCPLUCK_FALLBACK_LOG` | print every fallback event to standard error as it happens |
|
|
322
330
|
| `DOCPLUCK_DISABLE_CAMELOT` | skip Camelot; tables then come only from the non-Camelot paths |
|
|
323
|
-
| `DOCPLUCK_COLUMN_CORRECT_GENERAL` |
|
|
331
|
+
| `DOCPLUCK_COLUMN_CORRECT_GENERAL` | on by default; `0` turns it off. Re-orders a two-column page that pdftotext interleaved, left column then right, only when the page has a clean central gutter and every word survives. A full-width table above or below the columns is read in place; a page that is a table across the gutter, or two-column blocks stacked apart or in different type, keeps its order |
|
|
324
332
|
| `DOCPLUCK_COLUMN_CORRECT_BANDED` | experimental: per-band re-extraction for mixed-layout pages the whole-page corrector skips |
|
|
325
333
|
| `DOCPLUCK_RCT_L2_BYPASS` | diagnostic only: disables two table-region guards, for measuring their effect |
|
|
326
334
|
|
|
@@ -372,7 +380,7 @@ default to off.
|
|
|
372
380
|
If you use docpluck in research, cite the version you used (from `get_version_info()`):
|
|
373
381
|
|
|
374
382
|
> Feldman, G. (2026). *docpluck: Text and statistic extraction from academic papers*
|
|
375
|
-
> (Version 2.4.
|
|
383
|
+
> (Version 2.4.161) [Computer software]. https://github.com/giladfeldman/docpluck
|
|
376
384
|
|
|
377
385
|
Machine-readable metadata is in [CITATION.cff](CITATION.cff); GitHub's "Cite this repository"
|
|
378
386
|
button reads it.
|