BRAND-MANUAL.md 收敛识别方案裁定与实测判据;TOKEN-MIGRATION.md 记 P1/P3/P4 迁移面与孪生缺陷; TEST-PATCH.md 记 P7 的 1→0 实测。随包入库的是结论赖以成立的仪器与证据:check-assets、check-manual、 verify-assets-cross、check-wordmark-copies、check-docsync、check-probes(四段闸,每段带能失败的负例)、 check-baseline-shift.cjs(平移感知基线判据,四合成样本两绿两红自测通过;它取代被证伪的 「diff 包围盒不许越页眉带」)与 measured/baseline-shift-p1.json(第一批 104 张逐张分类,带 _src 出处戳)。 大体积工作件不入库:样机 HTML 与栅格截图 100+MB、字体母版 45MB 留在盘上,入库 690 个文本/矢量件。
315 lines
18 KiB
Python
315 lines
18 KiB
Python
#!/usr/bin/env python3
|
||
# -*- coding: utf-8 -*-
|
||
"""
|
||
入围更新 · 六只同条件对比(2026-10-13 第四刀之后)
|
||
|
||
四刀 25 版筛下来,眼睛留下的形只有两类:
|
||
· 已在入围的两只:E1 一相圆、N5 竹简
|
||
· 字源批里活下来的:日(环 + 中心实/点)与 目(两弧夹瞳孔),外加 八
|
||
|
||
本页把六只放进完全相同的条件与同一批真实情境,并排一次。
|
||
同一条件=书法字标 path 原样 + NOVALON 居中锚定(x=102.27, text-anchor=middle)
|
||
+ 符号包络 x 12..96.3 / y 20.93..105 + 朱砂 #C41E3A + viewBox 480×120(4:1)。
|
||
|
||
结论写在页尾,但先看图。
|
||
"""
|
||
import importlib.util
|
||
import os
|
||
|
||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||
|
||
|
||
def load(name, path):
|
||
sp = importlib.util.spec_from_file_location(name, path)
|
||
m = importlib.util.module_from_spec(sp)
|
||
sp.loader.exec_module(m)
|
||
return m
|
||
|
||
|
||
ms = load("ms", os.path.join(HERE, "mark-swap.py"))
|
||
n5 = load("n5", os.path.join(HERE, "n5-refine.py"))
|
||
bf = load("bf", os.path.join(HERE, "brush-family.py"))
|
||
g2 = load("g2", os.path.join(HERE, "glyphs2.py"))
|
||
ri = load("ri", os.path.join(HERE, "ri.py"))
|
||
r2 = load("r2", os.path.join(HERE, "ri2.py"))
|
||
r3 = load("r3", os.path.join(HERE, "ri3.py"))
|
||
|
||
RED, INK, WHITE = n5.RED, n5.INK, n5.WHITE
|
||
BY_ID = {i["id"]: i for i in r2.ITEMS}
|
||
L3, L4, L6 = BY_ID["L3"]["body"], BY_ID["L4"]["body"], BY_ID["L6"]["body"]
|
||
|
||
CANDS = [
|
||
dict(id="E1", nm="一相圆", body=lambda: bf.E1_BODY, col="已在入围",
|
||
lineage="beauty E1 → enso-refine F2(笔势 + 2.8% 偏圆)→ 开口 270°",
|
||
read="一枚提笔未合的圆相。缺口在正上,是「笔提起来」的位置,不是字母 C 的位置。",
|
||
say="包容 / 系统 / 周而复始",
|
||
risk=["读成字母 O 或没画完的圈,需要一次解释",
|
||
"与「技术咨询」的语义连接最弱,靠气质不靠含义",
|
||
"尖尾在 16px 先消失,退化成一枚细环"]),
|
||
dict(id="N5-a", nm="竹简 · 定稿", body=lambda: n5.V1, col="已在入围",
|
||
lineage="marks-b2 N5(4 片 · 缝 6 · 绳区 7 纯空隙)",
|
||
read="四片朱简,一道编绳的空。安静、端正、一看就是「写东西的东西」。",
|
||
say="记录 / 册籍 / 可审计的交付",
|
||
risk=["16px 实测四片并成一块(段数 1)⇒ favicon 必须另出三片版",
|
||
"与通用「列表图标」只差一步,独占性靠比例撑",
|
||
"墨量是书法块的近 4 倍,深底小尺寸会显得比字重"]),
|
||
dict(id="L3", nm="日 · 椭圆", body=L3, col="第四刀(对照)",
|
||
lineage="glyphs G 批 → glyphs2 H3 → ri K1 → ri2 L3(接缝移到左上、起笔 0.78)",
|
||
read="一个写出来的环,中间一实不接触内壁。单独看成立,放进主标识却输给 E1/N5——"
|
||
"因为它的剪影是光滑凸卵形,而「光滑几何框 + 毛笔字」是本项目否过一次的组合。"
|
||
"留在表里是为了让你亲眼看见剪影造成的差别。",
|
||
say="日=明=睿;「苟日新,日日新,又日新」接 NOVALON 词根 nov-(新)",
|
||
risk=["剪影与书法块不同类,主标识里像贴上去的 UI 符号",
|
||
"环 + 横实在某些语境读成 ⊖ / 禁止符号",
|
||
"字面「日」与日系品牌的联想距离近"]),
|
||
dict(id="M2", nm="日 · 方 n=3.2", body=r3.m2, col="第五刀",
|
||
lineage="ri3.sq(n=3.2):超椭圆中心线 + 同一套笔势扫掠,只改 n 一个参数",
|
||
read="印的形状:角圆而边直。剪影回到与书法块同类的方正,笔画仍是写的不是描的。",
|
||
say="同 L3;多一层「印 / 朱文框」的器物依据",
|
||
risk=["方环比椭圆更靠近「框」,若笔画再细一点就会退回几何框那一侧",
|
||
"左上搭接在方形上比在卵形上更显眼(方环的转角会放大厚度突变)",
|
||
"仍是环加横实,⊖ 的误读风险不变"]),
|
||
dict(id="M3", nm="日 · 方 n=4.0", body=r3.m3, col="第五刀",
|
||
lineage="同上,n=4.0,a/b 各加 1、环身略收",
|
||
read="再方一档,接近方印。六只里与书法块剪影最同类的一只。",
|
||
say="同上,且「印」的依据最强",
|
||
risk=["方到 n=4 开始读成圆角矩形,笔势的存在感下降——这是这条线的上限",
|
||
"红占包络 38.2%,是六只里最重的,深底小尺寸会比字标抢眼",
|
||
"再方就成 E2 偏心方印那一系,等于换题"]),
|
||
dict(id="M4", nm="日 · 方 · 点", body=r3.m4, col="第五刀",
|
||
lineage="M2 的环 + 中心短胖点",
|
||
read="方环里一颗瞳。环方而瞳圆,是这一批里对比最强、也最像一个标志的。",
|
||
say="目/瞳/看见——睿之本义「深视」的最短表达",
|
||
risk=["语义从可识字的「日」退回抽象环,解释成本回到 E1 那一档",
|
||
"点与环的间距比方环与横实小,16px 并块余量最小",
|
||
"与录音/关注类圆形 UI 图标有远亲关系"]),
|
||
]
|
||
|
||
|
||
def lockup(mark, h, color=INK):
|
||
return ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 120" '
|
||
'style="height:%dpx;width:auto;display:block;color:%s" role="img" '
|
||
'aria-label="睿新致远 NOVALON">%s%s</svg>' % (h, color, mark, n5.wordmark_fixed(color)))
|
||
|
||
|
||
def mark_only(mark, px):
|
||
return ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 120" '
|
||
'style="height:%dpx;width:auto;display:block">%s</svg>' % (px, mark))
|
||
|
||
|
||
CSS = ms.CSS + """
|
||
.wrap{max-width:1440px}
|
||
.hero{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--hair)}
|
||
.hero>div{padding:16px 12px 12px;border-left:1px solid var(--hair);border-bottom:1px solid var(--hair);
|
||
display:flex;flex-direction:column;align-items:center;gap:9px}
|
||
.hero>div:nth-child(3n+1){border-left:0}
|
||
.hero .nm{font-family:'PingFang SC',serif;font-size:12.5px;color:var(--muted)}
|
||
.hero .nm b{color:var(--ink)}
|
||
.hero .nm .id{color:var(--red);font-size:11px;letter-spacing:.1em;margin-right:5px}
|
||
.hd{display:grid;grid-template-columns:170px repeat(6,1fr);border-bottom:1px solid var(--hair)}
|
||
.hd>div{padding:11px 12px;border-left:1px solid var(--hair);font-family:'PingFang SC',serif;font-size:13px}
|
||
.hd>div:first-child{border-left:0;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
|
||
color:var(--muted);font-family:'Geist',sans-serif}
|
||
.hd .who{font-weight:700;font-size:13.5px;line-height:1.35}
|
||
.hd .who .id{color:var(--red);font-size:11px;letter-spacing:.1em;margin-right:5px}
|
||
.hd .who .cl{display:block;font-weight:400;font-size:10.5px;color:var(--muted);margin-top:2px}
|
||
.ctx{padding:12px 10px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--hair)}
|
||
.ctx.dark{background:var(--ink)}
|
||
.ctx.mist{background:var(--mist)}
|
||
.ctx.red{background:#C41E3A}
|
||
.lab{font-family:'PingFang SC',serif;font-size:12px;color:var(--muted);padding:11px 12px}
|
||
table{width:100%;border-collapse:collapse;font-size:13px}
|
||
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--hair);vertical-align:top}
|
||
td.n{font-variant-numeric:tabular-nums}
|
||
"""
|
||
|
||
JS = """
|
||
<script>
|
||
const RED=[196,30,58],WHITE=[255,255,255],INK=[10,14,20],ENV='12 20.93 84.3 84.07';
|
||
const D=(a,b)=>Math.hypot(a[0]-b[0],a[1]-b[1],a[2]-b[2]);
|
||
function raster(el,size,env){
|
||
const c=el.cloneNode(true);c.setAttribute('width',size);c.setAttribute('height',size);
|
||
c.removeAttribute('style'); if(env)c.setAttribute('viewBox',env);
|
||
const url='data:image/svg+xml;charset=utf-8,'+encodeURIComponent(new XMLSerializer().serializeToString(c));
|
||
return new Promise(res=>{const im=new Image();im.onload=()=>{
|
||
const cv=document.createElement('canvas');cv.width=cv.height=size;
|
||
const x=cv.getContext('2d');x.fillStyle='#fff';x.fillRect(0,0,size,size);
|
||
x.drawImage(im,0,0,size,size);res(x.getImageData(0,0,size,size));};
|
||
im.onerror=()=>res(null);im.src=url;});
|
||
}
|
||
function runs(im,px,dir){const d=im.data;let best=0;
|
||
for(let k=0;k<px;k++){let n=0,on=false;
|
||
for(let j=0;j<px;j++){const i=dir==='h'?(k*px+j)*4:(j*px+k)*4;
|
||
const a=d[i+3],p=[d[i],d[i+1],d[i+2]];
|
||
const r=a>=40&&D(p,WHITE)>=110&&D(p,RED)<D(p,INK);
|
||
if(r&&!on){n++;on=true;}else if(!r)on=false;}
|
||
if(n>best)best=n;}return best;}
|
||
async function redShare(el){const im=await raster(el,512,ENV);if(!im)return null;
|
||
const d=im.data;let n=0;for(let i=0;i<d.length;i+=4){const a=d[i+3],p=[d[i],d[i+1],d[i+2]];
|
||
if(a>=40&&D(p,WHITE)>=110&&D(p,RED)<D(p,INK))n++;}return n/(d.length/4);}
|
||
(async()=>{
|
||
const out={};
|
||
for(const el of document.querySelectorAll('svg[data-src]')){
|
||
const k=el.getAttribute('data-src');
|
||
const i16=await raster(el,16,null), i24=await raster(el,24,null), i32=await raster(el,32,null);
|
||
out[k]={red:await redShare(el),
|
||
h16:i16?runs(i16,16,'h'):null, v16:i16?runs(i16,16,'v'):null,
|
||
h24:i24?runs(i24,24,'h'):null, v24:i24?runs(i24,24,'v'):null,
|
||
h32:i32?runs(i32,32,'h'):null, v32:i32?runs(i32,32,'v'):null};}
|
||
document.querySelectorAll('[data-m]').forEach(td=>{
|
||
const [k,f]=td.getAttribute('data-m').split('@'); const o=out[k]; if(!o) return;
|
||
if(f==='red'&&o.red!=null) td.textContent=(o.red*100).toFixed(1)+'%';
|
||
else if(o[f]!=null) td.textContent=o[f];
|
||
});
|
||
window.__c=out;
|
||
})();
|
||
</script>
|
||
"""
|
||
|
||
|
||
def build():
|
||
P = []
|
||
w = P.append
|
||
w('<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">'
|
||
'<meta name="viewport" content="width=device-width,initial-scale=1">'
|
||
'<title>入围更新 · 六只同条件 · 2026-10-13</title>')
|
||
w('<style>' + CSS.replace("__GEIST__", ms.GEIST_B64) + '</style></head><body><div class="wrap">')
|
||
w('<header class="top"><div class="eyebrow">Shortlist v2 · 2026-10-13 · 评审稿(repo 零改动)</div>')
|
||
w('<h1>入围更新:<em>六只同条件并排</em></h1>')
|
||
w('<p class="lede">五刀 30 版筛下来,眼睛留下的只有三类:已在入围的两只(一相圆、竹简),'
|
||
'以及字源批里活下来的<b>日</b>——但日必须先是「方」的。'
|
||
'本页把椭圆版(L3,第四刀)与三档方圆版(M2/M3/M4,第五刀)与两只入围放在'
|
||
'完全相同的条件下:同一份书法 path、同一个居中的 NOVALON、同一包络、同顶底对齐、'
|
||
'同一朱砂、同 4:1 画布——在九个真实情境里并排一次。</p></header>')
|
||
|
||
# 主标识 88px:三列两行,每只都是真实 4:1 全形,不缩
|
||
w('<div class="hero">')
|
||
for c in CANDS:
|
||
w('<div>%s<span class="nm"><span class="id">%s</span><b>%s</b> · %s</span></div>'
|
||
% (lockup(c["body"](), 88), c["id"], c["nm"], c["col"]))
|
||
w('</div>')
|
||
|
||
w('<div class="hd" style="border-top:0"><div>情境</div>')
|
||
for c in CANDS:
|
||
w('<div><span class="who"><span class="id">%s</span>%s'
|
||
'<span class="cl">%s</span></span></div>' % (c["id"], c["nm"], c["col"]))
|
||
w('</div>')
|
||
|
||
def row(label, cell, cls=""):
|
||
w('<div class="hd" style="border-top:0"><div class="lab">%s</div>' % label)
|
||
for c in CANDS:
|
||
w('<div class="ctx %s">%s</div>' % (cls, cell(c)))
|
||
w('</div>')
|
||
|
||
row("header 40px(md:h-10)", lambda c: lockup(c["body"](), 40))
|
||
row("header 32px(移动 h-8)", lambda c: lockup(c["body"](), 32))
|
||
row("深色 Hero · 白字版", lambda c: lockup(c["body"](), 40, WHITE), "dark")
|
||
row("单色落款(全墨)",
|
||
lambda c: lockup(c["body"]().replace('fill="%s"' % RED, 'fill="%s"' % INK), 40))
|
||
row("朱底反白",
|
||
lambda c: lockup(c["body"]().replace('fill="%s"' % RED, 'fill="%s"' % WHITE), 40, WHITE),
|
||
"red")
|
||
row("符号 48px", lambda c: mark_only(c["body"](), 48), "mist")
|
||
row("符号 24px", lambda c: mark_only(c["body"](), 24), "mist")
|
||
row("符号 16px(favicon 临界)", lambda c: mark_only(c["body"](), 16), "mist")
|
||
|
||
# 量测源:页内不可见的 108×120 符号,供 JS 栅格化
|
||
for c in CANDS:
|
||
w('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 120" '
|
||
'style="position:absolute;width:0;height:0" data-src="%s">%s</svg>'
|
||
% (c["id"], c["body"]()))
|
||
|
||
w('<section class="band" style="padding-top:34px"><h2 class="band">量测(页内实测)</h2>')
|
||
w('<table><thead><tr><th>候选</th><th>红占包络</th><th>16px 横/纵行程</th>'
|
||
'<th>24px</th><th>32px</th><th>小尺寸判读</th></tr></thead><tbody>')
|
||
verdict = {
|
||
"E1": "环是连续形,缝隙消失也不会读错;但尖尾先没,16px 只剩 2 段",
|
||
"N5-a": "16px 横向并成一块(1 段)⇒ favicon 必须另出三片版",
|
||
"L3": "3/3 存活,与 M 系同级——说明方不方不影响小尺寸,只影响与字标的剪影关系",
|
||
"M2": "16/24px 横纵都还是 3 段(环左、中心实、环右),与 L3 同级",
|
||
"M3": "同样 3/3,红占 38.2% 是六只里最重的",
|
||
"M4": "同样 3/3;点与环的间距最小,并块余量小一档",
|
||
}
|
||
for c in CANDS:
|
||
w('<tr><td><b>%s %s</b></td><td class="n" data-m="%s@red">…</td>'
|
||
'<td class="n"><span data-m="%s@h16">…</span> / <span data-m="%s@v16">…</span></td>'
|
||
'<td class="n"><span data-m="%s@h24">…</span> / <span data-m="%s@v24">…</span></td>'
|
||
'<td class="n"><span data-m="%s@h32">…</span> / <span data-m="%s@v32">…</span></td>'
|
||
'<td class="small">%s</td></tr>'
|
||
% (c["id"], c["nm"], c["id"], c["id"], c["id"], c["id"], c["id"],
|
||
c["id"], c["id"], verdict[c["id"]]))
|
||
w('</tbody></table>')
|
||
w('<p class="small">口径:红占包络=红像素 ÷ 符号包络面积(84.3 × 84.07,512 栅格,'
|
||
'viewBox 精确框住包络);行程=真栅格化后沿该行(或列)红色连续段取最大值,ΔE(白)≥110。'
|
||
'书法块密度 18.2%。<b>读法</b>:对环类(日)这个数的意义是「环与中心实还分不分得开」,'
|
||
'不是「还剩几笔」;对多片类(竹简)才是笔画存活数。</p></section>')
|
||
|
||
w('<section class="band"><h2 class="band">各自说什么、赌什么</h2>')
|
||
for c in CANDS:
|
||
w('<div style="border-bottom:1px solid var(--hair);padding:14px 0">'
|
||
'<h2 style="font-family:PingFang SC,serif;font-size:16px;margin:0 0 4px">'
|
||
'<span style="color:var(--red);font-size:11px;letter-spacing:.1em;'
|
||
'margin-right:7px">%s</span>%s <span style="font-weight:400;font-size:11.5px;'
|
||
'color:var(--muted)">· %s</span></h2>' % (c["id"], c["nm"], c["lineage"]))
|
||
w('<p style="margin:0 0 6px;font-family:PingFang SC,serif;font-size:13.5px">%s</p>' % c["read"])
|
||
w('<p style="margin:0 0 8px;font-family:PingFang SC,serif;font-size:13px">'
|
||
'<b>语义</b>:%s</p>' % c["say"])
|
||
w('<ul style="margin:0;font-size:13px">')
|
||
for r in c["risk"]:
|
||
w('<li style="color:var(--red)">%s</li>' % r)
|
||
w('</ul></div>')
|
||
|
||
w('<section class="band"><h2 class="band">我的票</h2>')
|
||
w('<p>第五刀的假设被支持了:<b>日</b>在第四刀输给 E1/N5,输的是剪影不是笔画。'
|
||
'把环从椭圆(n=2)推到方圆(n=3.2/4.0),它立刻与书法块的方轮廓同类,'
|
||
'而笔画仍是写的。负对照 M0(同一函数把 n 设回 2)与 L3 几乎重合,'
|
||
'说明差别确实来自这一个参数。</p>')
|
||
w('<p>如果只允许一只进最终评审:<b>M2 日 · 方 n=3.2</b>。三道筛都过——'
|
||
'眼睛(厚重、闭合、朱砂,剪影与毛笔字同类)、'
|
||
'意义(日=明=睿,「日日新」直接接上 NOVALON 的词根 nov-,这是 E1 给不出的连接)、'
|
||
'小尺寸(16/24px 实测横纵都还是 3 段,环与中心实分得开)。'
|
||
'E1 的问题是它什么也不说;N5 的问题是它在 16px 塌成一块。</p>')
|
||
w('<p class="small">第二票 M3(n=4.0):与字标剪影更同类,但再方就成圆角矩形,'
|
||
'笔势存在感下降——这是这条线的上限。第三票 M4(方环 + 点):最像一个标志,'
|
||
'但语义退回抽象环,解释成本回到 E1 那一档。</p>')
|
||
w('<p class="small">注:本轮所有「方」的版本红占包络 37.3–38.2%,'
|
||
'比椭圆版高 1–2 个点;六只里 M3 最重,深底小尺寸时会比字标抢眼,需要时把环身收 0.6 即可。</p></section>')
|
||
|
||
w(JS)
|
||
w('<footer>生成器 <code>shortlist2.py</code> · 四刀过程页见 <code>glyphs.html</code> / '
|
||
'<code>glyphs2.html</code> / <code>ri.html</code> / <code>ri2.html</code> · '
|
||
'并排图 <code>_gs4.png</code></footer></div></body></html>')
|
||
return "".join(P)
|
||
|
||
|
||
def export():
|
||
d = os.path.join(HERE, "assets-final")
|
||
os.makedirs(d, exist_ok=True)
|
||
for c in CANDS:
|
||
body = c["body"]()
|
||
for kind, color in (("logo", INK), ("logo-white", WHITE)):
|
||
open(os.path.join(d, "%s-%s.svg" % (c["id"], kind)), "w", encoding="utf-8").write(
|
||
'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" '
|
||
'viewBox="0 0 480 120" width="480" height="120" role="img" '
|
||
'aria-label="睿新致远 NOVALON">%s%s</svg>\n' % (body, n5.wordmark_fixed(color)))
|
||
open(os.path.join(d, "%s-mark.svg" % c["id"]), "w", encoding="utf-8").write(
|
||
'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" '
|
||
'viewBox="0 0 108 120" width="108" height="120" role="img" '
|
||
'aria-label="睿新致远">%s</svg>\n' % body)
|
||
open(os.path.join(d, "%s-favicon.svg" % c["id"]), "w", encoding="utf-8").write(
|
||
'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" '
|
||
'viewBox="12 20.93 84.3 84.07" width="100" height="100" role="img" '
|
||
'aria-label="睿新致远">%s</svg>\n' % body)
|
||
print("assets-final/ →", len(os.listdir(d)), "个文件")
|
||
|
||
|
||
def main():
|
||
p = os.path.join(HERE, "shortlist2.html")
|
||
open(p, "w", encoding="utf-8").write(build())
|
||
print("shortlist2.html %s B" % f"{os.path.getsize(p):,}")
|
||
export()
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|