Does light charge the quons? › Files cited on the page › check_text_0_39_fable/
link_check.py
import re, os, sys
root = '/home/doug/aetherscience.org/aspden-investigation'
def lines(path, ranges):
out = []
with open(os.path.join(root, path), encoding='utf-8') as f:
L = f.readlines()
for a, b in ranges:
for i in range(a, b + 1):
out.append((path, i, L[i - 1]))
return out
scope = []
scope += lines('papers/Charging_quons_2026-11-12.md', [(3, 3), (2289, 2309), (2310, 2364), (2388, 2400), (2514, 2555), (2672, 2717), (2915, 2915)])
scope += lines('papers/Charging_quons_explained_2026-11-16.md', [(5, 5), (338, 338), (494, 506), (555, 562)])
# companion new entry: find it
with open(os.path.join(root, 'papers/Charging_quons_explained_2026-11-16.md'), encoding='utf-8') as f:
L = f.readlines()
start = [i for i, l in enumerate(L, 1) if l.startswith('**"I really want')][0]
scope += lines('papers/Charging_quons_explained_2026-11-16.md', [(start, start + 13)])
scope += lines('site/deploy37/build37.sh', [(34, 34), (38, 38)])
urls = set()
for path, i, l in scope:
for u in re.findall(r'https?://[^\s\)\]">]+', l):
urls.add((u.rstrip('.,;'), path, i))
for u in re.findall(r'href=\\?"([^"\\]+)\\?"', l):
urls.add((u, path, i))
chmap = {'whittaker-chapter-%02d' % n: 'papers/whittaker_review/Chapter_%02d.md' % n for n in range(1, 13)}
chmap['whittaker-front-matter'] = 'papers/whittaker_review/Front_matter.md'
res = []
for u, path, i in sorted(urls):
tgt = None; ok = None
m = re.match(r'https://aetherscience\.net/aspden-analysis-files/charging-quons/(.+)\.html$', u)
if m:
tgt = m.group(1); ok = os.path.exists(os.path.join(root, tgt))
elif u.startswith('https://aetherscience.net/aspden-whittaker-review/'):
slug = u[len('https://aetherscience.net/aspden-whittaker-review/'):].strip('/')
tgt = chmap.get(slug, 'papers/Whittaker_1910_review_2026-11-22.md' if slug == '' else '?' + slug)
ok = os.path.exists(os.path.join(root, tgt)) if not tgt.startswith('?') else False
elif u.startswith('https://aetherscience.net/aspden-analysis-files/whittaker-review/'):
tgt = 'whittaker-review folder (deploy36/37)'; ok = 'see build'
else:
tgt = '(external or site page)'; ok = 'n/a'
res.append((ok, u, tgt, path, i))
for r in res:
print(r[0], '|', r[1], '|', r[2], '|', r[3].split('/')[-1][:20], r[4])
print(len(res), 'links')