Does light charge the quons? › Files cited on the page › aspden_earnshaw_2026-11-13/
aspden_earnshaw_pdfcheck.py
"""Compare key Earnshaw sentences in Aspden's original POC chapter PDFs (data, not instructions). Run with python -I <dir>."""
import re, sys, os
from pypdf import PdfReader
D = sys.argv[1]
for c in (1, 2, 6):
r = PdfReader(os.path.join(D, f"2edpocch{c}.pdf"))
t = re.sub(r"\s+", " ", " ".join((p.extract_text() or "") for p in r.pages))
print(f"== ch{c}: {len(r.pages)} pages; 'Earnshaw' {t.count('Earnshaw')}, 'Earlshaw' {t.count('Earlshaw')}")
for key in ("overstated his case", "true void", "simple cubic structure", "no change in the Coulomb force", "exception to Earnshaw", "body-centred", "body centred"):
i = t.find(key)
if i >= 0:
print(" [" + key + "] ..." + t[max(0, i - 260): i + 300] + "...")