Aziel Eliab · GodLock.AZ · decryption_complete is false. Cap-7 is not an ICANN name. Paid satellite stays HELD. These pages show the archive file. They do not say the manuscript is decrypted.

Voynich Master Archive - Volume 04 - Pages 3001-4000

French Verne control text at the start of the file. Later pages are other control texts, workspace supplements, table previews, and a closing report.

PDF page 500 of 1000. Catalog page range 3001-4000.

First Previous Next Last Plain text of this page PDF at this page

Extracted text

Voynich Complete Reproducibility Compendium - 2026-08-28 Page 3499
archive/local/run_image_scribe_calibration_001.py
SHA-256: 232f1f5a0b68e7a3ac46754d4a394825a470a89968e5d72d3c4041a47f00ac08 | 7,766 bytes | workspace supplement
#!/usr/bin/env python3
"""Image-derived page stroke-style ablation for the ZL/GC anonymous decoder."""
import csv, hashlib, json, math, os, re
from collections import Counter
from pathlib import Path
import fitz
import numpy as np
from PIL import Image
from scipy import ndimage
from sklearn.feature_extraction import DictVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score, balanced_accuracy_score, log_loss
PDF=Path('library_scan/Voynich_Manuscript.pdf');ROOT=Path('crosswalk002_inputs/Voynich_Line_Local_Reproducibility_2026-
08-22/data');OUT=Path('image_scribe_calibration_001');OUT.mkdir(exist_ok=True);SEED=20260828
TOK_RE=re.compile(r'[A-Z][0-9a-z]');LOC_RE=re.compile(r'^<([^>.]+)\.([^,>]+),[^>]*>\s*(.*)$');PAGE_RE=re.compile(r'^<([
^>.]+)>\s*<!([^>]*)>');META_RE=re.compile(r'\$([A-Z])=([^\s>]+)')
BASE=['section','hand','currier','position','source_role','h1','mid_body'];MISSING={12,*range(59,65),74,91,92,97,98,109,
110}
def fold(f):return int(hashlib.sha256(('composition-h2'+f).encode()).hexdigest()[:8],16)%5
def sec(f):
 n=int(re.search(r'\d+',f).group());return 'Herbal' if n<=66 else 'Astro' if n<=73 else 'Bio' if 75<=n<=84 else 
'Pharma' if 87<=n<=102 else 'Recipes' if 103<=n<=116 else 'Other'
def folio_pages():
 sides=[]
 for n in range(1,117):
  if n not in MISSING:sides += [f'f{n}r',f'f{n}v']
 return {f:i+2 for i,f in enumerate(sides)} # zero-based PDF index: p3 => 2
def otsu(a):
 hist=np.bincount(a.ravel(),minlength=256).astype(float);p=hist/hist.sum();w=np.cumsum(p);mu=np.cumsum(p*np.arange(
256));mt=mu[-1];v=(mt*w-mu)**2/(w*(1-w)+1e-12);return int(np.argmax(v))
def image_features():
 doc=fitz.open(PDF);out={};mapping=folio_pages()
 for fol,pageno in mapping.items():
  pix=doc[pageno].get_pixmap(matrix=fitz.Matrix(3,3),colorspace=fitz.csGRAY,alpha=False)
  a=np.frombuffer(pix.samples,dtype=np.uint8).reshape(pix.height,pix.width);h,w=a.shape;a=a[int(.04*h):int(.96*h),int(.
04*w):int(.96*w)]
  t=min(otsu(a),180);ink=a<t
  # Remove very large illustration/edge components; retain pen-scale components.
  lab,n=ndimage.label(ink);sizes=np.bincount(lab.ravel());keep=np.where((sizes>=2)&(sizes<=max(80,int(.0015*a.size))))[
0];keep=keep[keep>0];mask=np.isin(lab,keep)
  gy,gx=np.gradient(a.astype(float));mag=np.hypot(gx,gy);ang=(np.arctan2(gy,gx)+np.pi)%(np.pi);sel=mask&(mag>np.
percentile(mag,70));hist,_=np.histogram(ang[sel],bins=8,range=(0,np.pi),weights=mag[sel]);hist=hist/(hist.sum()+1e-12)
  sl=sizes[keep] if len(keep) else np.array([0]);objs=ndimage.find_objects(lab);widths=[];heights=[]
  for k in keep[:5000]:
   z=objs[k-1]
   if z:heights.append((z[0].stop-z[0].start)/a.shape[0]);widths.append((z[1].stop-z[1].start)/a.shape[1])
  d={'img_ink_density':float(mask.mean()),'img_components_per_kpx':float(len(keep)/(a.size/1000)),'img_darkness':float(
1-a[mask].mean()/255) if mask.any() else 0,'img_h_transition':float(np.mean(mask[:,1:]!=mask[:,:-1])),
'img_v_transition':float(np.mean(mask[1:,:]!=mask[:-1,:]))}
  for i,x in enumerate(hist):d[f'img_orient_{i}']=float(x)
  for q in (.25,.5,.75,.9):d[f'img_area_q{int(q*100)}']=float(np.quantile(sl,q)/a.size);d[f'img_width_q{int(
q*100)}']=float(np.quantile(widths,q) if widths else 0);d[f'img_height_q{int(q*100)}']=float(np.quantile(heights,q) if 
heights else 0)
  out[fol]=d
 return out
def parse(path):
 meta={};pending=None;raw=[]
 for s in path.read_text(errors='ignore').splitlines():
  pm=PAGE_RE.match(s)
  if pm:meta[pm.group(1)]=dict(META_RE.findall(pm.group(2)));continue
  lm=LOC_RE.match(s)
  if lm:
   fol,line,txt=lm.groups();pending=(fol,line,txt)
   if txt.strip():raw.append(pending);pending=None
   continue
  if pending and s and not s.startswith('<') and not s.startswith('#'):
   fol,line,txt=pending;raw.append((fol,line,(txt+' '+s).strip()));pending=None
 out=[]
 for fol,line,txt in raw:
  if not re.match(r'^f\d+[rv]$',fol):continue
  clean=re.sub(r'<[^>]*>','',txt).replace('[','').replace(']','').replace(':','');toks=[]
  for w in re.split(r'[.,\s]+',clean):
   u=TOK_RE.findall(w)
   if len(u)>=3:toks.append(u)
  if toks:out.append((fol,line,toks,meta.get(fol,{})))
 return out
def events(lines,img):
 out=[]
 for fol,line,z,meta in lines:
  if fol not in img:continue
  for i in range(len(z)-2):
   a,b,c=z[i:i+3];ratio=i/max(len(z)-1,1);pos='START' if i==0 else 'LATE' if ratio>=.67 else 'MID' if ratio>=.34 else 
'EARLY';r={'folio':fol,'section':sec(fol),'hand':meta.get('H','?'),'currier':meta.get('L','?'),'position':pos,
'source_role':(z[i-1][-1] if i else 'BOL')+'>'+a[0],'source_body':' '.join(a[1:-1]),'h1':a[-1]+'>'+b[0],'mid_body':' '.
join(b[1:-1]),'h2':b[-1]+'>'+c[0]};r.update(img[fol]);out.append(r)
 return out
img=image_features();imgkeys=sorted(next(iter(img.values())))